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

Greasemonkey

Name: Anonymous 2009-03-14 0:01

Hey /prog/

What do I have to change about this greasemonkey script so that when I go to an imagefap page, the thing acutally finishes loading:
http://userscripts.org/scripts/show/15603

I tried removing the timeout at the bottom but then it'll just stop working.

Help me experts.

Name: Anonymous 2009-03-14 23:09

>>8

How would one modify that code to auto expand images on Danbooru?

Here are some examples:

Tag gallery URL
http://danbooru.donmai.us/post/index?tags=0_raiser

Thumbnail URL
http://danbooru.donmai.us/data/preview/96883c13eaf31ea76519ebf15ce377ba.jpg

Full image URL
http://danbooru.donmai.us/data/96883c13eaf31ea76519ebf15ce377ba.jpg

The full images use the same filename as the thumbnail, they are just in /data/, not /data/preview/

The source code of the tag gallery mentions that filename on two lines. In a thumbnail line (and also in a Post.register line):

<span class="thumb" id="p410401"><a href="/post/show/410401/00_gundam-00_raiser-0_raiser-3d-dual_wield-gun-gun" onclick="return PostModeMenu.click(410401)"><img src="http://danbooru.donmai.us/data/preview/96883c13eaf31ea76519ebf15ce377ba.jpg" alt="*

I tried removing the gallery "match" portion of the imagefap expander code, and also

Changing the code to this
img.setAttribute("src", oldImg.src.replace("/preview/", "/"));

And changing the code to this
var images = document.evaluate("//span[starts-with(@class, 'thumb')]/img",

But I can't get it to work. Any ideas?

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