Created
April 17, 2012 22:35
-
-
Save piksel/2409523 to your computer and use it in GitHub Desktop.
Greasemonkey script for nice full screen view of wimp.com
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
// ==UserScript== | |
// @name Wimp Viewer | |
// @namespace http://piksel.se | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://www.wimp.com/*/ | |
// @copyright 2012+, Nils Måsén | |
// ==/UserScript== | |
setTimeout(function(){ | |
var $$ = unsafeWindow.$$; // The page uses prototype, include in local scope | |
try{ | |
$$('body table')[0].style.display = "none"; | |
$$('body table')[1].style.display = "none"; | |
$$('body table')[5].style.display = "none"; | |
$$('#p180-root')[0].style.display = "none"; | |
} | |
catch (x) {} | |
div = document.createElement('div'); | |
div.id = "wv-dsp"; | |
//div = $$('#wv-dsp')[0]; | |
div.style.position = "fixed"; | |
div.style.left = "0px"; | |
div.style.width = "100%"; | |
div.style.top = "0px"; | |
pt = $$('body table td div table td table')[0]; | |
pt.width = "100%"; | |
pt.cellspacing = "0"; | |
player = $$('#player embed')[0]; | |
player.style.width = "100%"; | |
player.style.height = "940px"; | |
div.appendChild(pt); | |
document.body.appendChild(div); | |
}, 300); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment