Topic: mascot hack

Posted under General

out of a ridiculous amount of a fanboner for mellis i offer this greasemonkey script to pick your own mascot from anywhere, onto the e621 title page :p

// ==UserScript==
// @name e621 addl mascots
// @namespace e621
// @description additional mascots on the e621 front page.
// @include http://e621.net/
// ==/UserScript==

let old = unsafeWindow.bgChange;

function bgChange() {
GM_log("sneaky!");
unsafeWindow.backgs.push("http://e621.net/data/d0/b7/d0b706829850cb366694a78e4f3b7d35.png");
unsafeWindow.bgChange = old;
old();
}

unsafeWindow.bgChange = bgChange;

Updated by 123easy

Not sure if I'm allowed to post here,but how to activate it?
:|
Where to add it to make it work,so I can add my own pic on front page?
Nice work man.

Updated by anonymous

BranislavDJ said:
Where to add it to make it work,so I can add my own pic on front page?

it's not as amazing as you think. but greasemonkey is a firefox add-on that lets you hack at pages with javascript. e621 uses the "backgs" variable to store the list of bgs, so just add an image url to that at the right moment. as for how to make it work, get greasemonkey, pick "New User Script" then copy and paste the info you see above. the @include part is the most important, and of course the code body itself lol

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

the above script just adds extra backgrounds but keeps the old ones in the list. is kind of stupidly designed too, just screwing around. here is how simple it is to have just a certain background:

// ==UserScript==
// @name e621 addl mascots
// @namespace e621
// @description additional mascots on the e621 front page.
// @include http://e621.net/
// ==/UserScript==

unsafeWindow.backgs = new Array();
unsafeWindow.backgs.push("http://e621.net/data/d0/b7/d0b706829850cb366694a78e4f3b7d35.png");

Updated by anonymous

redweasel said:
it's not as amazing as you think. but greasemonkey is a firefox add-on that lets you hack at pages with javascript. e621 uses the "backgs" variable to store the list of bgs, so just add an image url to that at the right moment. as for how to make it work, get greasemonkey, pick "New User Script" then copy and paste the info you see above. the @include part is the most important, and of course the code body itself lol

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

the above script just adds extra backgrounds but keeps the old ones in the list. is kind of stupidly designed too, just screwing around. here is how simple it is to have just a certain background:

// ==UserScript==
// @name e621 addl mascots
// @namespace e621
// @description additional mascots on the e621 front page.
// @include http://e621.net/
// ==/UserScript==

unsafeWindow.backgs = new Array();
unsafeWindow.backgs.push("http://e621.net/data/d0/b7/d0b706829850cb366694a78e4f3b7d35.png");

Thanky.
:3
Although i dont like how "hacking" sounds like,but I'm not doing any harm to this site,right?

Updated by anonymous

I don't think he'd post it on the forums if it damaged the site.

Updated by anonymous

BranislavDJ said:
but I'm not doing any harm to this site,right?

No, javascript only modifies the page on your end.

BranislavDJ said:
Although i dont like how "hacking" sounds like

Hacking is not Cracking.

hacker: n.

6. An expert or enthusiast of any kind. One might be an astronomy hacker, for example.

7. One who enjoys the intellectual challenge of creatively overcoming or circumventing limitations.

cracker: n.

One who breaks security on a system. Coined ca. 1985 by hackers in defense against journalistic misuse of hacker (q.v., sense 8). An earlier attempt to establish worm in this sense around 1981--82 on Usenet was largely a failure.

Taken from the hacker jargon file.

Updated by anonymous

this will be all obsolete when 3.0 rolls around :3

Updated by anonymous

Aurali said:
this will be all obsolete when 3.0 rolls around :3

When might that be?

Updated by anonymous

skeeter said:

When might that be?

If I get stuck as a stay at home mom like it looks like I will... then probably a lot sooner than you think.. I REALLY need images to work with though. of all the mascots :3

Updated by anonymous

Aurali said:
If I get stuck as a stay at home mom like it looks like I will... then probably a lot sooner than you think.. I REALLY need images to work with though. of all the mascots :3

sorry for off topic,but why this isnt in site layout.its awesome.
post #83483

Updated by anonymous

cuz it doesn't need to be. :P the place it'd take up on the screen is already occupied by text and buttons. to implement that would move EVERYTHING around.

that said, it could be well done, maybe, but that particular 'top header' does not thrill me. :) But I'm sure whatever we (that is, the awesome Aurali) comes up with will be awesome :)

Updated by anonymous

SnowWolf said:
cuz it doesn't need to be. :P the place it'd take up on the screen is already occupied by text and buttons. to implement that would move EVERYTHING around.

that said, it could be well done, maybe, but that particular 'top header' does not thrill me. :) But I'm sure whatever we (that is, the awesome Aurali) comes up with will be awesome :)

Admins\Mods here are awesome 8D

Updated by anonymous

BranislavDJ said:
Admins\Mods here are awesome 8D

Yes we are. ¦3

Updated by anonymous

I can't get either of these scripts to work.

What do I do?

I'm pasting the text to a file, saving it as a user.js file, and dragging it into chrome to install it. But nothing about the front page changes.

Updated by anonymous

are you saving it as "all files" instead of the default "txt file"

EDIT: i don't know anything about greasemonkey or this script, i'm just remembering all the times i forgot to do that when saving scripts with notepad in the past

Updated by anonymous

The best part is, pretty soon this "hack" and the "hack" on the front page will be replaced with something worthwhile.

Updated by anonymous

luvdaporn said:
are you saving it as "all files" instead of the default "txt file"

I've tried both now. Neither makes a difference.

I'm not using Greasemonkey though. The page from the chrome version of the extension says development was stopped because Chrome now supports user scripts by default.

Updated by anonymous

  • 1