Blogger Content Warning Auto Skip (Possible Solution)

in Ideas and script requests
Subscribe to Blogger Content Warning Auto Skip (Possible Solution) 6 posts, 3 voices



groovyskies Scriptwright

I've been asking for a working version of the now obsolete Blogger Content Warning Autoskip script (http://userscripts.org/scripts/show/32033), for some time now. Someone has finally responded with a rather easy solution, but has not implemented it. May someone with the know how please follow through and upload a working version or maybe offer a better solution?

See discussion:
http://userscripts.org/topics/21048

Solution:
"Apparently, you are loading the full page (view source), however, you are also getting this line at the top.
<iframe src="https://www.blogger.com/blogin.g?blogspotURL=***OFFENDING SITE***" height="100%" width="100%"></iframe>
basically loading the same splash page in an iframe. I suppose the "dumb way" to fix it is to force load the offending iframe page as the parent frame, which would then run this script and we'd be okay." - Max D. Sterling

 
Avindra V.G. Scriptwright

um... interesting site lol. including:

https://www.blogger.com/blogin.g?blogspotURL=*

might do it.

 
groovyskies Scriptwright

It's already included in the old obsolete script:
Here's the source code:
// ==UserScript==
// @name Blogger content warning autoskip
// @namespace http://blogger.com/
// @include https://www.blogger.com/blogin.g?blogspotURL=*
// ==/UserScript==

var continueButton = document.getElementById('continueButton');
if (continueButton) location.replace(document.evaluate('descendant-or-self::a', continueButton, null, 8, null).singleNodeValue.href);

The problem with Blogger's new interstitial is that when it's redirected using the autoskip script, the blog loads within the iframe of the interstitial, thus the section outside the frame is cut off. When you scroll past the frame nothing but the blog's background is shown. The issue is caused by the auto redirect. If you refresh the page everything is back to normal. Here are two screen shots illustrating what happens:

http://bayimg.com/paOOpaABD
http://bayimg.com/AaoPbAABd

The image on the right is the result of using the autoskip script. On the left is what the blog looks like normally.

If you want to see it for yourself. Install the autoskip script (http://userscripts.org/scripts/show/32033) and visit a blog with the new interstitial like artnudes.blogspot.com.

So, we need a script that works with both the new and old Blogger content warning interstitial.
Examples:
(Old)http://finenudes.blogspot.com/
(New)http://artnudes.blogspot.com/

 
Michael Devore Scriptwright

This appears to do what you want, based on a successful test of the two test sites provided. It simulates a click on the continue link, avoiding the need to directly load the site. Tested with Firefox 3.0.7.

// ==UserScript==
// @name Blogger content warning autoskip
// @namespace http://blogger.com/
// @include https://www.blogger.com/blogin.g?blogspotURL=*
// ==/UserScript==

var continueButton = document.getElementById('continueButton');
if (continueButton)
{
	var oEvent = document.createEvent("MouseEvents");
	oEvent.initMouseEvent("click", true, true, window, 1, 1, 1, 1, 1, false, false, false, false, 0, null);
	continueButton.dispatchEvent(oEvent);
}

 
groovyskies Scriptwright

Awesome! Can you please upload it.

 
groovyskies Scriptwright

Never mind. I uploaded it myself. Hope you don't mind. It seems to be working perfectly. Thank you so much!
Here it is: http://userscripts.org/scripts/show/44385

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