How restrict Java "windows.open"?

Ask for help about NoScript, no registration needed to post
happyhorror
Posts: 2
Joined: Sat Aug 27, 2011 2:25 pm

How restrict Java "windows.open"?

Post by happyhorror »

Often i visit www.rmonline.ru and there is stupid popup for mfonline.ru opening with windows.open - how restrict this java code?
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How restrict Java "windows.open"?

Post by therube »

This looks to be the code, but what to do?

Code: Select all

    $(document).ready(function() {
        $('body').mouseup(function() {
            var mp = $.cookie('mythos_promo');
            if (mp == null) {
                $.cookie('mythos_promo', 'show', {expires:3650, path:'/'});
                a = window.open("http://mfonline.ru/banner_click/bid21/", null, "scrollbars=1,location=1,directories=1,status=0,menubar=1,toolbar=1,resizable=1,width=800,height=600,left=0,top=0");
                a.blur(); window.focus();
                if (window.opener != null) {
                    window.opener.focus();
                }
            }
        });
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; rv:8.0a2) Gecko/20110826 Firefox/8.0a2 SeaMonkey/2.5a2
happyhorror
Posts: 2
Joined: Sat Aug 27, 2011 2:25 pm

Re: How restrict Java "windows.open"?

Post by happyhorror »

so, how block function by name "ChView" or restrict execution of "windows.open" having "mfonline.ru" :?:
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: How restrict Java "windows.open"?

Post by al_9x »

The simplest thing you can do is allow the storage of the mythos_promo cookie, which will prevent the popup.
Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0
Post Reply