Is it possible to remove parts of the source code ?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
no_One

Is it possible to remove parts of the source code ?

Post by no_One »

Hi i just wanted to know if it is possible to remove some parts of the source code of a web page. If not with adblock maybe with another extension ? I dont code anything but i think this feature could be easily made since you can watch the part of the source code with firefox with selecting the part of the web page and then "show extract of the source code" (translated dont know if it is the right expression). This would be cool because if you remove something with abdlock often a space remains which doesn't look good and it would be much better if you could remove that also.
Thx for reading and maybe you can help me :)
no_One

Post by no_One »

oh and i am sorry if this question often appeared in this forum but i tried the search but didn't find anything. Also sorry if i am in the wrong forum but i wasn't sure where to post.
The part of the source code i would like to remove is:
<td border="0" height="90" valign="top" width="728">
<script language="JavaScript">
if(typeof(adlink_randomnumber)=="undefined"){var adlink_randomnumber=Math.floor(Math.random()*10000000000)}
document.write('<scr'+'ipt language="JavaScript" src="http://ad.de.doubleclick.net/adj/readmo ... /scr'+'ipt>');
</script><script language="JavaScript" src="http://ad.de.doubleclick.net/adj/readmo ... ><noscript>
<a href="http://ad.de.doubleclick.net/jump/readm ... 1234567890?" target="_blank">
<img src="http://ad.de.doubleclick.net/ad/readmor ... 1234567890?" border="0" width="728" height="90">
</a></noscript></td>
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Just remove ALL doubleclick German ads with:

Code: Select all

ad.de.doubleclick.net
... or more generally from ALL SITES:

Code: Select all

.doubleclick.net
User avatar
Stupid Head
Posts: 214
Joined: Sat Aug 26, 2006 8:11 pm
Location: USA

Post by Stupid Head »

In this case, blocking Doubleclick is the best option as Rick suggests. More generally, element blocking is what you're looking for. I assume you're more comfortable with German: http://adblockplus.org/de/filters#elemhide_basic
no_One

Post by no_One »

hey thx for your fast help !
I don't have a problem with the ads from doubleclick.net, but if this ads are removed there is some ugly space left, something like a box, where the ad should normally be. Sorry if i didnt explain it well my english is not that good. Just to make it clearer what my point is i made some screenshots.
http://img171.imageshack.us/my.php?imag ... nntrc7.jpg
I used adblock and later on adblock plus and i remember some time ago, i think it is also mentioned in the link of stupid head, it was possible to "remove elements" of the website. Stupid Head really thx for the link i think you got my point, but I read all of it and it and i still didn't find a way to remove it with this help, maybe i am too stupid ;( or my computer/adblock knowledge isn't enough
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

You can try:

sitename.com#td(border=0)(height=90)(valign=top)(width=728)

If anything, at least you will be able to see how element-hiding works.
User avatar
Stupid Head
Posts: 214
Joined: Sat Aug 26, 2006 8:11 pm
Location: USA

Post by Stupid Head »

To get rid of the top werbung:

Code: Select all

readmore.de#td(width=729)
To get rid of the right werbung:

Code: Select all

readmore.de#table(width=300)(height=250)(cellspacing=0)(cellpadding=0)(border=0)
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

@ no_One:

I was wondering where Stu got that site address from and then I realized it was in a link in the code.

Now that I can see it, this will remove that black border in the top banner that your outline showed:

Code: Select all

readmore.de##td[style="border-style: solid; border-color: rgb(86, 86, 86); border-width: 1px 0px 1px 1px; padding: 0px;"]
noOne

Post by noOne »

Hey THANK YOU BOTH VERY MUCH !
You both are so nice i can't believe ! Long time ago i didn't get any good and nice support like this. With these filters surfing on this site doubles the fun and i do surf very often on it.
If i can do anything in return i really would love to help you in return if it's possible for me !
Post Reply