User:FlightTime Public/common.js: Difference between revisions

Content deleted Content added
m Update
updated scripts, migrated deprecated functions
Line 1:
importScriptURImw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
 
importScript('User:Ais523/adminrights.js');
 
importScript('User:Drilnoth/lefteditlinks.js');
 
importScript('User:Ohconfucius/script/MOSNUM dates.js'); //[[User:Ohconfucius/script/MOSNUM dates.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:Ioeth/friendly.js');
 
importScript('User:Dr pda/prosesize.js'); //[[User:Dr pda/prosesize.js]]
 
importScript("User:GregU/dashes.js");
 
importScript('User:AzaToth/twinkle.js');
 
importScript('User:Smith609/toolbox.js');
 
addOnloadHook$(function () {
mw.util.addPortletLink(
"p-personal",
"http://en.wikipedia.org/wiki/User_talk:Mlpearc",
"Main talk", "pt-acctool", "Link to my main talk page",
"A", document.getElementById("pt-logout")
);
});
 
mw.util.addPortletLink(
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/User:Mlpearc/Status",
"Status", "pt-acctool", "Status",
"A", document.getElementById("pt-logout")
);
});
 
mw.util.addPortletLink(
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/User:Mlpearc/Workshop#Frequently_used_stuff",
"Workshop", "pt-acctool", "Lnk to my Workshop",
"A", document.getElementById("pt-logout")
);
});
mw.util.addPortletLink(
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/Special:NewFiles",
"New Files", "pt-acctool", "New Files",
"A", document.getElementById("pt-logout"));
} );
mw.util.addPortletLink(
"p-personal",
"http://en.wikipedia.org/wiki/Wikipedia:Requests_for_permissions#Current requests",
"RfP", "pt-acctool", "Link to Requests for Permissions",
"A", document.getElementById("pt-logout"));
} );
 
// Add [[User:Dispenser/Reflinks|WP:Reflinks]] launcher in the toolbox on left
addOnloadHook(function () {
mw.util.addPortletLink( "p-personal",
"p-tb", // toolbox portlet
"http://en.wikipedia.org/wiki/Special:NewFiles",
"http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName ')
"New Files", "pt-acctool", "New Files",
+ "?client=script&citeweb=on&overwrite=&limit=20&lang=" + mw.config.get('wgContentLanguage'),
"A", document.getElementById("pt-logout"));
"Reflinks" // link label
} );
});
 
/**
addOnloadHook(function () {
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
addPortletLink( "p-personal",
* @see https://meta.wikimedia.org/wiki/TemplateScript
"http://en.wikipedia.org/wiki/Wikipedia:Requests_for_permissions#Current requests",
* @update-token [[File:pathoschild/templatescript.js]]
"RfP", "pt-acctool", "Link to Requests for Permissions",
*/
"A", document.getElementById("pt-logout"));
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');
});
 
// Add [[User:Dispenser/Reflinks|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=20&lang=" + wgContentLanguage,
"Reflinks" // link label
)});
 
/*************
*** 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');
 
/* menu links */
// In the function below, add more lines like "regexTool('link text','function_name()')" to add
// links to the sidebar menu. The function name is the function defined in rfmscripts() below.
function rmflinks() {
regexTool('Custom regex','custom()'); // a default tool which performs regex input in a dynamic form
}
/* scripts */
// Below, define the functions linked to from rmflinks() above. These functions can use any JavaScript,
// but there is a set of simplified tools documented at
// http://meta.wikimedia.org/wiki/User:Pathoschild/Script:Regex_menu_framework .
/*************
***
Line 92 ⟶ 83:
***
*************/
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor importScriptURImw.loader.load('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript');
 
 
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript');