Revisions

gist: 3098 Download_button fork
public
Description:
Pandora Awesomizer! Hides the Ad Container and resizes to the minimum size for the player
Public Clone URL: git://gist.github.com/3098.git
Embed All Files: show embed
pandora minifier.user.js #
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
40
41
42
43
44
45
46
// ==UserScript==
// @name Pandora Awesomizer!
// @description Hides the Ad Container and resizes to the minimum size for the player
// @namespace http://fluidapp.com
// @include http://pandora.com/*
// @author Thomas Aylott / subtleGradient
// ==/UserScript==
 
(function () {
window.addEventListener('load',function(){
 
var CSS = {
'body':{padding:'12px'},
'#tuner_ad_container':{display:'none'}
};
 
var C$$ = '';
for (var rule in CSS) {
C$$ += rule + "{";
for (var property in CSS[rule])
C$$ += property+':'+CSS[rule][property]+';';
C$$ += "}\n";
}
C$$;
 
var s = document.createElement('style');
s.appendChild( document.createTextNode( C$$ ) );
 
document.getElementsByTagName('head')[0].appendChild(s);
document.getElementById('spacer').setAttribute('style','');
 
},true);
 
var resize = function(){
window.resizeTo(662,270);
};
 
window.addEventListener('resize',function(e){
setTimeout(resize, 0);
e.stopPropagation();
},true);
 
resize();
})();