How to block http://creatives.livejasmin.com/iframes/.....

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Ben

How to block http://creatives.livejasmin.com/iframes/.....

Post by Ben »

On many sites, e.g. torrent search sites...once you type anything into the search box, you would immediately get a pop up from http://creatives.livejasmin.com/iframes ... S&site=jsm.

I've implemented HOSTS file in my PC and hence I don't see the ads from http://creatives.livejasmin.com/iframes ... S&site=jsm, but I still got a blanl pop up page with "FireFox couldn't connect to the server....", which is correct cause I block it with my HOSTS file........ is it possible to even block the blank pop up at all with AB Plus/Element helper?

http://creatives.livejasmin.com/iframes ... S&site=jsm
http://*/live_ads.js
http://creatives.livejasmin.com/iframes/*

I have the above in my AB Plus, but they could not prevent the blank pop up!

Thanks for your help.
MonztA
ABP Developer
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by MonztA »

Can you give us an example site where those popups appear?
Ben

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by Ben »

Hi MonztA, http://www.puretna.com/ and most porn blogs :mrgreen: e.g. http://www.pornbb.org/search.php...

However, upon further reading "The Impossible Ad" forum/viewtopic.php?f=1&t=3986...I just tried out the http://userscripts.org/scripts/show/46929 and it works :P!!! but you need to enter two entries for every site you want to block 1) http://*.name of site.com/* 2) http://name of site.com/*

// ==UserScript==
// @name ImageFap.com: disable pop-under.
// @namespace rowaasr13@gmail.com
// @description Disables pop-under window that opens after clicking anywhere on page.
// @include http://*.imagefap.com/*
// @include http://imagefap.com/*
// ==/UserScript==

For the above to work:
1) Install Greasemonkey
2) Install the http://userscripts.org/scripts/show/46929, doesn't matter about the ImageFap.com, just leave them as they are
3) Go to the site you want to block and open up Greasemonkey and manage rscrips and select ImageFap.com and select "Add" and add the name of the site you want to block and bingo :D (e.g for www.puretna.com, just add http://*.puretna.com/* and http://puretna.com/*

I wonder if :
asdf wrote:There are multiple solutions.

Go into about:config and set the following preferenes:

Preference: dom.popup_allowed_events
Value: blank

Preference: dom.popup_maximum;0
Value: 0

Preference: privacy.popups.firstTime
Value: false

Preference: privacy.popups.policy
Value: 3

would solve all the pops for good? and any disadvantages of doing that?

Thanks and best regards.
Ben

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by Ben »

I've the following already in my HOSTS file:

# [Euroaccess][AS34305][85.12.0.0 - 85.12.63.255]
127.0.0.1 ads.guru3d.com
127.0.0.1 banner1.pornhost.com
# [Eurocolo][AS35230][83.143.168.0 - 83.143.175.255]
127.0.0.1 ad3.hornymatches.com
# [Eurohost][AS48841][91.212.65.0 - 91.212.65.255]

Could this be the reason why http://banner1.pornhost.com/* doesn't work for me? why is 127.0.0.1 banner1.pornhost.com in the HOSTS list in the 1st place anyway?
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by Michael »

Fanboy's Adult / Dating list should deal with sites of this nature; you can subscribe to it by clicking on the appropriate link on http://www.fanboy.co.nz/adblock/.
Ben

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by Ben »

Thanks Michael :D .

I already have EasyPrivacy + Easylist and Fanboy adblock and they are very good at blocking ads, but NOT popups/unders or pops that are triggered upon you clicking/entering anything on a web site.

I disabled the 127.0.0.1 banner1.pornhost.com in my HOSTS file but http://banner1.pornhost.com/* still doesn't work for me.....seems to me that the best solutions (at least for me) is to either 1)Greasemonkey + http://userscripts.org/scripts/show/46929 or 2) the one by asdf - Preference: dom.popup_allowed_events
Value: blank

Preference: dom.popup_maximum;0
Value: 0

Preference: privacy.popups.firstTime
Value: false

Preference: privacy.popups.policy
Value: 3

Best regards.
IceDogg
Posts: 909
Joined: Fri Jun 09, 2006 11:22 pm

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by IceDogg »

I'm pretty sure it doesn't deal with this issue. At least it don't on imagefap, I have his adult list and it doesn't solve it for that site.

PS Imagefap isn't just porn images.. so don't assume to much about me. ;)
asdf

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by asdf »

I see this is one of the popUNDERs that appear at imagefap.com. the noscript extension has a popunder surrogate that satisfies what the site wants to hear as a response but prevents the popunder.

Create yourself a userscript with the following code if you do not want to use the noscript extension.

Code: Select all


// ==UserScript==
// @name disable pop-unders
// @namespace maone.net
// @description Disables pop-under window that opens after clicking anywhere on page
// @include *
// ==/UserScript==

var open=window.__proto__.open;window.__proto__.open=function(url, target, features){if(!(/^_(?:top|parent|self)$/i.test(target)||target in frames)){var suspSrc=false;/popunde?r|pu$/.test(target);var frame;for(var f,ev,aa=arguments;f=aa.callee.caller;){aa=f.arguments;ev=aa[0];if(!suspSrc) suspSrc=/(?:\bpopunde?r|\bfocus|\bblur|[pP]uShown)\b/.test(f.toSource());if(ev instanceof MouseEvent && ev.type=='click' && ev.currentTarget===document){if(suspSrc){frame = document.body.appendChild(document.createElement('iframe'));frame.src='data:text/html,';frame.style.display='none';window.setTimeout(function(){frame.parentNode.removeChild(frame);},1000);var w=frame.contentWindow;w.blur=function(){};return w;}}}}return open.apply(window, arguments);};

Ben

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by Ben »

IceDogg wrote:I'm pretty sure it doesn't deal with this issue. At least it don't on imagefap, I have his adult list and it doesn't solve it for that site.

PS Imagefap isn't just porn images.. so don't assume to much about me. ;)
Greasemonkey + http://userscripts.org/scripts/show/46929 works on imagefap 100%, no whatsoever pops!
IceDogg
Posts: 909
Joined: Fri Jun 09, 2006 11:22 pm

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by IceDogg »

Ben wrote:
IceDogg wrote:I'm pretty sure it doesn't deal with this issue. At least it don't on imagefap, I have his adult list and it doesn't solve it for that site.

PS Imagefap isn't just porn images.. so don't assume to much about me. ;)
Greasemonkey + http://userscripts.org/scripts/show/46929 works on imagefap 100%, no whatsoever pops!
Negative, doesn't work here. I tried it and the code above, neither work. Maybe nightlies is different?

Edit: removed info, no longer needed. I found the reason. GreaseMonkey doesn't work on nightly builds right now. There is a fix, but I'm unable to get it working.
AlsoAnnoyedByLiveJasmine

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by AlsoAnnoyedByLiveJasmine »

I suspect adblock can only block elements, and not direct JavaScript which is what this pop-under seems to be using.

I edited the above linked Greasmonkey script a little so that it looks on every page for awePuShown variable, and if found, then it sets the cookie. This makes the blocker script work for every site that uses it, but does not create an unnecessary cookie on sites where it is not needed. This assumes that all the websites use the same variable name.

Code: Select all

// ==UserScript==
// @namespace     https://adblockplus.org/forum/viewtopic.php?f=1&t=5023
// @name          LiveJasmin.com pop-under blocker
// @description   Looks for known variable associated with LiveJasmine popunder on every page and if it's defined, it auto sets a the cookie that will prevent the pop-up. See namespace URL for more information. Adapted from http://userscripts.org/scripts/review/46929.
// ==/UserScript==


if(typeof(awePuShown) != "undefined") {
    document.cookie='popundr=1; path=/; expires='+new Date(Date.now()+24*60*60*1000*356).toGMTString();
}
The code on the webpages that makes these annoying pop-unders, taken from the source code of http://www.imagefap.com/ :

Code: Select all

<script type="text/javascript">
var awePuShown = false;

function aweDoOpen(url)
{
    if ( awePuShown === true )
    {
        return true;
    }

    var aweWindow = window.open(url, "ljPu", "toolbar,status,resizable,scrollbars,menubar,location,height=800,width=860");
    window.setTimeout(window.focus, 500 );

    if ( aweWindow )
    {
        aweWindow.blur();
        awePuShown = true;
    }
    
    return aweWindow;
}


function aweSetCookie(name, value, time)
{
    var expires = new Date();

    expires.setTime( expires.getTime() + time );

    document.cookie = name + "=" + value + "; expires=" + expires.toGMTString() + "; path=/";
}


function aweGetCookie(name)
{

    var cookies = document.cookie.toString().split('; ');
    var cookie, c_name, c_value;

    for (var n=0; n<cookies.length; n++)
    {
        cookie  = cookies[n].split("=");
        c_name  = cookie[0];
        c_value = cookie[1];

        if ( c_name == name )
        {
            return c_value;
        }
    }

    return null;
}


function aweCheckTarget(e)
{
    var cookieValue = aweGetCookie("popundr");
    var isRefDenied = aweCheckIsRefDenied();

    if ( isRefDenied === true )
    {
        aweSetCookie("popundr", 1, 60*60*1000);
        return ;
    }

    if ( cookieValue === null )
    {
        aweDoOpen("http://promo.awempire.com/tr/?id=99");

        aweSetCookie("popundr", 1, 24*60*60*1000);
    }
}


function aweCheckIsRefDenied()
{ 
       return false;
}


function aweInitPu()
{
    if ( document.attachEvent )
    {
        document.attachEvent( "onclick", aweCheckTarget );
    }
    else if ( document.addEventListener )
    {
        document.addEventListener( "click", aweCheckTarget, false );
    }
}



aweInitPu();

</script>
Ben

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by Ben »

IceDogg wrote:
Ben wrote:
IceDogg wrote:I'm pretty sure it doesn't deal with this issue. At least it don't on imagefap, I have his adult list and it doesn't solve it for that site.

PS Imagefap isn't just porn images.. so don't assume to much about me. ;)
Greasemonkey + http://userscripts.org/scripts/show/46929 works on imagefap 100%, no whatsoever pops!
Negative, doesn't work here. I tried it and the code above, neither work. Maybe nightlies is different?

Edit: removed info, no longer needed. I found the reason. GreaseMonkey doesn't work on nightly builds right now. There is a fix, but I'm unable to get it working.
I'm using FF 3.6 RC1 and it's working!


// ==UserScript==
// @namespace forum/viewtopic.php?f=1&t=5023
// @name LiveJasmin.com pop-under blocker
// @description Looks for known variable associated with LiveJasmine popunder on every page and if it's defined, it auto sets a the cookie that will prevent the pop-up. See namespace URL for more information. Adapted from http://userscripts.org/scripts/review/46929.
// ==/UserScript==

AND

// ==UserScript==
// @name disable pop-unders
// @namespace maone.net
// @description Disables pop-under window that opens after clicking anywhere on page
// @include *
// ==/UserScript==

var open=window.__proto__.open;window.__proto__.open=function(url, target, features){if(!(/^_(?:top|parent|self)$/i.test(target)||target in frames)){var suspSrc=false;/popunde?r|pu$/.test(target);var frame;for(var f,ev,aa=arguments;f=aa.callee.caller;){aa=f.arguments;ev=aa[0];if(!suspSrc) suspSrc=/(?:\bpopunde?r|\bfocus|\bblur|[pP]uShown)\b/.test(f.toSource());if(ev instanceof MouseEvent && ev.type=='click' && ev.currentTarget===document){if(suspSrc){frame = document.body.appendChild(document.createElement('iframe'));frame.src='data:text/html,';frame.style.display='none';window.setTimeout(function(){frame.parentNode.removeChild(frame);},1000);var w=frame.contentWindow;w.blur=function(){};return w;}}}}return open.apply(window, arguments);};

both NOT working, you can test at this page http://www.pornlove.org/, click on any "Read more.....and click on any image (to enlarge)...however the original Greasemonkey + http://userscripts.org/scripts/show/46929 would work 100%!
IceDogg
Posts: 909
Joined: Fri Jun 09, 2006 11:22 pm

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by IceDogg »

Ben wrote:
I'm using FF 3.6 RC1 and it's working!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20100111 Minefield/3.7a1pre - Build ID: 20100111043805

Sry if this has gotten off topic (that being ABP handling this).
Guest

Re: How to block http://creatives.livejasmin.com/iframes/.....

Post by Guest »

IceDogg wrote:
Ben wrote:
I'm using FF 3.6 RC1 and it's working!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20100111 Minefield/3.7a1pre - Build ID: 20100111043805

Sry if this has gotten off topic (that being ABP handling this).

Hehe :mrgreen: , you are too advance!

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100105 Firefox/3.6...that's what I'm using now!
Locked