-
-
Save kainy/73c428ba10fc3636de82 to your computer and use it in GitHub Desktop.
Ruby Notepad Bookmarklet (IEbusters)
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:(function(w, d){ w.BMD_Version= '1.0.0'; w.BMD_sandbox= d.createElement('iframe'); var i= w.BMD_sandbox; i.src='javascript:document.write(\'\ <!DOCTYPE html>\ <html>\ <head>\ <script src=//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js type=text/javascript charset=utf-8 ></script>\ <style type=text/css>#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style>\ <body onload="var e=ace.edit(\"e\");e.setTheme(\"ace/theme/monokai\");e.getSession().setMode(\"ace/mode/ruby\");">\ <div id="e"></div>\ \');document.close();'; i.style.cssText= '\ display: block;\ position: fixed;\ top: 0;\ left: 0;\ width: 100%;\ height: 100%;\ opacity: .8;\ filter: alpha(opacity=90);\ z-index: 999;\ background: url(data:image/gif;base64,R0lGODlhMgAMAKIAAP///9be5pytxWOEpUprlP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFMgAFACwDAAQABgAGAAADDRgyI0qQrEgYbdStFhIAIfkEBTIABQAsDAAEAAYABgAAAw0YMiNKkKxIGG3UrRYSACH5BAUyAAUALBUABAAGAAYAAAMNGDIjSpCsSBht1K0WEgAh+QQFMgAFACweAAQABgAGAAADDRgyI0qQrEgYbdStFhIAIfkECTIABQAsAwAEACoABgAAAyFYutz+MIgxhIQ4Q0E6mVoYDh5BiShEelXqMpxnvbREWQkAOw==) no-repeat 50% 50% #fff;\ border: 0;\ '; i.frameBorder= 0; d.body.appendChild(i); })(window, document); | |
//source: | |
javascript:(function(w, d){ | |
w.BMD_Version= '1.0.0'; | |
w.BMD_sandbox= d.createElement('iframe'); | |
var i= w.BMD_sandbox; | |
i.src='javascript:document.write(\'\ | |
<!DOCTYPE html>\ | |
<html>\ | |
<head>\ | |
<script src=//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js type=text/javascript charset=utf-8 ></script>\ | |
<style type=text/css>#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style>\ | |
<body onload="var e=ace.edit(\"e\");e.setTheme(\"ace/theme/monokai\");e.getSession().setMode(\"ace/mode/ruby\");">\ | |
<div id="e"></div>\ | |
\');document.close();'; | |
i.style.cssText= '\ | |
display: block;\ | |
position: fixed;\ | |
top: 0;\ | |
left: 0;\ | |
width: 100%;\ | |
height: 100%;\ | |
opacity: .8;\ | |
filter: alpha(opacity=90);\ | |
z-index: 999;\ | |
background: url(data:image/gif;base64,R0lGODlhMgAMAKIAAP///9be5pytxWOEpUprlP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFMgAFACwDAAQABgAGAAADDRgyI0qQrEgYbdStFhIAIfkEBTIABQAsDAAEAAYABgAAAw0YMiNKkKxIGG3UrRYSACH5BAUyAAUALBUABAAGAAYAAAMNGDIjSpCsSBht1K0WEgAh+QQFMgAFACweAAQABgAGAAADDRgyI0qQrEgYbdStFhIAIfkECTIABQAsAwAEACoABgAAAyFYutz+MIgxhIQ4Q0E6mVoYDh5BiShEelXqMpxnvbREWQkAOw==) no-repeat 50% 50% #fff;\ | |
border: 0;\ | |
'; | |
i.frameBorder= 0; | |
d.body.appendChild(i); | |
})(window, document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment