Skip to content

Instantly share code, notes, and snippets.

@killwing
Last active May 25, 2022 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killwing/975350ca30a513ac78221a88df3307e0 to your computer and use it in GitHub Desktop.
Save killwing/975350ca30a513ac78221a88df3307e0 to your computer and use it in GitHub Desktop.
bookmarklet
javascript:document.querySelectorAll("li section").forEach(s => s.innerHTML = s.innerHTML.replace(/(https:\/\/.*)/, "<a href='$1' target='_blank'>$1</a>"))
javascript:outText='';for(i=0;i<document.images.length;i++){if(outText.indexOf(document.images[i].src)==-1){outText+='<tr><td><img src='+document.images[i].src+'></td><td>'+document.images[i].height+'</td><td>'+document.images[i].width+'</td><td>'+document.images[i].src+'</td></tr>'}};if(outText!=''){imgWindow=window.open('','imgWin','width=800,height=600');imgWindow.document.write ('<table border=1 cellpadding=10><tr><th>Image</th><th>Height</th><th>Width</th><th>URL</th></tr>'+outText+'</table>');imgWindow.document.close()}else{alert('No images!')}
data:text/html,<title>Notepad<%2Ftitle><style type%3D"text%2Fcss">%23e%7Bfont-size%3A 16px%3B position%3Aabsolute%3Btop%3A0%3Bright%3A0%3Bbottom%3A0%3Bleft%3A0%3B%7D<%2Fstyle><div id%3D"e"><%2Fdiv><script src%3D"https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Face%2F1.4.7%2Face.js" type%3D"text%2Fjavascript" charset%3D"utf-8"><%2Fscript><script>var e%3Dace.edit('e')%3Be.setTheme("ace%2Ftheme%2Fmonokai")%3Be.session.setMode("ace%2Fmode%2Fmarkdown")%3Be.session.setUseWrapMode(true)%3B<%2Fscript>
javascript:if (location.pathname == "/"); else if (location.pathname.charAt(location.pathname.length-1) == "/") location = ".."; else location = "."; void 0
data:text/html,<title>Blank<%2Ftitle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment