LazyGirls.info

By nick_name Last update Aug 27, 2009 — Installed 940 times. Daily Installs: 1, 3, 4, 3, 2, 4, 2, 0, 2, 1, 2, 2, 1, 3, 0, 1, 0, 1, 2, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

There are 2 previous versions of this script.

// ==UserScript==
// @name           lazygirls.info
// @description    Automatic redirection to "View Full Size" of the images on lazygirls.info
// @include        http://www.lazygirls.info/*/*
// ==/UserScript==


//***************************************************************
// 1. Create an account and Set automatically login, otherwise 
//    viewing full size images is not permitted
// 2. AdBlock add filter :: http://content.rmxads.com/rmtag3.js
// 3. AdBlock add filter :: http://www.britepic.com/britepic.swf
// 4. clicking anywhere on the page while counting down, cancels
//    the redirection.
//***************************************************************



//=========================================================================
// copied'n'pasted from Google-Multi-Login GMscript.
var version_scriptURL = "http://userscripts.org/scripts/source/20497.user.js";
var version_timestamp = 1200853546962;
if(parseInt(GM_getValue("lastUpdate","0"))+86400000<=(new Date().getTime())){GM_xmlhttpRequest({method:"GET",url:version_scriptURL+"?"+new Date().getTime(),headers:{'Cache-Control':'no-cache'},onload:function(xhrResponse){GM_setValue("lastUpdate",new Date().getTime()+"");if(parseInt(/version_timestamp\s*=\s*([0-9]+)/.exec(xhrResponse.responseText)[1])>version_timestamp){if(confirm("There is an update available for the Greasemonkey script \""+xhrResponse.responseText.split("@name")[1].split("\n")[0].replace(/^\s+|\s+$/g,"")+".\"\nWould you like to go to the install page now?")){GM_openInTab(version_scriptURL);}}}});}
//=========================================================================



var magic_text=/View Full Size/i;
var magic_link;
	
var found=0;
var delay=0;
var user_permit=1;
var title=document.title;


//window.addEventListener('load',my_main,true);
document.addEventListener('click', function(event) {

	//if(event.target.text.match(magic_text))
	{
		user_permit=0;
		if(found)
		{
			magic_link.style.fontWeight="normal";
			magic_link.textContent = "View Full Size";
		}
		document.title=title;
	}
}, true);

function my_main()
{

//t = new Date().getTime();
//window.location.href = t;
	
	if (!found)
	{
		if (document.body.textContent.match(magic_text)) 
		{
			var a = window.document.getElementsByTagName("a");
			for(i=0;i<a.length;i++)
			{
				if(a[i].text.match(magic_text))
				{
					magic_link=a[i];
					magic_link.style.fontWeight="bold";
					found=1;
					break;
				}
			
			}
		}
	}
	
	if(found && user_permit)
	{
		if(delay==0)
		{
			magic_link.textContent =  " View Full Size ...";
			document.title = "[" + delay + "] " + title;
			window.location.href = magic_link.href;
		}
		else
		{
			magic_link.textContent =  " View Full Size [" + delay + "] ";
			document.title = "[" + delay + "] " + title;
			delay--;
			setTimeout(my_main,1000);
		}
	}

}


my_main();