User:Sunil Bhanushali/common.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* User:Ais523/adminrights.js */
importScript( 'User:Ais523/adminrights.js' ); // Backlink: [[User:Ais523/adminrights.js]]
/* User:PleaseStand/highlight-comments.js */
importScript( 'User:PleaseStand/highlight-comments.js' ); // Backlink: [[User:PleaseStand/highlight-comments.js]]
/* meta:User:Perhelion/WikiEditorEmoticons.js */
importScript( 'meta:User:Perhelion/WikiEditorEmoticons.js' ); // Backlink: [[meta:User:Perhelion/WikiEditorEmoticons.js]]
/* User:Mxn/CommentsInLocalTime.js */
importScript( 'User:Mxn/CommentsInLocalTime.js' ); // Backlink: [[User:Mxn/CommentsInLocalTime.js]]
/* User:קיפודנחש/viewstats.js */
importScript( 'User:קיפודנחש/viewstats.js' ); // Backlink: [[User:קיפודנחש/viewstats.js]]
/* User:Kephir/gadgets/table-editor.js */
importScript( 'User:Kephir/gadgets/table-editor.js' ); // Backlink: [[User:Kephir/gadgets/table-editor.js]]
/* User:NicoV/TemplateDataEditor.js */
importScript( 'User:NicoV/TemplateDataEditor.js' ); // Backlink: [[User:NicoV/TemplateDataEditor.js]]
/* User:Nitobus/div.GoogleMap.js */
importScript( 'User:Nitobus/div.GoogleMap.js' ); // Backlink: [[User:Nitobus/div.GoogleMap.js]]
/* User:PleaseStand/userinfo.js */
importScript( 'User:PleaseStand/userinfo.js' ); // Backlink: [[User:PleaseStand/userinfo.js]]
/* User:MusikAnimal/customWatchlists.js */
importScript( 'User:MusikAnimal/customWatchlists.js' ); // Backlink: [[User:MusikAnimal/customWatchlists.js]]
/* User:UncleDouggie/smart watchlist.js */
importScript( 'User:UncleDouggie/smart watchlist.js' ); // Backlink: [[User:UncleDouggie/smart watchlist.js]]
/* User:Js/watchlist.js */
importScript( 'User:Js/watchlist.js' ); // Backlink: [[User:Js/watchlist.js]]


importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/SpamUserPage.js]]
importScript('User:Rezonansowy/SimpleLightbox.js'); // Backlink: [[User:Rezonansowy/SimpleLightbox.js]]
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
importScript('MediaWiki:Gadget-HotCat.js'); //Hot cat
importScript('User:Equazcion/SidebarHistoryTools.js'); //Linkback: [[User:Equazcion/SidebarHistoryTools]]
importScript('User:Bility/copySectionLink.js'); //Section link
ebPrefs = { showOnPages: ["user_usertalk", "contribs", "diffs", "ipblocklist"] };
importScript("User:Animum/easyblock.js"); //[[User:Animum/easyblock.js]]
importScript('User:Amalthea/userhighlighter.js'); //If you want a colour other than cyan, add .amalthea_userhighlighter_sysop {background-color: #FFFF00 !important}
importScript('User:Js/ajaxPreview.js'); // [[user:js/ajaxPreview]]
var ajaxPreviewPos = 'left'; //buttons on the left
importScript("User:PleaseStand/highlight-comments.js");

addOnloadHook(googleTitle);
 
function googleTitle()
{
		if(wgCanonicalNamespace == "")
		{
			var subjectName;
			if(wgPageName.charAt(wgPageName.length - 1) == ")")
			{
				subjectName = wgPageName.substring(0, wgPageName.lastIndexOf("(") - 1);
			}
			else
			{
				subjectName = wgPageName;
			}
			var searchNode = document.createElement("a");
			searchNode.href = "http://www.google.com/search?q=" + subjectName.replace(/_/g, " ") + "+-wikipedia.org";
			searchNode.target = "_blank";
			searchNode.innerHTML = "<span style='font-size:x-small;'>Search Google</span>";
			document.getElementById("firstHeading").appendChild(searchNode);
		}
}

function rollbackEverythingButton() 
{  
var hasRollback = getElementsByClassName(document, "span", "mw-rollback-link");  
if (hasRollback[0] && (document.title.indexOf("User contributions") != -1) ) 
{    
mw.util.addPortletLink('p-cactions', 'javascript:rollbackEverything()', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here");  
} 
} 
addOnloadHook(rollbackEverythingButton); function rollbackEverything() {    for (var i in document.links) 
{      
if (document.links[i].href.indexOf('action=rollback') != -1) 
{        window.open(document.links[i].href);      
}    
} 
}

addOnloadHook(addNewpages);
function addNewpages(){          mw.util.addPortletLink("p-tb","http://en.wikipedia.org/wiki/Special:NewPagesFeed" ,"New Pages","tb-Newpages","View the New Pages Feed"); }


mw.util.addPortletLink( 'p-personal', '/w/index.php?title=Special:MyPage/sandbox&action=edit', 'Sandbox', 'pt-sandbox', 'Sandbox', null, '#pt-preferences' );
/* User:Mr.Z-man/closeAFD.js */
importScript( 'User:Mr.Z-man/closeAFD.js' );// Backlink: [[User:Mr.Z-man/closeAFD.js]]
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

importStylesheet( 'skins/roundedsassy/main.css' );