Jump to content

User:Technical 13/vector.js

From 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.
/* site stats */
if ( mw.config.get( 'wgCanonicalNamespace' ) === 'Special' && mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) {
  importScript( 'User:Technical 13/Scripts/Jobs.js' );// Alpha [[User:Technical 13/Scripts/Jobs.js]] [[User:Technical 13/Scripts/Jobs]]
}

/* forcedsummary */
// importScript( 'User:Technical 13/SandBox/forceSummary.js' );// Debugging snippit of code.

/* OneClickArchiver */
// [[Template:1CA]]
// [[User:Equazcion/OneClickArchiver]]
//	[[User:Technical 13/SandBox/OneClickArchiver.js]]
//	[[User:Technical 13/Scripts/OneClickArchiver.js]]
var OCAversion = 'Scripts';// Valid options are 'SandBox' or 'Scripts'
if ( mw.util.getParamValue( 'sandbox' ) === 'live' && mw.config.get( 'debug' ) === false ) { OCAversion = "Scripts"; } else if ( mw.util.getParamValue( 'sandbox' ) === 'sandbox' || mw.config.get( 'debug' ) === true ) { OCAversion = "SandBox"; }
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Technical_13/' + OCAversion +
	'/OneClickArchiver.js&action=raw&ctype=text/javascript' );

// importScript( 'User:Technical 13/Scripts/Gadget-veditLinks.js' );//Backlink [[User:Technical 13/Scripts/Gadget-veditLinks]]

importScript( 'User:Technical 13/Scripts/OrphanStatus.js' ); //Alpha testing for [[User:Technical 13/Scripts/OrphanStatus.js]]

importScript( 'User:Technical 13/Scripts/Gadget-pageProtectionLevels.js' ); //Alpha testing for [[User:Technical 13/Scripts/Gadget-pageProtectionLevels.js]]

importScript( 'User:Technical_13/Scripts/Gadget-watchlistCleaner.js' ); //Alpha testing for [[User:Technical 13/Scripts/Gadget-watchlistCleaner]]
importScript( 'User:Technical 13/Scripts/editTemplateNoDoc.js' );// Beta testing [[User:Technical 13/Scripts/editTemplateNoDoc.js]]

importScript( 'User:Jackmcbarn/editProtectedHelper.js' ); // testing [[User:Jackmcbarn/editProtectedHelper.js]]

importScript( 'User:Technical 13/SandBox/Gadget-codeAnchors.js' );// testing [[User:Technical 13/Scripts/Gadget-codeAnchors]]
importScript( 'User:Technical 13/SandBox/Gadget-codeBacklinks.js' );// testing [[User:Technical 13/Scripts/Gadget-codeBacklinks]]
importScript( 'User:Technical 13/SandBox/ACCHelp.js' );// testing [[User:Technical 13/Scripts/ACCHelp]]
importScript( 'User:Technical 13/SandBox/Gadget-extraTabs.js' );// testing [[User:Technical 13/Scripts/Gadget-extraTabs]]
// importScript( 'User:Technical 13/SandBox/NoThanks.js' ); // testing [[User:Technical 13/Scripts/NoThanks]]
// importScript( 'User:Technical 13/SandBox/Gadget-mySandbox.js' ); // testing [[User:Technical 13/Scripts/Gadget-mySandbox]]
// importScript( 'User:Technical 13/SandBox/Gadget-BugStatusUpdate.js' ); // testing [[User:Technical 13/Scripts/Gadget-BugStatusUpdate.js]]// importScript( 'User:Technical 13/SandBox/Gadget-BugStatusUpdate.js/sandbox.js' );//Testing security bug stuff
// importScript( 'User:Technical 13/SandBox/Section edit.js' );//For testing [[User:Technical 13/Scripts/Section edit]]
// importScript( 'User:Technical 13/SandBox/help-helper-tools.js' );//For testing [[User:Technical 13/Scripts/help-helper-tools]].
// importScript( 'User:Technical 13/MRollback.js' );//For testing [[User:Technical 13/MRollback.js]].
// mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Hoo_man/instantNewPagePatrol.js&action=raw&ctype=text/javascript' );// Backlink: [[User:Hoo_man/instantNewPagePatrol.js]]
// importScript( 'User:Mr.Z-man/autopatrol.js' );// Backlink: [[User:Mr.Z-man/autopatrol.js]]
// importScript( 'User:Technical 13/SandBox/wikiSwitcher.js' );// [[User:Technical_13/Scripts/wikiSwitcher]] Alpha version
importScript( 'User:Technical_13/SandBox/Gadget-listStyles.js' );// [[User:Technical_13/Scripts/Gadget-listStyles]] Beta version

/* Teahouse scripts */
importScript( 'User:Technical 13/Scripts/teahouseTalkbackLink.js' );//backlink [[User:Technical 13/Scripts/teahouseTalkbackLink.js]] rework of [[User:Writ Keeper/Scripts/teahouseTalkbackLink.js]]

/* XfD && RfX closers */
importScript( 'Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js/sandbox.js' );//backlink [[Wikipedia:WikiProject User scripts/Scripts/CloseAFD]]
//importScript( 'Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js' );//backlink [[Wikipedia:WikiProject User scripts/Scripts/CloseAFD]]
importScript( 'User:King of Hearts/closexfd.js' );// backlink [[User:King of Hearts/closexfd.js]]

/* wikEd move "editnotice" to right above editbox fix *//*
var editnotice = $( 'div#editnotice-area' ).html();
// $( 'div#editnotice-area' ).remove();
$( 'div#wikEdClonedWarnings' ).html( '<div id="wikEdClonedWarningsNote">Relocated edit warning (wikEd):</div><div id="editnotice-area" class="editnotice-area" style="clear: both; width: 100%;">' + editnotice + '</div>' );
*/

// [[user:js/watchlist]]
if ( wgCanonicalSpecialPageName == 'Watchlist' ) 
  importScript( 'user:js/watchlist.js' );

/* Enhanced "What links here"
importScript( 'User:Technical_13/Scripts/Enhanced_"What_links_here".js' );
//mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Technical_13/Scripts/Enhanced_"What_links_here".js&action=raw&ctype=text/javascript' ); */

/* Reflinks *//* CVD */// Add [[WP:Reflinks]] && Copyvios launchers in the toolbox on left only in article namespace
var CvdRootNamespaces = new Array( 0, 2, 118 );
var CvdAfcNamespaces = new Array( 4, 5 );
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), CvdRootNamespaces ) || ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), CvdAfcNamespaces ) && mw.config.get( 'wgPageName' ).indexOf( 'Articles_for_creation/' ) !== -1 ) ) {
	mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript' );//Trying out  [[User:Zhaofeng Li/Reflinks]]//backlink [[User:Zhaofeng Li/Reflinks.js]]
	mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Technical_13/Scripts/CVD.js&action=raw&ctype=text/javascript' );//Alpha testing for [[User:Technical 13/Scripts/CVD]]
}
/* [[User:Technical_13/Scripts/Edit counter]] */
var editPageV = 'Edit count';
var tableVClass = 'collapsible collapsed';
var tableVStyle = 'width: 268px;';
var tableVTopStyle = 'background: #F0F;';
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Technical_13/Scripts/Edit_counter.js&action=raw&ctype=text/javascript' );

// Counts all your edits and saves them to a page ( http://en.wikipedia.org/wiki/User:Kanegasi/editcounter )
if ( mw.config.get( 'wgTitle' ) === mw.config.get( 'wgUserName' ) && mw.config.get( 'wgNamespaceNumber' ) === 2 ) {
// begin options
var pageName = 'Long edit count';
//var tableHeaders = false;
//var mainTableAttrib = 'class="collapsible collapsed"';
var dateFormat = 'G:i - F j, Y';
var nameSpaces = new Array();
nameSpaces[1] = '[[WP:NS1|t:]]';
nameSpaces[2] = '[[WP:NS2|U:]]';
nameSpaces[3] = 'Ut';
nameSpaces[4] = '[[WP:NS4|WP:]]';
nameSpaces[5] = 'WT';
nameSpaces[6] = '[[WP:NS6|F:]]';
nameSpaces[7] = 'Ft';
nameSpaces[9] = 'MWt';
nameSpaces[10] = '[[WP:NS10|T:]]';
nameSpaces[11] = 'Tt';
nameSpaces[12] = '[[WP:HELPNS|H:]]';
nameSpaces[13] = 'Ht';
nameSpaces[14] = '[[H:CAT|C:]]';
nameSpaces[15] = 'Ct';
nameSpaces[100] = '[[WP:P|P:]]';
nameSpaces[101] = 'Pt';
// end options
    mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Kanegasi/editcounter.js&action=raw&ctype=text/javascript' );
}

/* Deactivated until I have time to tweek .css to suite me better.
// [[User:Anomie/linkclassifier]]
LinkClassifierOnDemand=true;
*/
//Only run on my log pages.
if ( mw.config.get( 'wgTitle' ).indexOf( 'Technical 13/Logs' ) != -1 ) {
  importScript( 'User:Anomie/linkclassifier.js' );
  importStylesheet( 'User:Technical_13/linkclassifier.css' );
}