Created
December 19, 2012 15:40
-
-
Save x7c1/4337633 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // ==UserScript== | |
| // @name damnfullscreen | |
| // @namespace http://x7c1.hatenablog.com/damnfullscreen | |
| // @include http://*.hatenablog.com/* | |
| // ==/UserScript== | |
| (function(window, load){ | |
| if (this.chrome && !load){ | |
| var source = '(' + arguments.callee.toString() + ')(this, true);'; | |
| var script = document.createElement('script'); | |
| script.appendChild(document.createTextNode(source)); | |
| document.body.appendChild(script); | |
| return; | |
| } | |
| function init(){ | |
| var damn = function(){}; | |
| Element.prototype.webkitRequestFullscreen = damn; | |
| //Element.prototype.webkitRequestFullScreen = damn; | |
| } | |
| try{ | |
| init(); | |
| } | |
| catch(e){ | |
| console.log(e); | |
| } | |
| })(this.unsafeWindow); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment