diff --git a/LICENSE.md b/LICENSE.md index ccc5999..088b0ad 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT ATTRIBUTION License -Copyright (c) 2019-2021 Wybe Network +Copyright (c) 2019-2022 Wybe Network Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -27,5 +27,5 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. CREDITS TO THE AUTHORS SHALL NOT BE REMOVED WITHOUT WRITTEN AUTHORIZATION BY THE -AUTHORS THEMSELVES. BY REMOVING THE CREDITS, YOU ARE +AUTHORS THEMSELVES. BY REMOVING THE CREDITS WITHOUT WRITTEN AUTHORIZATION, YOU ARE NOT ALLOWED TO USE THE SOFTWARE. diff --git a/README.md b/README.md index aa3bfbf..db0873a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # VistaPanel Customizations -#### A repository filled with JS and CSS scripts for customizing VistaPanel. +[![Available in Greek](https://img.shields.io/badge/Available%20In-Greek-blue.svg?longcache=true&style=for-the-badge&colorA=2abbea)](translations/README_el.md) + +**A repository filled with JS and CSS scripts for customizing VistaPanel.** You **MUST** read and follow the LICENSE file before using any of the scripts here. Developed by Wybe Network for the MOFH community. @@ -17,14 +19,14 @@ If you find an issue and want to fix it, submit a PR and we will check it. If it Go to each script's folder and find the script you want to use. There will be instructions on how to do so. Read the instructions file first, after understanding it go ahead and -use jsDelivr with the method described in the article -or download the file and upload it to your site or to a CDN. +use jsDelivr / our CDN with the method described in the article, +or download the file and upload it to your site / CDN. -You can also make use of our cdn at https://vpc.cdn.wybenetwork.com/ {scriptname}/{scriptfilename.js} +You can make use of our CDN at https://vpc.cdn.wybenetwork.com/{scriptname}/{scriptfilename.js}. # Documentation -You can find the documentation for VistaPanel customizations at https://docs.wybenetwork.com/ +You can find the documentation for VistaPanel customizations at https://docs.wybenetwork.com. # Copyright Info -Copyright 2019-2021 © Wybe Network. All Rights Reserved, check the [LICENSE](LICENSE.md) for more details. +Copyright 2019-2022 © Wybe Network. All Rights Reserved, check the [LICENSE](LICENSE.md) for more details. diff --git a/altervp/README.md b/altervp/README.md new file mode 100644 index 0000000..5125ceb --- /dev/null +++ b/altervp/README.md @@ -0,0 +1,85 @@ +# AlterVP + +## Haven't I heard of this? +You may have, indeed! It was a [tool created by xpde/woxly](https://www.byet.net/index.php?/topic/2705-altervp/), that unfortunately disappeared. +There was no archive of it available, so I [(Anyx)](https://github.com/4yx) recreated it from scratch. + +## What does it do? +It has the following features: +* Change the Title +* Change the Protocol +* Change the Logo +* Change the Theme +* Add your own Credits +* Organized Code +* Clean Setup usage + +## Where should I put it? +Put it in the Footer Advert Area. + +## How can I install it? +Apply this code anywhere, within a script tag: +```js +const AlterVP = { + title: "AlterVP - vPanel", + logo: "logo.png", + protocol: "https", + theme: "dark", + category: "normal", // normal, lite, lightspace + credits: { + desc: "AlterVP", + logo: "small-logo.png" + } +}; +``` +Replace the values inside with the ones you want for your panel. + +Afterwards, create a script tag with `src` pointing to `altervp.js` or `altervp.min.js` for the minified version. + +We have also provided a ready code below, along with an explanation as to why GitHub's RAW file output cannot be used. + +### Content-Type Header Errors +The RAW option on GitHub can return an incorrect Content-Type header which makes the code not load at all. +To solve this, we need an external service which adds the correct type, like jsDelivr, or our CDN. + +The full code, using jsDelivr: +```html + + +``` +Alternatively, you can use our CDN: +```html + + +``` +Feel free to remove the comment line symbol (``//``) that explains the type of theme categories you can have. + +## Changelog +* Created on 14 September 2018 by [woxly](https://github.com/woxly) +* Modified on 14 September 2018 by [woxly](https://github.com/woxly) +* Lost in time +* Recreated on 30 August 2022 by [Anyx](https://github.com/4yx) diff --git a/altervp/altervp.js b/altervp/altervp.js new file mode 100644 index 0000000..385bb8a --- /dev/null +++ b/altervp/altervp.js @@ -0,0 +1,40 @@ +/* +* Created on 14 September 2018 by woxly +* Recreated on 30 August 2022 by Anyx +* DO NOT REMOVE CREDITS! +*/ +document.addEventListener("DOMContentLoaded", function() { + // Title + document.title = AlterVP.title; + // Protocol + if (window.location.protocol.replace(/:/g,'') !== AlterVP.protocol) { + location.protocol = AlterVP.protocol; + } + // Logo + document.getElementById("imgLogo").src = AlterVP.logo; + // Themes + if (AlterVP.category !== "lightspace") { + themeURL = ['https://vpt.cdn.wybenetwork.com', AlterVP.theme, 'styles.css'].join("/"); + if (AlterVP.category == "normal") { + iconURL = ['https://vpt.cdn.wybenetwork.com', AlterVP.theme, 'icon_spritemap.css'].join("/"); + icon = document.createElement('link'); + icon.type = 'text/css'; + icon.rel = 'stylesheet'; + icon.href = iconURL; + document.head.appendChild(icon); + } + } else { + themeURL = ['https://vpt.cdn.wybenetwork.com', AlterVP.theme, 'panel.css'].join("/"); + } + theme = document.createElement('link'); + theme.type = 'text/css'; + theme.rel = 'stylesheet'; + theme.href = themeURL; + document.head.appendChild(theme); + // Credits + script = document.createElement('script') + script.setAttribute('type', 'text/javascript') + script.innerHTML = "window.addEventListener('load',function(){document.getElementById('imgPoweredByCpanel').src=AlterVP.credits.logo})" + document.body.appendChild(script) + document.getElementById("txtCpanelVersion").innerHTML = AlterVP.credits.desc; +}); \ No newline at end of file diff --git a/altervp/altervp.min.js b/altervp/altervp.min.js new file mode 100644 index 0000000..998030a --- /dev/null +++ b/altervp/altervp.min.js @@ -0,0 +1,16 @@ +/* +* Created on 14 September 2018 by woxly +* Recreated on 30 August 2022 by Anyx +* DO NOT REMOVE CREDITS! +*/ +document.addEventListener("DOMContentLoaded",function(){ +// Title +document.title=AlterVP.title, +// Protocol +window.location.protocol.replace(/:/g,"")!==AlterVP.protocol&&(location.protocol=AlterVP.protocol), +// Logo +document.getElementById("imgLogo").src=AlterVP.logo, +// Themes +"lightspace"!==AlterVP.category?(themeURL=["https://vpt.cdn.wybenetwork.com",AlterVP.theme,"styles.css"].join("/"),"normal"==AlterVP.category&&(iconURL=["https://vpt.cdn.wybenetwork.com",AlterVP.theme,"icon_spritemap.css"].join("/"),icon=document.createElement("link"),icon.type="text/css",icon.rel="stylesheet",icon.href=iconURL,document.head.appendChild(icon))):themeURL=["https://vpt.cdn.wybenetwork.com",AlterVP.theme,"panel.css"].join("/"),theme=document.createElement("link"),theme.type="text/css",theme.rel="stylesheet",theme.href=themeURL,document.head.appendChild(theme), +// Credits +script=document.createElement("script"),script.setAttribute("type","text/javascript"),script.innerHTML="window.addEventListener('load',function(){document.getElementById('imgPoweredByCpanel').src=AlterVP.credits.logo})",document.body.appendChild(script),document.getElementById("txtCpanelVersion").innerHTML=AlterVP.credits.desc}); \ No newline at end of file diff --git a/change-language-link-text-changer/change-language-link-text-changer.js b/change-language-link-text-changer/change-language-link-text-changer.js index cf06fce..45e0513 100644 --- a/change-language-link-text-changer/change-language-link-text-changer.js +++ b/change-language-link-text-changer/change-language-link-text-changer.js @@ -1,16 +1,17 @@ -/* ************************************************************************** - * +/* ************************************************************************** + * * VistaPanel Add-on * Script Name: "Change Password" Link and Text Changer - * Author: MAHOfficial & VPT (VistaPanel Team) - * Author URL: https://mahofficial.win + * Author: MAHOfficial & Wybe Network + * Author URL: https://mahofficial.wybenetwork.com * Version: 1.0 - * Github Project URL: https://github.com/VPTOfficial/VistaPanel-Customizations - * Official Website URL: https://vpthemes.win + * GitHub Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations + * Official Website URL: https://wybenetwork.com * This file is licensed under MIT Attribution * Last Updated on 8th August 2020 by MAHOfficial * - ************************************************************************** */ + ************************************************************************** +*/ var t = ["item_", "icon-"]; for (n=0; n<=1; n++) { diff --git a/change-language-link-text-changer/change-language-link-text-changer.min.js b/change-language-link-text-changer/change-language-link-text-changer.min.js index 5394bff..b6f24e3 100644 --- a/change-language-link-text-changer/change-language-link-text-changer.min.js +++ b/change-language-link-text-changer/change-language-link-text-changer.min.js @@ -1 +1,15 @@ -document.getElementById("item_change_language").setAttribute("href",change_language_link),document.getElementById("item_change_language").innerHTML=change_language_text; +/* ************************************************************************** + * + * VistaPanel Add-on + * Script Name: "Change Password" Link and Text Changer + * Author: MAHOfficial & Wybe Network + * Author URL: https://mahofficial.wybenetwork.com + * Version: 1.0 + * GitHub Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations + * Official Website URL: https://wybenetwork.com + * This file is licensed under MIT Attribution + * Last Updated on 8th August 2020 by MAHOfficial + * + ************************************************************************** +*/ +var t=["item_","icon-"];for(n=0;n<=1;n++)document.getElementById(`${t[n]}change_language`).setAttribute("href",change_language_link),document.getElementById(`${t[n]}change_language`).innerHTML=change_language_text; \ No newline at end of file diff --git a/change-language-link-text-changer/readme.md b/change-language-link-text-changer/readme.md index 823eab6..35f3692 100644 --- a/change-language-link-text-changer/readme.md +++ b/change-language-link-text-changer/readme.md @@ -5,33 +5,40 @@ Basically, it does what the title says! It changes the link and text of the "Change Language" button, allowing you to add your own function there. ## Where should I put it? -Put it in the Footer Advert Area (Recommended) +Put it in the Footer Advert Area. ## How can I install it? -Put the following code in the Footer Advert Area from MyOwnFreeHost admin panel. +Put the following code in the Footer Advert Area on the MyOwnFreeHost admin panel. Before you do that, make sure to replace `your_website_url` in the code with your website URL and replace `your_text` with the text you want to be shown there. -The `var change_language_link = "your_website_url"` variable will replace the "Change Language" URL from vPanel and the `var change_language_text = "your_text"` variable will replace the "Change Language" text with whatever you enter as text. +The `var change_language_link = "your_website_url"` variable will replace the "Change Language" URL on vPanel and the `var change_language_text = "your_text"` variable will replace the "Change Language" text with whatever you enter as text. ### Content-Type Errors The RAW option on GitHub can return an incorrect Content-Type header which makes the code not load at all. -To solve this, we need an external service which adds the correct type, like jsDelivr. +To solve this, we need an external service which adds the correct type, like jsDelivr, or our CDN. The full code, using jsDelivr: +```html + + ``` +Alternatively, you can use our CDN: +```html - + ``` - ## Can I remove credits? No. The license mentions it. -You can request credit removal at our [support forums](https://vpthemes.win) or on our [Discord Server](https://discord.gg/FTyFXsU). +You can request credit removal at our [support forums](https://wybenetwork.com) or on our [Discord Server](https://dsc.gg/ifastnet). \ No newline at end of file diff --git a/change-password-link-text-changer/change-password-link-text-changer.js b/change-password-link-text-changer/change-password-link-text-changer.js index 6d3749b..777b388 100644 --- a/change-password-link-text-changer/change-password-link-text-changer.js +++ b/change-password-link-text-changer/change-password-link-text-changer.js @@ -1,12 +1,12 @@ -/** - * Vista Panel Add-on +/* + * VistaPanel Add-on * Script Name: "Change Password" Link and Text Changer - * Author: MAHOfficial & VPT (Vista Panel Themes) Team - * Author URL: https://mahofficial.win + * Author: MAHOfficial & Wybe Network + * Author URL: https://mahofficial.wybenetwork.com * Version: 1.0 - * Github Project URL: https://github.com/VPTOfficial/VistaPanel-Customizations - * Official Website URL: https://vpthemes.win - * This file is licensed under MIT + * Github Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations + * Official Website URL: https://wybenetwork.com + * This file is licensed under MIT Attribution * * Modified at 2 November 2018 by PlanetCloud */ diff --git a/change-password-link-text-changer/change-password-link-text-changer.min.js b/change-password-link-text-changer/change-password-link-text-changer.min.js index 7c5891a..c31072f 100644 --- a/change-password-link-text-changer/change-password-link-text-changer.min.js +++ b/change-password-link-text-changer/change-password-link-text-changer.min.js @@ -1 +1,13 @@ -var n=document.getElementById("lnkUserPrefChangePwd");n.setAttribute("href",change_password_link);n.innerHTML=change_password_text; +/* + * VistaPanel Add-on + * Script Name: "Change Password" Link and Text Changer + * Author: MAHOfficial & Wybe Network + * Author URL: https://mahofficial.wybenetwork.com + * Version: 1.0 + * Github Project URL: https://github.com/WybeNetwork/VistaPanel-Customizations + * Official Website URL: https://wybenetwork.com + * This file is licensed under MIT Attribution + * + * Modified at 2 November 2018 by PlanetCloud + */ +var n=document.getElementById("lnkUserPrefChangePwd");n.setAttribute("href",change_password_link),n.innerHTML=change_password_text; \ No newline at end of file diff --git a/change-password-link-text-changer/readme.md b/change-password-link-text-changer/readme.md index 1300373..6f07721 100644 --- a/change-password-link-text-changer/readme.md +++ b/change-password-link-text-changer/readme.md @@ -5,31 +5,39 @@ Basically, it does what the title says! It changes the link and text of the "Change Password" button, allowing you to add your own function there. ## Where should I put it? -Put it in the Footer Advert Area (Recommended) +Put it in the Footer Advert Area. ## How can I install it? -Put the following code in the Footer Advert Area from MyOwnFreeHost admin panel. +Put the following code in the Footer Advert Area on the MyOwnFreeHost admin panel. Before you do that, make sure to replace `your_website_url` in the code with your website URL and replace `your_text` with the text you want to be shown there. -The `var change_language_link = "your_website_url"` variable will replace the "Change Password" URL from vPanel and the `var change_language_text = "your_text"` variable will replace the "Change Password" text with whatever you enter as text. +The `var change_password_link = "your_website_url"` variable will replace the "Change Password" URL on vPanel and the `var change_password_text = "your_text"` variable will replace the "Change Password" text with whatever you enter as text. ### Content-Type Errors The RAW option on GitHub can return an incorrect Content-Type header which makes the code not load at all. -To solve this, we need an external service which adds the correct type, like jsDelivr. +To solve this, we need an external service which adds the correct type, like jsDelivr, or our CDN. The full code, using jsDelivr: +```html + + ``` +Alternatively, you can use our CDN: +```html - + ``` ## Can I remove credits? No. The license mentions it. -You can request credit removal at our [support forums](https://vpthemes.win) or on our [Discord Server](https://discord.gg/FTyFXsU). +You can request credit removal at our [support forums](https://wybenetwork.com) or on our [Discord Server](https://dsc.gg/ifastnet). \ No newline at end of file diff --git a/cpanel-logo-to-copyright/cpanel-logo-to-copyright.js b/cpanel-logo-to-copyright/cpanel-logo-to-copyright.js index 78ca1cc..eafa7b1 100644 --- a/cpanel-logo-to-copyright/cpanel-logo-to-copyright.js +++ b/cpanel-logo-to-copyright/cpanel-logo-to-copyright.js @@ -1,3 +1,8 @@ +/* +* Created at 10 July 2018 by PlanetCloud +* Last modified at 02 November 2018 by PlanetCloud +* DO NOT REMOVE CREDITS! +*/ document.addEventListener("DOMContentLoaded", function() { if ("undefined" !== typeof b) { var a = document.getElementById("lnkPoweredByCpanel"), @@ -11,11 +16,4 @@ document.addEventListener("DOMContentLoaded", function() { '" style="display:inline-block; z-index:2147483647; visibility:visible;">'; d.innerHTML = b.company_started < c ? "\u00a9 " + b.company_started + "-" + c + " " + b.company_name + "." : "\u00a9 " + c + " " + b.company_name + "." } - - /* - * Created at 10 July 2018 by PlanetCloud - * Lase modified at 02 November 2018 by PlanetCloud - * DO NOT REMOVE CREDITS! - */ - }); diff --git a/cpanel-logo-to-copyright/cpanel-logo-to-copyright.min.js b/cpanel-logo-to-copyright/cpanel-logo-to-copyright.min.js index c579d6b..a35a0fe 100644 --- a/cpanel-logo-to-copyright/cpanel-logo-to-copyright.min.js +++ b/cpanel-logo-to-copyright/cpanel-logo-to-copyright.min.js @@ -1,2 +1,6 @@ -document.addEventListener("DOMContentLoaded",function(){if("undefined"!==typeof b){var a=document.getElementById("lnkPoweredByCpanel"),d=document.getElementById("txtCpanelVersion"),c=(new Date).getFullYear();b.company_started=Number(b.company_started);a.href=b.prm_site;a.target="_blank";a.title=b.company_name;a.innerHTML=''+b.company_name+
-'';d.innerHTML=b.company_started