Blocking scripts inside the page
- Lucas Malor
- Posts: 72
- Joined: Wed Aug 23, 2006 7:34 am
- Contact:
Blocking scripts inside the page
There's a way to block a script it's not in an external file, but it's included in the HTML page?
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.
What's the URL? Someone here might be able to help you with an element hiding filter.
Matt Nordhoff
- Lucas Malor
- Posts: 72
- Joined: Wed Aug 23, 2006 7:34 am
- Contact:
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
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:
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"
?

I don't like programs like proxy and proxy programs, and I don't want other extensions


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
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"
?
- Lucas Malor
- Posts: 72
- Joined: Wed Aug 23, 2006 7:34 am
- Contact:
Mmmhhh... I tried this filters:
but it doesn't work. In theroy it should work...

Code: Select all
http://*.gamecopyworld.com#script(type=text/javascript)
http://*.gamecopyworld.com#script(language=JavaScript)



- Stupid Head
- Posts: 214
- Joined: Sat Aug 26, 2006 8:11 pm
- Location: USA
That won't work because Javascript isn't part of the document object model (DOM), it manipulates the DOM.Lucas Malor wrote:Mmmhhh... I tried this filters:
but it doesn't work. In theroy it should work...Code: Select all
http://*.gamecopyworld.com#script(type=text/javascript) http://*.gamecopyworld.com#script(language=JavaScript)
![]()
![]()
WHAT A MESS! 
@Lucas Malor:
If you want to try blocking everything here:
(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.

@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)
@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.

- Lucas Malor
- Posts: 72
- Joined: Wed Aug 23, 2006 7:34 am
- Contact:
- Lucas Malor
- Posts: 72
- Joined: Wed Aug 23, 2006 7:34 am
- Contact:
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.