![]() ![]() …pasting it in your address bar (or reading list) and pressing.Go to any page on that will show a 404 error (e.g. You can now copy that directly into your address bar. Javascript:document.getElementsByTagName("body").innerHTML=localStorage.token The only thing that is left now is the token itself which is stored in the variable localStorage.token. For that we will first get the element using document.getElementsByTagName('body') (notice the which selects the first (and only) body element it finds).Īfter we have the element we can just edit it’s content by using. We could just use alert() but that won’t allow us to copy it, so instead we will replace the whole website’s text with our token. ![]() The developer console will directly show variables when entering their names, the address bar obviously won’t, so we will have to find a different way to display it. Notice: Google Chrome and some other browsers will cut the javascript: from the text when pasting it, so make sure to either add it back manually after pasting the snippet in your address bar or use the bookmarklet shown below. The way we run it:Īs many people probably already know, you can run JavaScript from the Address bar using javascript: followed by the code you want to run. The token is still there though, and the possibility to run JavaScript commands is too! The things that are different are the way we run it and what we run. While you have access to the browser developer console on a PC, there is no such thing in most common mobile browsers. Update: Since the newest Discord Update this trick doesn’t work anymore! Check out my new post here:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |