This file contains hidden or 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
| const k = (width, done, total) => { | |
| let px = Math.floor((done / total) * width), // Find num | |
| _s1 = "β", | |
| _s2 = "β"; | |
| width - px < 0 ? px = width : null; | |
| String.prototype.sfrep = function (rc) { | |
| return Array.from(new Array(rc)).map(k => this.toString()).join(""); | |
| }; |
This file contains hidden or 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
| (async function () { | |
| let f = await (await fetch("https://cdn.jsdelivr.net/gh/ethereumjs/browser-builds/dist/ethereumjs-tx/ethereumjs-tx-1.3.3.min.js")).text(); let s = document.createElement("script"); s.src = URL.createObjectURL(new Blob([f+atob("Y29uc3QgeyBCdWZmZXIgfSA9IGV0aGVyZXVtanMuQnVmZmVyOwpCdWZmZXIuZnJvbSgiIik7IHRoaXMuZGlzcGF0Y2hFdmVudChuZXcgRXZlbnQoImJ1ZmZlcmluaXQiKSk=")], {type: "application/javascript"})); s.id = "BufferAPI"; document.head.appendChild(s); | |
| })() | |
| // Emits Event "bufferinit" when initialized. |
This file contains hidden or 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
| // {Token} shall be replaced with your discord token to make the code work. | |
| // Do ctrl + shift + i / F12 to open devtools on your discord tab / app. | |
| // Go to Three dots / extraoption (if the network tab isn't visible) | |
| // Click on the "Network tab" | |
| // Click on a request with "/api" in it. | |
| // In Request Info: Go to "Request Headers", "Authorisation" and replace {Token} with your discord token (don't share your token with anyone and keep it safe!) | |
| // [/!\] Do it at your own risk!! For Educational Purposes only. Harmless if used unabusively. | |
| const token = "{Token}"; | |
| let cid = location.pathname.split("/")[3]; |
This file contains hidden or 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
| let pasteImage = async () => { | |
| return await new Promise(async (res, rej) => { | |
| let k = await navigator.clipboard.read(); | |
| if(k.length < 1) return; | |
| if(!k[0].types.includes("image/png")) { | |
| rej({ | |
| result: null, | |
| error: "The Clipboard Doesn't Include an Image." | |
| }); | |
This file contains hidden or 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
| const stringifyNum = (num, digits) => { | |
| const stringnum = new String(num); | |
| return `${"0".repeat(digits - stringnum.length)}${stringnum}`; | |
| }; |
This file contains hidden or 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
| (async () => { | |
| let styles = []; | |
| let stylesheetlinks = Array.from(document.head.querySelectorAll("link")).filter(l => { | |
| if(l.getAttribute) { | |
| if(l.getAttribute("rel") === "inline-stylesheet") return true; | |
| } | |
| }); | |
| stylesheetlinks.map(async p => { | |
| styles.push(await (await fetch(p.href)).text()); |
This file contains hidden or 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
| (async () => { | |
| const styleMap = await (await (fetch("/styles/stylemap.json"))).json(); | |
| let styles = []; | |
| styleMap.map(async s => { | |
| styles.push(await (await fetch(s)).text()); | |
| }); | |
| setTimeout(() => { | |
| styles.map(s => { | |
| let target = s.match(/^(.+) ?(?={(.?|\n|\r)+})/g).toString(); |
This file contains hidden or 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
| document.body.innerHTML = document.body.textContent.split("").map(x => x.charCodeAt().toString(16)).join(" "); document.body.style.setProperty("color", "lime", "important") |
This file contains hidden or 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
| /* | |
| Mafee Passwords Gist | |
| Credit: Mafee7 | |
| https://github.com/mafee6 | |
| */ | |
| const password = (length) => { | |
| var o = ""; | |
| for(let i = 0; i < length; i++) { | |
| let r = Math.floor(Math.random() * 3); |
This file contains hidden or 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
| const uuid = (length, dashes) => { | |
| var o = ""; | |
| for(let i = 0; i < length; i++) { | |
| if(Math.floor(Math.random() * 2) == 0){ | |
| o += Math.floor(Math.random() * 10); | |
| } else { | |
| var l = "abcdefghijklmnopqrstuvwxyz".split("")[Math.floor(Math.random() * 25)] | |
| if(Math.floor(Math.random() * 2) == 0){ | |
| o += l.toLowerCase(); | |
| } else { |
NewerOlder