Skip to content

Instantly share code, notes, and snippets.

@kainy

kainy/gist:73c428ba10fc3636de82 Secret

Last active Dec 12, 2015
Embed
What would you like to do?
Ruby Notepad Bookmarklet (IEbusters)
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(\&quot;e\&quot;);e.setTheme(\&quot;ace/theme/monokai\&quot;);e.getSession().setMode(\&quot;ace/mode/ruby\&quot;);">\ <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(\&quot;e\&quot;);e.setTheme(\&quot;ace/theme/monokai\&quot;);e.getSession().setMode(\&quot;ace/mode/ruby\&quot;);">\
<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
You can’t perform that action at this time.