User:Lwarrenwiki/common.js: Difference between revisions

Content deleted Content added
No edit summary
trying crathighlighter.js
 
(14 intermediate revisions by the same user not shown)
Line 1:
// See also vector.js
 
// ------------------------------------------------------------------
// ADDITIONS (don't know where they'll manifest)
// ------------------------------------------------------------------
importScript('User:Ohconfucius/script/Common TermsEngvarB.js'); // [[User:Ohconfucius/script/Common TermsEngvarB.js]]
// importScript( 'User:Kbh3rdCumbril/whackamoleRefConsolidate_start.js' );
 
importScript( 'User:Amorymeltzer/crathighlighter.js' ); // Backlink: [[User:Amorymeltzer/crathighlighter.js]]
 
// borrowed from [[:User:Amorymeltzer]]:
importScript('"User:LwarrenwikiAmorymeltzer/hamiltrashuserinfo.js'");
// DOESN'T WORK -- importScript("User:Amorymeltzer/seventabs.js");
 
// -----------------------------------------------------
Line 6 ⟶ 18:
// Customized version of User:Waldir/formatcitations.js
importScript("User:Lwarrenwiki/formatcitations.js");
 
// added 2018-05-01, edit tool for the Hamiltrash vandal whack-a-mole game:
// [[User:Lwarrenwiki/hamiltrash.js]] is a *customized* version of
// [[User:Kbh3rd/whackamole.js]] - please include this line
importScript('User:Lwarrenwiki/hamiltrash.js');
// importScript('User:Kbh3rd/whackamole.js');
 
// Auto-ed function
Line 20 ⟶ 26:
// ADDITIONS TO LEFT SIDEBAR (TOOLBAR)
// -----------------------------------------------------
// Items that appear on both Read and Edit screens come first in the toolbar (after "Page Information"),
// Only appears if editing
// in the order that they're added below:
importScript('User:Ohconfucius/script/formatgeneral.js'); // [[User:Ohconfucius/script/formatgeneral.js]]
// importScript('User:Ohconfucius/script/flagcruft.js');
// importScript('User:Ohconfucius/script/Sources.js');
 
// Only appears if editing
importScript('User:Ohconfucius/script/Common Terms.js'); // [[User:Ohconfucius/script/Common Terms.js]]
 
// Tool to highlight duplicate links
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
 
// Add Dab Solver launcher in the toolbox on left
$(function () {
mw.util.addPortletLink(
"p-tb",
"http://dispenser.homenet.org/~dispenser/cgi-bin/dab_solver.py?page="+mw.config.get('wgContentLanguage')+":"+encodeURIComponent(mw.config.get('wgPageName')),
"Dab Solver"
)});
 
// Add Checklinks launcher in the toolbox on left
Line 47 ⟶ 37:
)});
// Add Dab Solver launcher in the toolbox on left
$(function () {
mw.util.addPortletLink(
"p-tb",
"http://dispenser.homenet.org/~dispenser/cgi-bin/dab_solver.py?page="+mw.config.get('wgContentLanguage')+":"+encodeURIComponent(mw.config.get('wgPageName')),
"Dab Solver"
)});
 
// Tool to highlight duplicate links
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
// appears as "Highlight duplicate links"
 
// reFill (formerly Reflinks tool)
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
// Only appears ifas editing"reFill"
 
// Toolbar items that *only* appear on an Edit screen show up on the toolbar in a second group:
// Only appears if editing
//
importScript('User:Ohconfucius/script/MOSNUM dates.js');
importScript('User:Ohconfucius/scriptLwarrenwiki/formatgeneral.js'); // custom version of [[User:Ohconfucius/script/formatgeneral.js]]
importScript('User:Ohconfucius/script/Common Terms.js'); // [[User:Ohconfucius/script/Common Terms.js]]
// importScript('User:Ohconfucius/script/flagcruft.js');
// importScript('User:Ohconfucius/script/Sources.js');
importScript('User:Lwarrenwiki/script/LWW mosnum dates.js'); // based on [[User:Ohconfucius/script/MOSNUM dates.js]]
 
// [[User:Dr pda/prosesize]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript');
 
// -----------------------------------------------------
 
// -----------------------------------------------------
Line 73 ⟶ 86:
// from [[User:Ohconfucius/script/EngvarB.js]]
// importScript('User:GregU/dashes.js');
 
// Deprecated 2019-05-24:
// added 2018-05-01, edit tool for the Hamiltrash vandal whack-a-mole game:
// [[User:Lwarrenwiki/hamiltrash.js]] is a *customized* version of [[User:Kbh3rd/whackamole.js]]
// importScript('User:OhconfuciusLwarrenwiki/script/MOSNUM dateshamiltrash.js');