FANDOM

Benjaminthewill123123

  • I live in Michigan
  • I was born on July 13
  • My occupation is Stalker
  • I am I don't know... you tell me
  • Benjaminthewill123123

    The other day I was thinking about a way to only load scripts that I need on certain namespaces, so... I came up with this.

    var Loaded = '1'; if (wgNamespaceNumber == "-1"){var Loaded = '0'; importArticles({ type: "script", articles: [ "w:c:creepypasta:MediaWiki:AjaxRefresh.js", "w:c:creepypasta:MediaWiki:NoLightBox.js", "w:c:creepypasta:MediaWiki:AJAXRollback.js", "w:c:dev:WHAM/code.js",]});} if (wgNamespaceNumber == "0"){var Loaded = '0'; importArticles({ type: "script", articles: [ "w:c:creepypasta:MediaWiki:Redlinks.js", "w:c:creepypasta:MediaWiki:AJAXRollback.js", "w:c:creepypasta:MediaWiki:AjaxUndo.js", "w:c:dev:AjaxPatrol/code.js",]});} if (wgNamespaceNumber == "1"){var Loaded = '0'; importArticles({ type: "script", articles: ["w:c:dev:Sine/code.js",]});} if (wgNamespaceNumber == "2"… Read more >
  • Benjaminthewill123123

    First off I want to add AJAX to the code below so It doesn't refresh the page once it's done but rather adds a confirmation message to the button once it is done removing the red links. I have no idea how to begin, I have tried combining it with other AJAX scripts such as Quick delete and AJAX RC with no luck. Any help would be appreciated!

    /******************************************************/ /* Red Link Fixer */ /* Idea by Madnessfan34537 */ /* Code by Madnessfan34537 and Monchoman45 */ /******************************************************/   $('#WikiHeader').append('<a class="wikia-button" onclick="this.innerHTML = span class="es0" style="font-weight:bold;… Read more >

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.