@@ -23,11 +19,12 @@ It is not an application to install... But to use it, you can do that by adding
```
- Above is just a demo. You can add more Themes as much as you wish.
+Above is just a demo. You can add as much themes as you wish.
## Final notes
-You can also host the script on your server!
+You can also host the script on your server, or use a service like jsDelivr!
+You'll have to replace ``vpc.cdn.wybenetwork.com`` with your URL. You can do the same with ``vpt.cdn.wybenetwork.com``, either replacing it with a jsDelivr link or your own server's one.
diff --git a/theme-switcher/switcher.js b/theme-switcher/switcher.js
index 2eaf0bd..db9e280 100644
--- a/theme-switcher/switcher.js
+++ b/theme-switcher/switcher.js
@@ -1,3 +1,8 @@
+/*
+* Created at 29 December 2018 by RanaKHAS
+* Modified at 23 June 2021 by MAHOfficial
+* DO NOT REMOVE CREDITS!
+*/
var cssId = 'wybe-network-theme-switcher';
if (!document.getElementById(cssId))
{
@@ -73,9 +78,4 @@ window.onunload = function(e) {
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
-setActiveStyleSheet(title);
- /*
- * Created at 29 December 2018 by RanaKHAS
- * Modified at 23 June 2021 by MAHOfficial
- * DO NOT REMOVE CREDITS!
- */
+setActiveStyleSheet(title);
\ No newline at end of file
diff --git a/theme-switcher/switcher.min.js b/theme-switcher/switcher.min.js
new file mode 100644
index 0000000..200aec5
--- /dev/null
+++ b/theme-switcher/switcher.min.js
@@ -0,0 +1,6 @@
+/*
+* Created at 29 December 2018 by RanaKHAS
+* Modified at 23 June 2021 by MAHOfficial
+* DO NOT REMOVE CREDITS!
+*/
+function setActiveStyleSheet(e){var t,i;for(t=0;i=document.getElementsByTagName("link")[t];t++)-1!=i.getAttribute("rel").indexOf("style")&&i.getAttribute("title")&&(i.disabled=!0,i.getAttribute("title")==e&&(i.disabled=!1))}function getActiveStyleSheet(){var e,t;for(e=0;t=document.getElementsByTagName("link")[e];e++)if(-1!=t.getAttribute("rel").indexOf("style")&&t.getAttribute("title")&&!t.disabled)return t.getAttribute("title");return null}function getPreferredStyleSheet(){var e,t;for(e=0;t=document.getElementsByTagName("link")[e];e++)if(-1!=t.getAttribute("rel").indexOf("style")&&-1==t.getAttribute("rel").indexOf("alt")&&t.getAttribute("title"))return t.getAttribute("title");return null}function createCookie(e,t,i){if(i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3);var n="; expires="+r.toGMTString()}else n="";document.cookie=e+"="+t+n+"; path=/"}function readCookie(e){for(var t=e+"=",i=document.cookie.split(";"),r=0;r