Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Greasemonkey script

Name: Anonymous 2009-07-20 10:18

http://userscripts.org/scripts/review/53059

What does what in this script?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-20 10:33


//main Function
var setprefs = function() {
//If page_picture is undeined, set it as "http://"(dummy for prompt)
if(GM_getValue("page_picture")==="undefined"){GM_setValue("page_picture", "http://");}
//prompt use for picture adress
var setpic = prompt("Set page background picture:", GM_getValue("page_picture"));
//save User supplies url to preference (about:config)
GM_setValue("page_picture", setpic);
//confirm set this pic as global background
if(confirm("Do you want this picture for all pages?")){GM_setValue("page_picture_boolean", "true")}else{GM_setValue("page_picture_boolean","false");}
//set background as User suppleis url
document.body.background = setpic;}


//If page loaded and Page_Picture_boolean set, Load background from Url(supplied by setprefs)
if(GM_getValue("page_picture_boolean")==="true"){document.body.background = GM_getValue("page_picture");}

//register setprefs As Menu Command
GM_registerMenuCommand("Set background picture", setprefs);


_____________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
If our society seems more nihilistic than that of previous eras, perhaps this is simply a sign of our maturity as a sentient species.

Name: Anonymous 2009-07-20 10:42

Cool Question, bro

Name: Anonymous 2009-07-20 10:59

This isn't really that relevant to the thread except that it is about greasemonkey scripts and backgrounds.

But if I wanted to have an image in the background with a fixed position regardless of how I scroll, how would I fix that?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-20 11:35

document.body.background = GM_getValue("page_picture");
document.body.setAttribute("style","background-attachment: fixed; background-repeat: no-repeat;");


____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
These people are obviously freaks.

Name: Anonymous 2009-07-22 10:25

This sounds a bit cool and so on.
I am not that great with code but could you give an example with a picture and why not this site?

Name: Anonymous 2009-07-22 10:33

>>4
Use CSS.

Name: Anonymous 2010-02-09 9:53

>>7

k

Name: Anonymous 2010-11-27 18:46

Name: Anonymous 2010-12-25 5:33


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List