Last active
June 19, 2021 03:16
-
-
Save gosoccerboy5/f16089082682fde2f30b79f005cb5c13 to your computer and use it in GitHub Desktop.
Code to change the quote function on the forums
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
javascript: window.copy_paste = function(id) { | |
let substr = id.toString().substring(1); | |
let username = document.querySelector("#" + id).querySelector(".username").innerText; | |
fetch("/discuss/post/" + substr + "/source/") | |
.then(res => res.text()) | |
.then(function(data) { | |
paste("[quote=" + username + "][small][i]([url=https://scratch.mit.edu/discuss/post/" + substr + "][color=grey]Original post[/color][/url])[/i][/small]\n" + data + " [/quote]"); | |
}); | |
}; | |
void(0); | |
// Use at your own risk! If you do not trust the code, DO NOT USE IT! |
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
javascript:window.copy_paste=function(id){let substr=id.toString().substring(1);let username=document.querySelector("#"+id).querySelector(".username").innerText;fetch("/discuss/post/"+substr+"/source/").then(res=>res.text()).then(function(data){paste("[quote="+username+"][small][i]([url=https://scratch.mit.edu/discuss/post/"+substr+"][color=grey]Original post[/color][/url])[/i][/small]\n"+data+" [/quote]")})};void 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what it looks like: