(Created page with "var commonLib = { windowURL: window.location.href, //lmao why can't i just fmucking use the actual thing instead of a property like a NORMAL person? windowDomain: window.loc...") |
m (Blanked the page) Tag: Blanking |
||
Line 1: | Line 1: | ||
− | var commonLib = { |
||
− | windowURL: window.location.href, //lmao why can't i just fmucking use the actual thing instead of a property like a NORMAL person? |
||
− | windowDomain: window.location.hostname //ditto. ^ Just a simpler version of '.href'. |
||
− | }; // Declares some properties (and perhaps methods) for later use |
||
− | |||
− | |||
− | if (commonLib.myURL == "https://www.fandom.com/") { |
||
− | window.location.replace("https://community.fandom.com/wiki/"); |
||
− | } // Redirects to community wiki. |