Skip to content

Instantly share code, notes, and snippets.

@x7c1
Created December 19, 2012 15:40
Show Gist options
  • Select an option

  • Save x7c1/4337633 to your computer and use it in GitHub Desktop.

Select an option

Save x7c1/4337633 to your computer and use it in GitHub Desktop.
// ==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