Skip to content

Instantly share code, notes, and snippets.

@piksel
Created April 17, 2012 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piksel/2409523 to your computer and use it in GitHub Desktop.
Save piksel/2409523 to your computer and use it in GitHub Desktop.
Greasemonkey script for nice full screen view of wimp.com
// ==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