User:Microsoft for POTUS/vector.js

From Uncyclopedia, the content-free encyclopedia
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
String("a a".replaceAll) == "undefined" &&
(function () {
    window.swal == undefined &&
    (function () {
    /*only loading this if criteria is met because antilag
    we are checking if undefined is because all scripts here load it*/
    mw.loader.load("https://unpkg.com/sweetalert/dist/sweetalert.min.js");
    p = document.createElement("p");
    p.innerHTML =
        "Your browser is very outdated and does not support <code>replaceAll</code>. For your security and to make gadgets work, please update.";
    swal({ content: p });
    })();
})();

(mw.config.values.wgUserGroups.includes("extendedconfirmed") ||
mw.config.values.wgUserGroups.includes("rollback") ||
mw.config.values.wgUserGroups.includes("sysop")) &&
(mw.loader.load(
"https://en.uncyclopedia.co/wiki/User:Microsoft_for_POTUS/vector.js/minifyqvfdtool.js?action=raw&ctype=text/javascript"
),
mw.loader.load(
"https://en.uncyclopedia.co/wiki/User:Microsoft_for_POTUS/vector.js/minifywelcometool.js?action=raw&ctype=text/javascript"
),
mw.loader.load(
"https://en.uncyclopedia.co/wiki/User:Microsoft_for_POTUS/vector.js/icu.js?action=raw&ctype=text/javascript"
));


"y" != localStorage.getItem("signup-cta-close") &&
"*" == mw.config.values.wgUserGroups.toString() &&
"Main_Page" != mw.config.values.wgPageName &&
mw.config.values.wgContentNamespaces.includes(mw.config.values.wgNamespaceNumber) &&
"view" == mw.config.values.wgAction &&
mw.loader.load(
"https://en.uncyclopedia.co/wiki/User:Microsoft_for_POTUS/vector.js/minifysignupcta.js?action=raw&ctype=text/javascript"
);