filter javascript function openBG(e)

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
cmmc
Posts: 158
Joined: Fri Apr 22, 2011 8:15 pm

filter javascript function openBG(e)

Post by cmmc »

<script type="text/javascript">
function openBG(e) {
window.parent.location='http://www.sram.com/truvativ?utm_source ... =pinkvativ';
}

</script>

Is it possible to filter something like this? Any left clicks anywhere on this page - http://www.pinkbike.com/photo/6433514/ - are being hijacked and open the address above (even on the text box!).
cmmc
Posts: 158
Joined: Fri Apr 22, 2011 8:15 pm

Re: filter javascript function openBG(e)

Post by cmmc »

nvm, seems they fixed it now - something was missing:

<script type="text/javascript">
var openbglink=1;
function openBG(e) {
if (openbglink==1) {
window.parent.location='http://www.sram.com/truvativ?utm_source ... =pinkvativ';
}
openbglink=1;
}

</script>
Locked