User:Ansumang/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:Ansumang/common.css. |
importScript('User:Ansumang/toolbaroptns.js');
//List usergroups on User:USERNAME or User talk:USERNAME
importScript('User:Splarka/sysopdectector.js');
// User Identifier - Adds a little button to the username when viewing the userpage, showing edit count, groups, registering date
importScript('User:Anomie/useridentifier.js');
importScript('User:Ohconfucius/script/Common Terms.js'); //[[User:Ohconfucius/script/Common Terms.js]]
//importScript('User:Tim Song/afchelper4.js');
importScript('User:Anomie/util.js');
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importScript('User:Richwales/markusers.js');
//importScript('User:Lunchboxhero/externISBN.js');
importScript('User:Gracenotes/rollback.js');
importScript('User:Cameltrader/Advisor.js');
importScript('User:Shubinator/DYKcheck.js');
importScript('User:Gimmetrow/fixRefs.js'); // Fix References
importScript('User:Dr pda/prosesize.js'); // Prose Size
importScript('User:Splarka/dabfinder.js'); // Disambiguation lookup script
//importScript('User:Ale_jrb/Scripts/igloo.js'); // [[User:Ale_jrb/Scripts/igloo]]
importScript('User:AzaToth/twinkle.js');
importScript('User:AzaToth/morebits.js');
//importScript('User:Lupin/recent2.js');
//importScript('User:Gracenotes/amelvand.js');
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
importScript('User:Smith609/toolbox.js');
importScript('User:Odie5533/SnipManager.user.js');
importScript('User:NerdyScienceDude/Scripts/extratoolbarbuttons.js');
importScript('User:NerdyScienceDude/Scripts/emotetoolbar.js');
importScript('User:Tcncv/sorttables.js');
importScript('Wikipedia:AutoEd/basic.js');
importScript('Wikipedia:Dazzle!/code.js');
//importScript('Wikipedia:WikiProject User scripts/Scripts/Six tabs');
// Installation for Assessment Bar India
$.getScript("//en.wikipedia.org/w/index.php?title=User:YuviPanda/AssessmentBar/WPIndia.js&action=raw&ctype=text/javascript").then(function() {
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:YuviPanda/AssessmentBar.js&action=raw&ctype=text/javascript');
});
/*
//MediaWiki:Interwiki-links
var wgLangPrefs;
if (!wgLangPrefs) wgLangPrefs = Array();
wgLangPrefs.push("or");
importScriptURI('//or.wikipedia.org/wiki/MediaWiki:Interwiki-links.js');
*/
//Commons helper
//importScript('User:2D/commonsmover.js');
//importScript('User:Fran McCrory/CH2 en.js');
importScript('User:Twp/tineye.js'); // [[User:Twp/tineye.js]]
//QR code
importScript('User:Ansumang/qr.js');
// Add [[WP:Reflinks]] launcher in the toolbox on left
addOnloadHook(function () {
addPortletLink(
"p-tb", // toolbox portlet
"http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + wgPageName
+ "?client=script&citeweb=on&overwrite=&limit=30&lang=" + wgContentLanguage,
"Reflinks" // link label
)});
// Adds a link to the acc tool
//
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://toolserver.org/~acc/acc.php",
"acc tool", "pt-acctool", "Link to acc tool",
"7", document.getElementById("pt-logout"));
});
/*
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/User:Krinkle/RTRC",
"RTRC", "pt-acctool", "RealTime RecentChanges",
"A", document.getElementById("pt-logout"));
});
addOnloadHook(function () {
addPortletLink( "p-cactions",
"",
"", "pt-acctool", "Raw welcome {{ }}",
document.getElementById("Read"));
});
*/
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/User:ansumang/Resources",
"Rsources", "pt-acctool", "Link to my Resources",
"Z", document.getElementById("pt-logout"));
});
importScriptURI('http://en.wikinews.org/w/index.php?title=MediaWiki:Gadget-dictionaryLookupHover.js&action=raw&ctype=text/javascript');
/*************
*** Regex menu framework
*** by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Regex_menu_framework>
*** adds a sidebar menu of user-defined scripts.
*************/
importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework.js&action=raw&ctype=text/javascript');
// [[File:Krinkle_RTRC.js]]
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
// [[File:Krinkle_OneClickCommoniser.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/OneClickCommoniser.js&action=raw&ctype=text/javascript');
//Mark blocked users
importScriptURI('http://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
/**
* Extra toolbar options
*/
$.getScript('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript', function () {
// Welcome
krInsertWikiEditorButton({
"id": "welcome",
"icon": "/media/wikipedia/commons/thumb/2/23/Nuvola_apps_edu_languages.svg/22px-Nuvola_apps_edu_languages.svg.png",
"label": "Welcome",
"insertBefore": "{\{Welcome}\}~~\~~",
"insertAfter": "",
"sampleText": "",
"autoSummary": { "summary": "/* Welcome to Wikimedia Commons ! */ new section", "position": "replace" }
});
// Welcome + Sandbox
krInsertWikiEditorButton({
"id": "welcometest1",
"icon": "/media/wikipedia/commons/thumb/b/b4/Gtk-dialog-info.svg/22px-Gtk-dialog-info.svg.png",
"label": "Welcome + Sandbox",
"insertBefore": "{\{Welcome}\}\n{\{subst:test|",
"insertAfter": "}\}\~\~\~\~",
"sampleText": "",
"autoSummary": { "summary": "/* Please experiment in the sandbox */ new section", "position": "replace" }
});
// Test2
krInsertWikiEditorButton({
"id": "test2",
"icon": "/media/wikipedia/commons/thumb/f/f7/Nuvola_apps_important.svg/22px-Nuvola_apps_important.svg.png",
"label": "Test2",
"insertBefore": "{\{subst:test2|",
"insertAfter": "}\}\~\~\~\~",
"sampleText": "",
"autoSummary": { "summary": "/* Vandalism is not appreciated */ new section", "position": "replace" }
});
// Test3
krInsertWikiEditorButton({
"id": "test3",
"icon": "/media/wikipedia/commons/thumb/f/f1/Stop_hand_nuvola.svg/22px-Stop_hand_nuvola.svg.png",
"label": "Test3",
"insertBefore": "{\{subst:test3|",
"insertAfter": "}\}\~\~\~\~",
"sampleText": "",
"autoSummary": { "summary": "/* Warning for repeated vandalism */ new section", "position": "replace" }
});
// Hi BASEPAGENAME
krInsertWikiEditorButton({
"id": "mw-customeditbutton-hibasepagename",
"icon": "/media/wikipedia/commons/f/f8/Waving.png",
"label": "Hi BASEPAGENAME",
"insertBefore": "Hi {\{subst:BASEPAGENAME}\},\n",
"insertAfter": "",
"sampleText": ""
});
// Happy face
krInsertWikiEditorButton({
"id": "mw-customeditbutton-myspecialbutton",
"icon": "/media/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png",
"label": "Insert happy face",
"insertBefore": "[[File:Gnome-face-smile.svg|21px|",
"insertAfter": "]]",
"sampleText": "Happy face"
});
});
$(document).ready(function () {
$('body.page-Special_Watchlist div ul li a:contains("User creation log")').parent().hide();
});
// </nowiki></pre>