Greasy Fork

Greasy Fork is available in English.

Falscher Fuffziger

Changing a picture on a special website

当前为 2015-05-29 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           Falscher Fuffziger
// @namespace      Maxe Schmier aka Bochumer Junge
// @description    Changing a picture on a special website
// @version        1.0
// @include        http://www.geocaching.com/*
// @include        http://geocaching.com/*
// @require http://greasyfork.icu/scripts/10114-variablenspeicher/code/Variablenspeicher.js?version=54230
// ==/UserScript==

////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
//	This is a script for a special Birthday-Mystery-Cache in Germany 
//	Bene's birthday => 22.11.2012
//	Congratulation BENE 
//
//	You can solve this puzzle without installing any software,
//	but it is more fun with Greasemonkey. Try it.
//	For any questions please contact the Owner of this cache
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////

var a, b, c, theSpan, newElement, theGCName, thisURL, thisContent, thisGCName;

//Titel des Geburtstagscaches
theGCName="Falscher Fuffziger"

///////////////////////////////////////////////////////////////////////////////
// Der Code
///////////////////////////////////////////////////////////////////////////////
try
{
	thisGCName = document.getElementById('ctl00_ContentBody_CacheName');
	
	if (thisGCName.innerHTML==theGCName) 
	{
		alert(a);
		theSpan = document.getElementById('ctl00_ContentBody_LongDescription');
		thisContent = theSpan.innerHTML;
		newElement=document.createElement("span");
		if (theSpan) 
		{	
			newElement.innerHTML = '<span id="ctl00_ContentBody_LongDescription"><a name="scrollto"></a>'+thisContent+'</span>';
			theSpan.parentNode.replaceChild(newElement, theSpan);
		}
		thisURL=this.location.href.replace("#scrollto","");
		window.location.href=thisURL+"#scrollto";
		alert(b);
		alert(c);
		theSpan = document.getElementById('ctl00_ContentBody_LongDescription');
		if (theSpan) 
		{
			newElement.innerHTML = '<span id="ctl00_ContentBody_LongDescription"> ' +
			    '<img src="data:image/jpg;base64,'+newDat+'">' + '</span>';
			theSpan.parentNode.replaceChild(newElement, theSpan);
		}
	
	
	}
	else
	{
		//alert('Script aktiv '+thisGCName.innerHTML);
	}
}
catch(e)
{
	//alert("GC Name nicht gefunden");
}