User:KurwaAntics/sandbox

Application  Try   Install Now

Application  Settings   Uninstall

Application  Installed

For example, if you are going to install new-script.js,

Installing
When the "Install Now" button is clicked, the function will search for the following string in your global JS importArticles({   type: "script",    articles: [ or importArticles({ type: 'script', articles: [ If found, the function will put  after the string, like this: importArticles({   type: "script",    articles: [        "new-script.js",        "script1.js",        "script2.js"    ] }); If not, the function will add the string to your global JS. importArticles({   type: "script",    articles: [        "new-script.js",    ] }); After that, the function will reload the page without cache.

Uninstalling
The function will delete the string "new-script.js", from your global JS. If the code is placed on the bottom of the list, , "new-script.js" will be removed. If you have only imported one script, "new-script.js" will be removed.

After that, the function will reload the page without cache.