mirror of
https://github.com/EndPwnArchive/EndPwn3Plugins.git
synced 2024-08-14 23:57:06 +00:00
updates
This commit is contained in:
parent
9070d97d6d
commit
d99fb2e746
2 changed files with 32 additions and 31 deletions
|
@ -1,25 +1,3 @@
|
||||||
function setupCharCount() {
|
|
||||||
if (document.body.contains(charcount)) return;
|
|
||||||
if (!text || !document.body.contains(text)) {
|
|
||||||
text = document.querySelector('textarea[class^="textArea-"]');
|
|
||||||
}
|
|
||||||
if (!text) return;
|
|
||||||
|
|
||||||
text.parentNode.appendChild(charcount);
|
|
||||||
}
|
|
||||||
|
|
||||||
let charcount = document.createElement("span");
|
|
||||||
charcount.id = "charcounter";
|
|
||||||
charcount.innerHTML = "0/2000";
|
|
||||||
charcount.style.right = "40px";
|
|
||||||
charcount.style.bottom = "4px";
|
|
||||||
charcount.style.opacity = "0.5";
|
|
||||||
charcount.style.position = "absolute";
|
|
||||||
charcount.style.display = "block";
|
|
||||||
charcount.style["font-size"] = "85%";
|
|
||||||
|
|
||||||
let text = null;
|
|
||||||
|
|
||||||
exports = {
|
exports = {
|
||||||
manifest: {
|
manifest: {
|
||||||
author: "Cynosphere",
|
author: "Cynosphere",
|
||||||
|
@ -27,6 +5,28 @@ exports = {
|
||||||
description: "Counts characters in the chatbox."
|
description: "Counts characters in the chatbox."
|
||||||
},
|
},
|
||||||
start: function(){
|
start: function(){
|
||||||
|
function setupCharCount() {
|
||||||
|
if (document.body.contains(charcount)) return;
|
||||||
|
if (!text || !document.body.contains(text)) {
|
||||||
|
text = document.querySelector('textarea[class^="textArea-"]');
|
||||||
|
}
|
||||||
|
if (!text) return;
|
||||||
|
|
||||||
|
text.parentNode.appendChild(charcount);
|
||||||
|
}
|
||||||
|
|
||||||
|
let charcount = document.createElement("span");
|
||||||
|
charcount.id = "charcounter";
|
||||||
|
charcount.innerHTML = "0/2000";
|
||||||
|
charcount.style.right = "40px";
|
||||||
|
charcount.style.bottom = "4px";
|
||||||
|
charcount.style.opacity = "0.5";
|
||||||
|
charcount.style.position = "absolute";
|
||||||
|
charcount.style.display = "block";
|
||||||
|
charcount.style["font-size"] = "85%";
|
||||||
|
|
||||||
|
let text = null;
|
||||||
|
|
||||||
let charcount_mo = new MutationObserver(setupCharCount);
|
let charcount_mo = new MutationObserver(setupCharCount);
|
||||||
charcount_mo.observe(document.querySelector(".app.flex-vertical"), {
|
charcount_mo.observe(document.querySelector(".app.flex-vertical"), {
|
||||||
childList: true,
|
childList: true,
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
exports = {
|
exports = {
|
||||||
manifest: {
|
manifest: {
|
||||||
author: "Cynosphere",
|
author: "Cynosphere, Murm",
|
||||||
name: "Spotify Premium Spoof",
|
name: "Spotify Premium Spoof",
|
||||||
description: "Spoofs premium check and allows listen along without premium.",
|
description: "Spoofs premium check and allows listen along without premium.",
|
||||||
replacements: [
|
replacements: [
|
||||||
{signature:'r.isPremium=n',payload:'r.isPremium=true'}
|
{signature:'r.isPremium=n',payload:'r.isPremium=true'},
|
||||||
|
{signature:'isPremium:"premium"===t.body.product',payload:'isPremium:true'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue