Video coding and Adblock Plus tag advice please

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
allan6540
Posts: 8
Joined: Sun Aug 06, 2006 7:21 am
Location: Singapore

Video coding and Adblock Plus tag advice please

Post by allan6540 »

Win2k. IE6. FIREFOX V1.5.0.6. Ricks Adblock Plus easy list.
Hi,
I really need your help with a problem with video coding and the Adblock plus tab.

Adblock plus is working well except for a problem with my "myspace" blog:
This is what happens:
I have added several videos to my blog on "myspace", no problems until I try to edit any one of the videos AFTER it has been posted, what happens is that I have to have under "options/show tabs on flash and java", ticked, otherwise when I try to edit there is no code showing at all of the video file so have to tick "show tabs on flash and java" but then when I have done any alterations and REPOST the edited blog the tab "adblock" shows up permanetly even if I untick "show tabs on flash and java" and reload. But there is no problem when I first add the code to the blog of a video file. I hope you do not mind me showing you the code here so that you may be able to advise.

ok this the code from "youtube" for a video file of "Johnny cash" for my blog on "myspace"

<param name="movie"
value="http://www.youtube.com/v/vln5C8kholg"></param><embed
src="http://www.youtube.com/v/vln5C8kholg" type="application/x-shockwave-flash" width="450" height="375"></embed></object>.
No problems!

But if I edit the video file AFTER I have uploaded I get all this added:

<param name="movie" value="http://www.youtube.com/v/vln5C8kholg"><embed allowScriptAccess="never" allownetworking="internal"
src="http://www.youtube.com/v/vln5C8kholg" type="application/x-shockwave-flash"
height="375" width="450"><div style="overflow: visible; display: block; position: relative; width: 0px; height: 0px; left: 0px; padding-left: 0px; top: 0px; ..; opacity: 0.5;"><div style="border-style: ridge; border-width: 0px 2px 2px; display: block; position: relative; left: -70px; top: 0px; width: 66px; height: 16px; -moz-border-radius-topright: 0px; -moz-border-radius-topleft: 0px; -moz-border-radius-bottomright: 10px; -moz-border-radius-bottomleft: 10px;
background-color: white; color: black; cursor: pointer; font-family:
Arial,Helvetica,Sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; direction: ltr;">Adblock</div></div><div style="overflow: visible; display: block; position: relative; width: 0px; height: 0px; left: 0px; padding-left: 0px; top: 0px; opacity: 0.5;"><div style="border-style: ridge; border-width: 0px 2px 2px; display: block;
position: relative; left: -70px; top: 0px; width: 66px; height: 16px;
-moz-border-radius-topright: 0px; -moz-border-radius-topleft: 0px;
-moz-border-radius-bottomright: 10px; -moz-border-radius-bottomleft: 10px; background-color: white; color: black; cursor: pointer; font-family:
Arial,Helvetica,Sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; direction: ltr;">Adblock</div></div>

If I just load the video code without any editing afterwards everything is ok.
What I am trying to say is, is there anyway to stop the adblock tag showing up PERMANENTLY if I have to re-edit the video code.
Everything is ok at the moment untill I try to edit the code and re upload.
I do hope you can advise me what to do, and apologise for the long message.
Thanks,
Allan
Wladimir Palant

Post by Wladimir Palant »

Yes, I am aware of this problem, see http://adblockplus.org/blog/object-tabs-running-amok

Unfortunately I'm not exactly sure what I can do here. Ideally I should prevent these tabs from being serialized together with the rest of HTML code. Gecko is able of creating "anonymous content", but unfortunately there doesn't seem to be a way to insert it from JavaScript.

Other solution: check whether the document is being edited and don't insert the tab if it is. This isn't too easy to implement either (mainly because the document usually changes its state at some point), and more importantly - it would allow advertisers to disable the tabs easily. Meaning that I'm not sure I want to do this.

A temporary solution for you would be: add an exception rule for your videos, maybe "@@|http://www.youtube.com/". Adblock Plus doesn't show tabs for whitelisted objects.
allan6540
Posts: 8
Joined: Sun Aug 06, 2006 7:21 am
Location: Singapore

Post by allan6540 »

Wladimir Palant wrote:Yes, I am aware of this problem, see http://adblockplus.org/blog/object-tabs-running-amok

Unfortunately I'm not exactly sure what I can do here. Ideally I should prevent these tabs from being serialized together with the rest of HTML code. Gecko is able of creating "anonymous content", but unfortunately there doesn't seem to be a way to insert it from JavaScript.

Other solution: check whether the document is being edited and don't insert the tab if it is. This isn't too easy to implement either (mainly because the document usually changes its state at some point), and more importantly - it would allow advertisers to disable the tabs easily. Meaning that I'm not sure I want to do this.

A temporary solution for you would be: add an exception rule for your videos, maybe "@@|http://www.youtube.com/". Adblock Plus doesn't show tabs for whitelisted objects.
Thank you so much for your quick response and I must appologise for my ignorance but how and where do I find the exception rule area (whitelist)in adblock plus preferences so that I can add your sugestion and also do I put this code without the quotes and the full stop at the end like so:
@@|http://www.youtube.com/
Again sorry for my ignorance, still learning.
Thanks Wladimir,
Allan :roll:
Wladimir Palant

Post by Wladimir Palant »

Yes, that's the correct filter. You simply add it like any other filter, Adblock Plus will put it into the right category automatically. Documentation on exception rules is here: http://adblockplus.org/en/filters#whitelist
allan6540
Posts: 8
Joined: Sun Aug 06, 2006 7:21 am
Location: Singapore

Post by allan6540 »

Wladimir Palant wrote:Yes, that's the correct filter. You simply add it like any other filter, Adblock Plus will put it into the right category automatically. Documentation on exception rules is here: http://adblockplus.org/en/filters#whitelist
Wow so quick in replying thank you, I have added your sugestion and will try it out a bit later today.
Thanks again Wladimir,

Allan
:D
allan6540
Posts: 8
Joined: Sun Aug 06, 2006 7:21 am
Location: Singapore

Post by allan6540 »

allan6540 wrote:
Wladimir Palant wrote:Yes, that's the correct filter. You simply add it like any other filter, Adblock Plus will put it into the right category automatically. Documentation on exception rules is here: http://adblockplus.org/en/filters#whitelist
Wow so quick in replying thank you, I have added your sugestion and will try it out a bit later today.
Thanks again Wladimir,

Allan
:D
Hi Wladimir,
Thank you my friend, works fine, I had to delete all the original coding first and then activate your exception rule and then add the original coding, and now all ok.
Thanks again,
be blessed,
Allan :D
Post Reply