FANDOM


DisableCode is a script designed to assist users in debugging potential code issues by adding links to the toolbar dropdown menu to remove either personal or site-wide JS/CSS.

Installation

Importing multiple scripts? This quick guide shows how to combine the imports.
  • For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:DisableCode/code.js
  • For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:DisableCode/code.js',
    ]
});

Changelog

25-03-17 
Initial revision
20-04-17 
Slight modification to reset function
31-12-17 
Addition of Monobook support; retrofitting of I18n-js