Block a single inline script?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Stella

Block a single inline script?

Post by Stella »

I want to block a single inline script in a page, as all it does is refresh the non-existent (because I block it) ad on the page, and the refresh is annoying.

Here is the offending source code:

Code: Select all

<div id='ad-728x90Div'>
	<script type='text/javascript' language='javascript'>
		KIDS.ads.refresh.placeAd('ad-728x90Div');
	</script>
	<iframe id="ad-728x90IF" src=.....> //(code skipped, this is what would generate the ad)
</div>
How can I do this? I've tried the filters

Code: Select all

KIDS.ads.refresh.*
##DIV#ad-728x90Div + *. //to block everything inside the div
but I don't think I'm blocking the right thing...? I'm a complete novice in writing my own filters (although I do know CSS) so help would be appreciated.
I also use NoScript if that would help, but I don't want to block scripts for the entire domain...
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Re: Block a single inline script?

Post by Hubird »

ABP can not block an inline script, CSS is used for hiding content and wont be able to stop the page from refreshing.

I do not use NoScript so can't help you but it may be able to do what you want, so you are best off focusing your attention there.
Stella

Re: Block a single inline script?

Post by Stella »

Okay, I'll try the NoScript forums or somewhere similar then, thanks!
It was worth a try with ABP though :wink:
Locked