User:Cheeseskates/navigation.javascript

// ///////////////////////////////////////////////////////////////////////////////

//———————————————————————————————————————————————————————————————————————————— // Direct JavaScript code. /* Direct Javascript code is here either because a page does not exist for it  here on Wikia's and Wikimedia's domain or if it is too small to be worthy of   a pastebin import compression. */ //————————————————————————————————————————————————————————————————————————————

///////////////////////////////////////////////////////////////////////////////

// Add an edit links on Special:WhatLinksHere if (mw.config.get("wgCanonicalSpecialPageName") === "Whatlinkshere") { $("#mw-whatlinkshere-list > li").each(function(dataAndEvents, context) {   var fontSize = $(context).children("a").attr("href") + "?action=edit";    $(context).find(".mw-whatlinkshere-tools > a:last-child").after(" | ", $("").attr("href", fontSize).text("edit"));  }); }

// Add a history button on diff pages if ($('strong:contains("Changes:")').length) { $("#WikiaPageHeader").find("p").children("a").after(' (history)'); }

// Add a powerusers checkbox in Special:ListUsers if (wgCanonicalSpecialPageName == "Listusers") { $("fieldset.lu_fieldset tr:last-child").prepend('  Power Users '); }

// Add a separate list of uncreated categories on Special:Categories if (mw.config.get("wgCanonicalSpecialPageName") === "Categories") { var $newCats = $(" ").css("float", "right").text("Uncreated categories:"); var $newCatsList = $("").appendTo($newCats); $(".mw-spcontent > ul").before($newCats); $(".mw-spcontent > ul > li").has(".newcategory").clone.appendTo($newCatsList); }

///////////////////////////////////////////////////////////////////////////////

/// // ——————————————————— End Direct Import JavaScript Code ———————————————————— / ///

///////////////////////////////////////////////////////////////////////////////

//———————————————————————————————————————————————————————————————————————————— // Script Configurations /* All of the configurations below contribute to how the JavaScript imports function. It only works with imports like this, not direct JavaScript code, hence why it is in between here and the mentioned section above. */ //————————————————————————————————————————————————————————————————————————————

///////////////////////////////////////////////////////////////////////////////

// Global Navbar Configuration window.globalLinks = { global: { "User"       : "Special:Mypage", "Talk"       : "Special:Mytalk", "Contribs"   : "Special:MyContributions", "Admins"     : "Special:ListAdmins", "Activity"   : "Special:RecentChanges?days=99999&hidebots=0&hidepatrolled=0", "Maintenance" : "Special:Maintenance", "Torus"      : "Special:Torus", "Purge"      : "%page%?action=purge", "Raw"        : "%page%?action=raw", "Help"       : "Help:Index", "Contact"    : "Special:Contact" }, community: { "JS"         : "Special:Mypage/global.js", "CSS"        : "Special:Mypage/global.css" } };

// PageCreator Configuration var PCOptions = { avatar    : true, /* Display avatar           */ utc       : true, /* Display time of creation */ namespaces : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 110, 111, 828, 829, 1202 ] };                     /* Namespace IDs used to specify where to activate script. */

// Pseudo-Vector JS window.pseudoVector = { loadCss            : true, addReadTab         : true, addContributionsTab : true, disableWatchIcon   : false, visualEditorIcons  : false };

///////////////////////////////////////////////////////////////////////////////

/// // ——————————————————————— End Configuration Section ———————————————————————— // ///

///////////////////////////////////////////////////////////////////////////////

//———————————————————————————————————————————————————————————————————————————— // Imports /* Imports minify the rest of the JavaScript or CSS code and combines multiple HTTP requests into a single data transfer, making it save space and load faster than direct code. It is recommended to import this way. */ //————————————————————————————————————————————————————————————————————————————

///////////////////////////////////////////////////////////////////////////////

//--- /* importscriptURL */ //---

// AutoLink - Parses wikilinks, [external links], {templates}, and URLs into clickable links importScriptURI("https://en.wikipedia.org/w/index.php?title=User:Lenore/autolink.js&action=raw&ctype=text/javascript");

// RevisionJumper - Quickly navigate between page revisions importScriptURI("https://de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-revisionjumper.js&action=raw&ctype=text/javascript");

//--- /* importArticles */ //---

$(function { importArticles({ type: "script", articles: [ "u:dev:MediaWiki:CacheCheck/code.js",                           // w:c:dev:CacheCheck "u:dev:MediaWiki:CatFilter/code.js",                            // w:c:dev:CatFilter "u:dev:MediaWiki:ContribsLink/code.js",                         // w:c:dev:ContribsLink "u:dev:MediaWiki:DiscussionsFeed.js",                           // w:c:dev:DiscussionsFeed "u:dev:MediaWiki:DisplayTimer/code.js",                         // w:c:dev:DisplayTimer "u:dev:MediaWiki:EditIntroButton/code.js",                      // w:c:dev:EditIntroButton "u:dev:MediaWiki:FloatingTableHeader/Code.js",                  // w:c:dev:FloatingTableHeader "u:dev:MediaWiki:FloatingToc/code.js",                          // w:c:dev:FloatingToc "u:dev:MediaWiki:GlobalEditcount/code.js",                      // w:c:dev:GlobalEditcount "u:dev:MediaWiki:HeaderLinks/code.js",                          // w:c:dev:HeaderLinks "u:dev:MediaWiki:LastEdited/code.js",                           // w:c:dev:LastEdited "u:dev:MediaWiki:LinkThumb.js",                                 // w:c:dev:LinkThumb "u:dev:MediaWiki:ListFiles/code.js",                            // w:c:dev:ListFiles "u:dev:MediaWiki:MarkBlocked.js",                               // w:c:dev:MarkBlocked "u:dev:MediaWiki:NullEditButton/code.js",                       // w:c:dev:NullEditButton "u:dev:MediaWiki:OldFilePages/code.js",                         // w:c:dev:OldFilePages "u:dev:MediaWiki:PageCreator/code.js",                          // w:c:dev:PageCreator "u:dev:MediaWiki:PageRenameAuto-update/code.js",                // w:c:dev:PageRenameAuto-update "u:dev:MediaWiki:PortableCSSPad/code.js",                       // w:c:dev:PortableCSSPad "u:dev:MediaWiki:ProtectedHighlight/code.js",                   // w:c:dev:ProtectedHighlight "u:dev:MediaWiki:Pseudo-Vector.js",                             // w:c:dev:Pseudo-Vector "u:dev:MediaWiki:QRThis/code.js",                               // w:c:dev:QRThis "u:dev:MediaWiki:QuickDiff/code.js",                            // w:c:dev:QuickDiff "u:dev:MediaWiki:QuickToolsv2/code.js",                         // w:c:dev:QuickToolsv2 "u:dev:MediaWiki:ReaderMode/code.js",                           // w:c:dev:ReaderMode "u:dev:MediaWiki:ReferencePopups/code.js",                      // w:c:dev:ReferencePopups "u:dev:MediaWiki:SearchSuggest/code.js",                        // w:c:dev:SearchSuggest "u:dev:MediaWiki:UserActivityTab/code.js",                      // w:c:dev:UserActivityTab "u:dev:MediaWiki:UserRightsRecord/code.js",                     // w:c:dev:UserRightsRecord "u:dev:MediaWiki:View Source/code.js",                          // w:c:dev:View Source "u:dev:MediaWiki:YouTubeModal/code.js",                         // w:c:dev:YouTubeModal "u:admintools:MediaWiki:Common.js/Maintenance.js",              // w:c:admintools:MediaWiki:Common.js/Maintenance.js "u:kocka:User:KockaAdmiralac/GlobalNavModifications.javascript", // w:c:kocka:User:KockaAdmiralac/GlobalNavModifications.javascript "u:kocka:User:KockaAdmiralac/UnhideUserWikis.javascript",       // w:c:kocka:User:KockaAdmiralac/UnhideUserWikis.javascript "u:noreply:MediaWiki:HideWikiaLogs.js",                         // w:c:noreply:MediaWiki:HideWikiaLogs.js "u:noreply:MediaWiki:FileUsage.js",                             // w:c:noreply:MediaWiki:FileUsage.js "u:ozank:MediaWiki:Chatconnect.js",                             // w:c:ozank:MediaWiki:Chatconnect.js "u:starmanw:User:Dorumin/QuickLogs",                            // w:c:starmanw:User:Dorumin/QuickLogs "u:undertale:User:Cheeseskates/HC.javascript",                  // Wikipedia:Wikipedia:HotCat ] }); });

///////////////////////////////////////////////////////////////////////////////

/// // —————————————————— End ImportArticles section and page ——————————————————— / ///

/////////////////////////////////////////////////////////////////////////////// //