-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (36 loc) · 3.54 KB
/
Copy pathindex.html
File metadata and controls
39 lines (36 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<title>bookmarklets</title>
<style>
body {
font-family: Helvetica Neue, Roboto, Arial, Droid Sans, sans-serif;
margin-left: 100px;
}
</style>
<script src="http://www.jeremyfletcher.com/jf.js"></script>
</head>
<body>
<h1>
Drag link to shortcut bar to save.
</h1>
<p>
<a href="javascript:localStorage.setItem('jf_test', true);console.log('jf_test on');">jf_test on (for video)</a>
</p>
<p>
<a href="javascript:localStorage.removeItem('jf_test');console.log('jf_test off');">jf_test off (for video)</a>
</p>
<p>
<a href="javascript:localStorage.setItem('sdsat_stagingLibrary', true);console.log('DTM stage on');">DTM stage on</a>
</p>
<p>
<a href="javascript:localStorage.removeItem('sdsat_stagingLibrary');console.log('DTM stage off');">DTM stage off</a>
</p>
<p>
<a href="javascript:'use strict';void function(e){var t=1e5,n=function(){console.log('something went wrong')},o=function(e,o){var i=e(document),a=i,r=!1,c=0,d=function(){try{var e='_'+(new Date).getTime(),t=this.contentWindow;if(t[e]=e,t[e]===e)return a.add(t.document),!0}catch(e){return!1}},p=function(){try{var n=e(this).height()*e(this).width();n>c&&n>t&&(i=e(this.contentWindow.document),c=n)}catch(e){}},s=function(){m.remove()},f='font-family:sans-serif;font-size:18px;line-height:20px;',u='z-index:99999;position:absolute;top:0;right:5px;width:258px;margin:0;padding:0;box-sizing:content-box;'+f,l='overflow:hidden;width:258px;height:20px;margin:0;padding:0;text-align:right;background-color:#D46B1E;cursor:move;box-sizing:content-box;'+f,g='padding:0 5px;color:#fff;cursor:pointer;'+f,h='position:static;width:258px;height:190px;overflow:hidden;background:#fff;border:1px solid #ccc;padding:2px',m=e('<div/>',{style:u}),v=e('<div/>',{style:l}),x=e('<span/>',{style:g}).append('×'),y=e('<div/>',{style:h});e('frame').filter(d).each(p),e('iframe',i).filter(d).each(p),i||n(),x.on('click',s),v.on('dblclick',s),m.css('top',i.scrollTop()+'px'),v.append(x),m.append(v,y).appendTo(e('body',i)),v.on({mousedown:function(e){var t=m.offset();r=[e.pageX-t.left,e.pageY-t.top],y.css('pointer-events','none'),e.preventDefault()},mouseup:function(){r=!1,y.css('pointer-events','auto')}}),i.on('mousemove',function(e){r&&m.css({left:e.pageX-r[0],top:e.pageY-r[1]})}),o(y)},i=function(e){e.html('<input type=\'checkbox\'> debug</input> <p>important information</p>')};if(e&&e.fn&&parseFloat(e.fn.jquery)>=1.7)o(e,i);else{var a=document.createElement('script');a.src='//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',a.onload=a.onreadystatechange=function(){var e=this.readyState;e&&'loaded'!==e&&'complete'!==e||o(jQuery.noConflict(),i)},a.addEventListener('error',n),a.addEventListener('abort',n),document.getElementsByTagName('head')[0].appendChild(a)}}(window.jQuery);">Debug window test</a>
</p>
<p>
<a href='javascript:(function(){var e=function(e,n,o){var t=new Blob([e],{type:o});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,n);else{var i=document.createElement("a"),a=URL.createObjectURL(t);i.href=a,i.download=n,document.body.appendChild(i),i.click(),setTimeout(function(){document.body.removeChild(i),window.URL.revokeObjectURL(a)},0)}},n=function(){return window.sessionStorage.getItem("shellCachedTokens").match(/"token"\:"(.*)"/)[1]},o={token_type:"bearer",access_token:n(),expires_in:86399998,time_requested:+new Date};e(JSON.stringify(o),"token.json")})();'>Get Launch Token</a>
</p>
</body>
</html>