Click to bypass pop-in and page block

in Ideas and script requests
Subscribe to Click to bypass pop-in and page block 12 posts, 4 voices



Gm0nk3y User
FirefoxX11

Over the past week or so, I've noticed several news sites are using a similar pop-in that blocks (places a black shade over) the current page. You must click to bypass these annoying ads.

I'm begging for a greasemonkey script to either block the action completely, or to auto 'click' the shade.

Example sites:
http://reason.com/blog
http://www.truthout.org

Thanks in advance.

 
sdfghjklkjhg... Scriptwright
FirefoxWindows

http://reason.com/blog:
GM_addStyle('#donationdrive_popup_content,#donationdrive_popup_overlay{display:none}');

http://www.truthout.org:
GM_addStyle('#interContainer,#interVeil{display:none}');

you could use stylish for that
disabling JS also works

 
ekbworldwide Scriptwright
FirefoxWindows

Sometimes a script isn't needed. When I encounter an ad - the first thing I do is use adblock plus and its element hiding helper.

Adblock Plus
https://addons.mozilla.org/en-US/firefox/addon/...

Adblock Plus: Element Hiding Helper
https://addons.mozilla.org/en-US/firefox/addon/...

Rick752's EasyList Filters for Adblock Plus
http://easylist.adblockplus.org/

Often you can block ads that pop up in your tab by using adblock plus and clicking around to create filters

For reason.com adblock plus filters are:

reason.com##DIV#donationdrive_popup_content
reason.com##DIV#donationdrive_popup_overlay

A good search term is "interstitial" - the technical phrase for "full page ad" etc.

----

In fact - this thread reminded me that the best way to block ads is before I even even see them.

I'm going to experiment with these filters I just made:

##DIV[id*="popup"]
##DIV[id*="overlay"]

Important - they may cause problems and/or need exceptions - I don't know because I've only used them for, literally, a minute. But I've never met a "popup" or "overlay" that I've liked.

----

disabling JS also works

Disabling particular sites might limit some stuff - but you can't block all js. If you do then flash and a whole bunch of other stuff - links and whatever may not work.

 
Gm0nk3y User
FirefoxX11

Interesting idea with the adblock filters.

So to block :
[code]


//specify page to pop-under
var popunder="http://download-vuze.com/?ref=qss
[/code]

would this work?

[code]
##DIV[id*="popunder"]
[/code]

 
ekbworldwide Scriptwright
FirefoxWindows

This forum doesn't use BB code.
Put code in pre tags.

...var popunder=...
I don't know what you're doing there.

I decided that

##DIV[id*="popup"]
is too powerful.

I haven't had problems with this:

##DIV[id*="overlay"]
but it also might end up being more trouble than it's worth

Probably the easiest thing to do is block stuff after it comes up on a per site basis:

reason.com##DIV[id*=popup"]
As for:
##DIV[id*="popunder"]
Try it out. In the adblock window - top left corner "Filters" > Add filter
And then in a few days (or weeks) check the "hits" column.

I added this - I think about 6 months ago:

##DIV[id*="topjobs"]
3481 hits

 
Gm0nk3y User
FirefoxX11

I was (am) trying to kill the popup on http://quicksilverscreen.com/videos?c=2 The ##DIV[id*="popunder"] didn't do it.... any tips are great :)

 
Avindra V.G. Scriptwright
FirefoxWindows

Not seeing anything. Using AdBlock Plus with a good subscription?

 
ekbworldwide Scriptwright
FirefoxWindows

I tried it with...
- adblock disabled
- noscript disabled
- greasemonkey disabled (just to be sure)
- flashblock enabled
...but it never came up. I found the js in the source code that could make it appear.

	<script type="text/javascript" language="javascript">
		<!--
		//specify page to pop-under
		var popunder="http://download-vuze.com/?ref=qss"
	
		//specify popunder window features
		var parentW = "930";	// var parentW = screen.availWidth;
		var parentH = "730";	//var parentH = screen.availHeight;  
		var winfeatures="width=" + parentW + ",height="+parentH+",scrollbars=1,resizable=1,toolbar=0,location=1,menubar=0,status=0,directories=0"
	
		var isClicked = false;
	
		function loadornot(){
			if ( !isClicked ) {
				isClicked = true;
				loadpopunder()     
			}
		}
	
		function loadpopunder(){      
			win2=window.open(popunder,"",winfeatures)
			win2.blur();
			window.focus();
			self.focus();      
		}
		document.onclick = loadornot;

		-->   
	</script>

I even tried IE - but the site only works with Firefox! I have my js settings to only allow a pop up if I click something.

Maybe you need to play around with what permissions you give js.

___________
edit

I just had an idea. Maybe this would work for you - try it:

|http://download-vuze.com/?ref=*

 
Gm0nk3y User
FirefoxX11

Hey ekbworldwide,

Did you try to click forward to the next page? At the bottom the pages are numbered, 2, 3, etc... That's what should trigger the popup. I'm still getting it with adblock, with that filter you provided, and with a filter subscription :(

Try going through a few pages (3-5 or so). I'm also blocking all cookies. Would that have an effect?

 
ekbworldwide Scriptwright
FirefoxWindows

That's what should trigger the popup

Ah ha! You never said "Click page 2." :)

I'm sure there's a better way to do it than this - if somebody gives better code - use theirs. That said - here's my effort:

if (unsafeWindow.loadornot)
	unsafeWindow.loadornot = "";
if (unsafeWindow.loadpopunder)
	unsafeWindow.loadpopunder = "";

See that javascript code I posted before. It makes the loadornot and loadpopunder functions empty. I tested it and it works.

I'm also blocking all cookies. Would that have an effect?

Sometimes sites force cookies "Please enable cookies to fully experience our site yada yada yada". Cookies don't seem to be involved at all here.

You may want to check out AutoPager.

AutoPager
https://addons.mozilla.org/en-US/firefox/addon/...

It can auto-paginate sites. So you can scroll instead of click, click, click, clicking. Scrolling is far better.

 
Gm0nk3y User
FirefoxX11

First, let me thank you for sticking with this, but I'm still lost.

I put the code you provided into a simple greasemonkey script but still get the popup. Was that supposed to go elsewhere?

[code]
// ==UserScript==
// @name Video-Popup
// @description Popup killer
// @include http://quicksilverscreen.com/*
// ==/UserScript==
if (unsafeWindow.loadornot)
unsafeWindow.loadornot = "";
if (unsafeWindow.loadpopunder)
unsafeWindow.loadpopunder = "";
[/code]

 
ekbworldwide Scriptwright
FirefoxWindows

Hmmm... With

= adblock plus disabled
= noscript disabled
= my redirect add-on disabled

I just tested this:

// ==UserScript==
// @name           quicksilverscreen.com - block ad pop up
// @namespace      ekbworldwide
// @include        http://quicksilverscreen.com/*
// ==/UserScript==

if (unsafeWindow.loadornot)
	unsafeWindow.loadornot = "";
if (unsafeWindow.loadpopunder)
	unsafeWindow.loadpopunder = "";

And the code seems to be exactly the same as what you posted. It works for me.

___________
edit

I noticed that you have a unix icon and I'm using vista. Maybe that has something to do with it.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel