User:Rusty Lugnuts/common.js

// Floathead importStylesheet('User:Rezonansowy/FloatHead.css');

// Serendipity // User:Mxn/serendipity.js //importScript("User:Mxn/serendipity.js");

// Google Title $(document).ready(function {		if(mw.config.get('wgCanonicalNamespace') == "")		{			var subjectName;			if(mw.config.get('wgPageName').charAt(mw.config.get('wgPageName').length - 1) == ")") {				subjectName = mw.config.get('wgPageName').substring(0, mw.config.get('wgPageName').lastIndexOf("(") - 1);			}			else			{				subjectName = mw.config.get('wgPageName');			}			var searchNode = document.createElement("a");			searchNode.href = "http://www.google.com/search?q=" + encodeURIComponent(subjectName.replace(/_/g, " ")) + "+-wikipedia.org";			searchNode.target = "_blank";			searchNode.innerHTML = " Search Google ";			document.getElementById("firstHeading").appendChild(searchNode);		} });