User:Zombiebaron/2019.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes.
- Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
- Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
- Opera, Konqueror and Safari users can just click the Reload button.
- Chrome: press Ctrl+F5 or Shift+F5
mw.loader.load("//en.uncyclopedia.co/w/index.php?title=User:Zombiebaron/SkinSwitcher.js&action=raw&ctype=text/javascript"); //Skin switcher (Based on the original script by Wikipedia:User:Eizzen)
mw.loader.load('//en.uncyclopedia.co/w/index.php?title=User:Zombiebaron/Invert.js&action=raw&ctype=text/javascript'); //Night mode (Based on the Invert script by Wikipedia:User:BrandonXLF)
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Animum/massdelete.js&action=raw&ctype=text/javascript"); //Mass delete
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/googleTitle.js&action=raw&ctype=text/javascript"); //Google title
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Sam Sailor/Scripts/WRStitle.js&action=raw&ctype=text/javascript"); //Wikipedia Reference Search title
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:SoledadKabocha/copySectionLink.js&action=raw&ctype=text/javascript"); //Copy Section Link
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:DannyS712/Readonly.js&action=raw&ctype=text/javascript"); //Forced view source
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Begoon/addUploadsLink.js&action=raw&ctype=text/javascript"); //User uploads
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SoledadKabocha/enterInSummaryPreviews.js&action=raw&ctype=text/javascript'); //Pressing enter in the edit summary box takes you to edit preview
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript'); //Auto Formatter
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); //Javascript Wiki Browser
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eizzen/PageCreator.js&action=raw&ctype=text/javascript'); //Page Creator - currently only in mainspace
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Eizzen/LastEditor.js&action=raw&ctype=text/javascript"); //Last Editor - currently only in mainspace
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Dudemanfellabra/diffs.js&action=raw&ctype=text/javascript'); //adds time between diffs and time since each revision
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Equazcion/link intermediate revisions.js&action=raw&ctype=text/javascript'); //link intermediate revisions
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript'); //View diffs on Recent Changes
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Jfmantis/pagesCreated.js&action=raw&ctype=text/javascript'); //Pages created
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Fred Gandt/responsiveHistoryCompare.js&action=raw&ctype=text/javascript'); //dynamically moves Compare selected revisions button
popupStructure = 'menus';
/* Rollback all */
$( function() {
if ( $('span.mw-rollback-link')[0] && mw.config.get( 'wgCanonicalSpecialPageName' ) == 'Contributions' )
mw.util.addPortletLink( 'p-cactions', 'javascript:rollbackEverything()', "rollback all", "ca-rollbackeverything", "Rollback all top edits displayed here" );
} );
function rollbackEverything() {
for ( var i in document.links ) {
if ( document.links[i].href.indexOf( 'action=rollback' ) != -1 )
window.open( document.links[i].href+'&bot=1' );
}
}
/* Interface modifications */
$( function(){
// These add action tabs at the top of a page
if( mw.config.get( 'wgNamespaceNumber' ) > -1 ) {
mw.util.addPortletLink( 'p-cactions', '/wiki/Special:PrefixIndex/' + wgPageName, 'Subpages', 'd-subpages', 'List subpages and other pages starting with this title' );
mw.util.addPortletLink( 'p-cactions', '/w/index.php?title=Special:Log&page=' + wgPageName, 'Logs', 'd-logs', 'Show any relevant logs for this title' );
mw.util.addPortletLink( 'p-cactions', '/wiki/' + wgPageName + '?action=purge', 'Purge', 'd-purge', 'Purge the current page' );
// mw.util.addPortletLink( 'p-cactions', '/wiki/' + wgPageName + '?useskin=vector', 'Vector', 'd-vector', 'View page in the Vector skin' );
}
// These add personal links at the top right of every page
mw.util.addPortletLink( 'p-personal', '/wiki/Special:ListFiles/' + wgUserName, 'Uploads', 'pt-uploads' );
mw.util.addPortletLink( 'p-personal', '/wiki/Special:Log/' + wgUserName, 'Logs', 'pt-logs' );
mw.util.addPortletLink( 'p-personal', '/wiki/Special:PrefixIndex/User:'+ wgUserName, 'Subpages', 'pt-subpages' );
$("#pt-logout").hide();
// These add toolbox links to the sidebar of every page
mw.util.addPortletLink( 'p-tb', 'https://en.uncyclopedia.co/wiki/User:Zombiebaron/2019.js', '2019.js Project', 't-2019' );
mw.util.addPortletLink( 'p-tb', 'https://en.uncyclopedia.co/wiki/User:Zombiebaron/Images', 'Images', 't-images' );
mw.util.addPortletLink( 'p-tb', 'https://en.uncyclopedia.co/wiki/Special:MassDelete', 'mass delete', 't-massdelete' );
$('#n-currentevents').after($('#n-recentchanges'));
$('#n-recentchanges').css({ 'font-weight': 'bold' });
} );
/* Edit counter in top bar - by Wikipedia:User:Mvolz */
$(document).ready( function () {
mw.loader.using( 'mediawiki.user', function() {
( new mw.Api() ).get( {
action: 'query',
meta: 'userinfo',
uiprop: 'editcount'
} ).done( function( result ) {
document.getElementById( 'pt-mycontris' ).append( ' (' + result.query.userinfo.editcount + ')' );
} );
} );
} );