This commit is contained in:
Cynthia Foxwell 2018-06-21 11:55:12 -06:00
parent 9070d97d6d
commit d99fb2e746
2 changed files with 32 additions and 31 deletions

View file

@ -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,

View file

@ -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'}
} ]
}
} }