Paste options here
📤 Import options from above
💾 Save options to local txt
`; const btt = ' type="button" style="margin-left: 1em; cursor: pointer; color: '; const keys = GM_listValues(); keys.forEach(k => { blm.innerHTML += '' + k + ': ' + '♻ Save' + '🔀 Sort' + '📛 Delete' + '
' + '' + JSON.stringify(GM_getValue(k)) + ''; }); } // Create Float Button function CFB() { BCR("nrcf_fcb", "📘", "right: 2em;", "bottom: 2em;", "#55acee"); BCR("nrcf_lst", "📚", "right: 4em;", "bottom: 2em;", "#eeac55"); document.addEventListener("click",BLM); } function BLM(e){ switch(e.target.id){ case "nrcf_fcb": SVM(); break; case "nrcf_lst": CBM(); break; } } // Button creater function BCR(id, text, posx, posy, color) { const cbtn = document.body.appendChild(document.createElement("button")); cbtn.id = id; cbtn.textContent = text; cbtn.style = "position: fixed;width: 44px;height: 44px;z-index: 9999;font-size: 200%;opacity: 50%;cursor: pointer;border: none;padding: unset;color: " + color + ";" + posx + posy; cbtn.type = "button"; } // Save as txt function SAT(title, text) { //console.log(text); const link = document.createElement("a"); link.href = "data:text/plain;charset=utf-8," + encodeURIComponent(text); link.download = title + ".txt"; link.style.display = "none"; document.body.appendChild(link); link.click(); document.body.removeChild(link); } })();