Skip to content

Instantly share code, notes, and snippets.

@wlib
Last active January 18, 2018 01:32
Show Gist options
  • Save wlib/8474adfb088bd125176df1350f28dcbd to your computer and use it in GitHub Desktop.
Save wlib/8474adfb088bd125176df1350f28dcbd to your computer and use it in GitHub Desktop.
<a href="javascript:(function(){if(document.body.contentEditable==='true'){document.body.contentEditable='false';}else{document.body.contentEditable='true';}})();">Edit this</a>
<br>
<a href="javascript:(function(){regex=/\/(edit|view)/;path=location.pathname;if(regex.test(path))location.pathname=path.replace(regex, '/preview');})();">Preview google drive</a>
<br>
<a href="javascript:(function(){Runner.instance_.loadImages();style=document.createElement('style');document.head.appendChild(style);style.sheet.insertRule('.snackbar-show { animation: unset }');})();">Unblock chrome://dino</a>
<br>
<a href="javascript:(function(){editor=document.querySelector('div.commit-create > div.CodeMirror');editor.setAttribute('style'%2C'height%3A50%25');})();">Enlarge gist edit window</a>
<br>
<a href="javascript:Array.from(document.querySelectorAll('.tv-dialog__modal-wrap, .tv-dialog__overlay')).forEach(e => e.remove());">Clean tradingview</a>
<br>
<a href="javascript:document.querySelector('.snake-food-block').style='display:none';mySnakeBoard.grid=mySnakeBoard.grid.map(row => row.map(block => -1));">http://patorjk.com/games/snake Snake infinite food</a>
<br>
<a href="javascript:(function(){script=document.createElement('script');script.src='https://cdn.rawgit.com/wlib/0d4c68436f7930a8804a109afe484317/raw/quizletTestAnswers.js';document.body.appendChild(script);})();">Quizlet test answers</a>
<br>
<a href="javascript:(function(){win=open();defaultGlobals=Object.keys(win);win.close();isNewGlobal=key=>!defaultGlobals.includes(key);console.log(Object.keys(window).filter(isNewGlobal));})();">Show new global variables</a>
<br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment