-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following changes have been made: * Add AlterVP * Add and update minified scripts * Update credits * Update jsDelivr URLs to correctly point to the new version, so that they're not cached * Add CDN option in READMEs that missed it * Update README, move translations to their own folder * Update LICENSE, replace year with 2022 and revert an old change that could create a legal issue * Fix #18, hopefully
- Loading branch information
Showing
26 changed files
with
373 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
<script type="text/javascript"> | ||
const AlterVP = { | ||
title: "AlterVP - vPanel", | ||
logo: "logo.png", | ||
protocol: "https", | ||
theme: "dark", | ||
category: "normal", // normal, lite, lightspace | ||
credits: { | ||
desc: "AlterVP", | ||
logo: "small-logo.png" | ||
} | ||
}; | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/gh/WybeNetwork/[email protected]/altervp/altervp.js" type="text/javascript"></script> | ||
``` | ||
Alternatively, you can use our CDN: | ||
```html | ||
<script type="text/javascript"> | ||
const AlterVP = { | ||
title: "AlterVP - vPanel", | ||
logo: "logo.png", | ||
protocol: "https", | ||
theme: "dark", | ||
category: "normal", // normal, lite, lightspace | ||
credits: { | ||
desc: "AlterVP", | ||
logo: "small-logo.png" | ||
} | ||
}; | ||
</script> | ||
<script src="https://vpc.cdn.wybenetwork.com/altervp/altervp.js" type="text/javascript"></script> | ||
``` | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}); |
15 changes: 8 additions & 7 deletions
15
change-language-link-text-changer/change-language-link-text-changer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
change-language-link-text-changer/change-language-link-text-changer.min.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
<script type="text/javascript"> | ||
var change_language_link = "your_website_url", | ||
change_language_text = "your_text"; | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/gh/WybeNetwork/[email protected]/change-language-link-text-changer/change-language-link-text-changer.js" type="text/javascript"></script> | ||
``` | ||
Alternatively, you can use our CDN: | ||
```html | ||
<script type="text/javascript"> | ||
var change_language_link = "your_website_url", | ||
change_language_text = "your_text"; | ||
change_language_text = "your_text"; | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/gh/VPTOfficial/VistaPanel-Customizations/change-language-link-text-changer/change-language-link-text-changer.js" type="text/javascript"></script> | ||
<script src="https://vpc.cdn.wybenetwork.com/change-language-link-text-changer/change-language-link-text-changer.js" type="text/javascript"></script> | ||
``` | ||
|
||
|
||
## 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). |
14 changes: 7 additions & 7 deletions
14
change-password-link-text-changer/change-password-link-text-changer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
change-password-link-text-changer/change-password-link-text-changer.min.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
<script type="text/javascript"> | ||
var change_password_link = "your_website_url", | ||
change_password_text = "your_text"; | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/gh/WybeNetwork/[email protected]/change-password-link-text-changer/change-password-link-text-changer.js" type="text/javascript"></script> | ||
``` | ||
Alternatively, you can use our CDN: | ||
```html | ||
<script type="text/javascript"> | ||
var change_password_link = "your_website_url", | ||
change_password_text = "your_text"; | ||
change_password_text = "your_text"; | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/gh/VPTOfficial/VistaPanel-Customizations/change-password-link-text-changer/change-password-link-text-changer.js" type="text/javascript"></script> | ||
<script src="https://vpc.cdn.wybenetwork.com/change-password-link-text-changer/change-password-link-text-changer.js" type="text/javascript"></script> | ||
``` | ||
|
||
## 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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.