Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Quest
Posts: 3 Joined: Mon Nov 13, 2006 12:21 pm
Post
by Quest » Mon Nov 13, 2006 12:30 pm
i tried for hours, but i'm still unable to block the script found in the code below
can somebody help me with this problem?
best regards
Quest
Code: Select all
<html>
<head>
</head>
<body onload="popup()" oncontextmenu="return false" onselectstart="return false">
<center>
<table>
<tbody>
<tr>
<td>
<table>
<tbody><tr>
<td>
<script type="text/javascript">function popup() { if(confirm("script message"))vote(); } function vote() { window.open("http://www.popupadresse.com","popup",'toolbar=no,width=700,height=700,location=no,status=no,menubar=no,scrollbars=yes,resizable=1');}</script></td>
</tr>
</tbody></table></td>
</tr>
</tbody></table>
</center>
</body></html>
sheepy
Posts: 147 Joined: Sat Jun 17, 2006 8:44 pm
Post
by sheepy » Mon Nov 13, 2006 4:16 pm
You can't block inline script with Adblock. Try NoScript.
Quest
Posts: 3 Joined: Mon Nov 13, 2006 12:21 pm
Post
by Quest » Mon Nov 13, 2006 4:58 pm
NoScript is not an option, as the site that contais this script does not work without scripts.
i guess i'll have to live with it or use proxomitron.
thanks for the info.
best regards
Quest
Wladimir Palant
Post
by Wladimir Palant » Tue Nov 14, 2006 1:25 am
GreaseMonkey should work here:
Code: Select all
// ==UserScript==
// @name Popup killer
// @namespace http://adblockplus.org/forum/viewtopic.php?t=918
// @description Kills popup script
// @include http://site.com/*
// ==/UserScript==
window.wrappedJSObject.popup = null;
Replace
http://site.com/ with the actual site you want to apply this on. Save the script as file popupkiller.user.js and open in the browser - GreaseMonkey will offer you to install it.
PS: Firefox' built-in popup blocker should catch this kind of popups easily. Do you have "Block popup windows" checked in Options / Content?
Quest
Posts: 3 Joined: Mon Nov 13, 2006 12:21 pm
Post
by Quest » Tue Nov 14, 2006 10:37 am
greasemonkey works perfect.
thank you for your help.