Youtube's endscreen results & action-panel-share

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Youtube's endscreen results & action-panel-share

Post by filter7 »

Hi there. Just a custom filter request to get rid of the endscreen results shown at the end of a Youtube video.
Here's an example of what I mean by that:

http://i.imgur.com/JKpxtzk.png?1

I was using an old filter included in some ABP 'Block Other Youtube Annoyances' subscription filter, but the coding has just recently become outdated (as of yesterday, apparently).

There's also one last filter included in the subscription filter that is yet to die, and still works, but I was curious if there was a simpler, more up-to-date line of coding I could add as a custom filter to stop the action-panel-share tab... thing... I dunno what to call it it... but, again, at the end of a video, the description reveals this row of website icons to share the video to, and I hate it. Here is a screenshot of that too, so you know exactly what I mean:

http://i.imgur.com/nYpavzq.png

I would really like to know how to indentify which elements to use for custom filters with 'Inspect Element', because I really don't know to check a specific part on a page sometimes.

Thanks.
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

||youtube.com/share_ajax?action_get_share_box=1&video_id=$xmlhttprequest
youtube.com##.action-panel-trigger[role="button"][data-trigger-for="action-panel-share"]
youtube.com##.yt-uix-button[data-trigger-for="action-panel-share"]

This is the coding I'm currently using to block the share tabs for popping up in the description—seems like quite a lot of unnecessary lines that will soon be rendered useless.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Youtube's endscreen results & action-panel-share

Post by mapx »

try

Code: Select all

youtube.com##[class^="videowall-still-"]
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

Hm, no, not working...
:idea:
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Youtube's endscreen results & action-panel-share

Post by mapx »

the endscreen results are gone here, I get the blank screen
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

Sorry, you're right, that does work.

I had just recently added:
@@||s.ytimg.com
Because I was being affected by the graphical interface glitch where Youtube was displaying nothing but hyperlinks. Deleting that made the endscreen custom filter work for some reason. Guess it was making Youtube 'normal' for me, or somthing. Maybe you can explain... I actually used that filter from some Google forum where someone mentioned mapx gave them that to use hahah... you're everywhere, and a very helping hand. Cheers for that filter (and all the other ones you've written for me and others over the years... but what do you use to figure out how to write them?!!?)

Thank you anyway. Now I can load videos instantaneously, without a 3 second delay because the endscreen results are making the video pause. That, in tow with the flash player plugin that overrides the HTML5 one, I can now resume stable video-watching... (my computer isn't good in the RAM department, so I need all this stuff to avoid crashes, ha).
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

Oh, by the way, whilst I'm at it... do I really need to use:

||youtube.com/share_ajax?action_get_share_box=1&video_id=$xmlhttprequest
youtube.com##.action-panel-trigger[role="button"][data-trigger-for="action-panel-share"]
youtube.com##.yt-uix-button[data-trigger-for="action-panel-share"]

Just to block the sharing tab icons from popping up in the description after a video finishes?
Why does that need 3 seperate filters, but the other elements only need 1 filter? Just curious, but I'll use for the time being if it's all needed (it's a little hard to remember when it breaks though, because I might not remember the culprit or correct filters to delete).
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Youtube's endscreen results & action-panel-share

Post by mapx »

@@||s.ytimg.com
was necessary only for the wrong domain "malware domains" subscription added yesterday, so all is ok now.

if those filters work for you just keep them ..
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

Yes, ok, thought so. And, alright, I'll keep using them.
Hey, so, I dunno how this is possible, but I've come back on this evening and the endscreen results are back.... can you check and see if the custom filter works still? :?
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

Ok, don't worry. So, because I removed @@||s.ytimg.com, I went back to the this old ABP Block YouTube Annoyances page, and tried what I was using before, and lo and behold, this trio of filters work again:

youtube.com##.html5-endscreen
youtube.com##.html5-endscreen-content
||ytimg.com/yts/swfbin/player-*/endscreen.swf$object-subrequest,domain=youtube.com

That's really strange, but I suppose I'd confused myself into thinking the coding was obsolete, when really @@||s.ytimg.com somehow stopped it from taking affect temporarily or something, somehow). I don't get it, but whatever.
Thanks again, and sorry for taking up so much time here. (Hopefully this'll be the last of it all for now.)
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Youtube's endscreen results & action-panel-share

Post by mapx »

All's well that ends well. :D
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

Indeed. But, why does @@||s.ytimg.com clash with it? Do you know?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Youtube's endscreen results & action-panel-share

Post by mapx »

we should test it in firefox
testing with and without that exception filter @@||s.ytimg.com

and see (in blockable itens list what's blocked and what hidden in both cases
or submit 2 issue report in both cases to see the differences
filter7
Posts: 12
Joined: Fri Jan 15, 2016 11:40 pm

Re: Youtube's endscreen results & action-panel-share

Post by filter7 »

Well, aha, I only use Firefox, but I honestly can't be bothered to do all that testing — I'm not that curious to find out why, I just thought you might know, because you're such an expert.
Anyway, so, I already mentioned this, but what is it you use (if anything) to inspect blockable elements, and how do you determine what you need to write a custom filter? Is there some sort of extra Adblock extension/add-on I can install? I'd really like to try and block things myself in the future, but you'll probably tell me it's hard and that I need experience in HTML/javascript etc., right? Ha.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Youtube's endscreen results & action-panel-share

Post by mapx »

- use blockable items list to see the requests (blocked, unblocked, hidden)
- use EHH for creating the hiding filters
- sure, in some edge cases (when it's about anti adblock tricks) you have to analyze the html code, javascript code (you don't need to be an expert), understand the logic
Locked