Jump to content

User:Darryl.matheson/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Darryl.matheson (talk | contribs) at 14:38, 2 June 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]
<!-- importScript('user:js/ajaxPreview'); -->
importScript('Wikipedia:WikiProject User scripts/Scripts/Formatter');
<!-- importScript('User:Odie5533/SnipManager.user.js'); -->
<!-- importScript('User:Lenore/autolink.js'); -->
<!-- importScript('User:Barticus88/WhatLinksHere.js'); -->
importScript('user:js/diffs.js');
importScript('User:Cameltrader/Advisor.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Single column diffs');
<!-- importScript('User:Stevage/EnhanceHistory.user.js'); -->
// HistoryCount
addOnloadHook(function (){
    var N = 100;      // <<== CHANGE TO YOUR LIKING
    var x = document.getElementById('ca-history');
    if(!x) return;
    x.getElementsByTagName('a')[0].href += "&limit=" + N;
});
 
//

/*************
*** 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 .