Blocking scripts inside the page

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Blocking scripts inside the page

Post by Lucas Malor »

There's a way to block a script it's not in an external file, but it's included in the HTML page?
User avatar
Peng
Posts: 518
Joined: Fri Jun 09, 2006 8:14 pm
Location: Central Florida
Contact:

Post by Peng »

Not with Adblock Plus. You could use some proxy like Proxomitron to remove it or Greasemonkey to disable it or (easiest) an element hiding filter in Adblock Plus to hide its effects, though.

What's the URL? Someone here might be able to help you with an element hiding filter.
Matt Nordhoff
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

I have already filtered the elements, but I was searching a more "professional" method :)

I don't like programs like proxy and proxy programs, and I don't want other extensions :P I would have few and very used extensions because I have a very slow pc (otherwise I will add NoScript ;) )

The link is this:
http://m0001.gamecopyworld.com/games/gcw_index.shtml

I already blocked all with this filters:

Code: Select all

http://*.gamecopyworld.com/*games
http://*.adbrite.com/mb/text_group.php?sid=
http://filetarget.com/@_m*.php
but I would block the internal javascripts, also for other sites.

I can't do something like

"Block in the domain/page X a script of language or type Y that contains the words AAAA and "BBB CCCCCC DD" and..."

or more simply

"Block in the domain/page X all scripts"

?
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

Mmmhhh... I tried this filters:

Code: Select all

http://*.gamecopyworld.com#script(type=text/javascript)
http://*.gamecopyworld.com#script(language=JavaScript)
but it doesn't work. In theroy it should work... :?: :?: :?:
User avatar
Stupid Head
Posts: 214
Joined: Sat Aug 26, 2006 8:11 pm
Location: USA

Post by Stupid Head »

Lucas Malor wrote:Mmmhhh... I tried this filters:

Code: Select all

http://*.gamecopyworld.com#script(type=text/javascript)
http://*.gamecopyworld.com#script(language=JavaScript)
but it doesn't work. In theroy it should work... :?: :?: :?:
That won't work because Javascript isn't part of the document object model (DOM), it manipulates the DOM.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

WHAT A MESS! :roll:

@Lucas Malor:
If you want to try blocking everything here:

Code: Select all

filetarget.com
.extreme-dm.
.homere.
.gamecopyworld.*@search.php
.gamecopyworld.*/!
.sonnerie.
.gamecopyworld.*120*.gif
gamecopyworld.com#table(width=100%)(height=100)
gamecopyworld.com#table(width=120)
gamecopyworld.com#table(width=177)
(some of these I will probably add as there are some ad companies in here)

@Stu

Element-hiding javascript will not work because js is already 'invisible' and element-hides do not stop the code from executing ... it only hides it. So anything that it initiates will run anyway. :wink:
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

I already block the ADs as I wrote before ^^ I was searching if there's a method to block script inside the page code.

I think this possibility does not exists actually... will be implemented the possibility to block scripts of a page or domain, even if they are not included in external files?
User avatar
Lucas Malor
Posts: 72
Joined: Wed Aug 23, 2006 7:34 am
Contact:

Post by Lucas Malor »

Excuse me for double-post, but now Palant is returned I would know if in a future a feature like Noscript will be implemented, to block also scripts inside a page. Thanks :)
Wladimir Palant

Post by Wladimir Palant »

I didn't "return", I only have a little time to read the forum (see http://adblockplus.org/blog/it-is-traveling-time-again). As to the request - I think this is out of scope for Adblock Plus. There are already NoScript and GreaseMonkey that can do this kind of thing, Adblock Plus works on a different level.
Locked