Stem_Cell
09/29/13 02:19AM
HypnoHub Improvements
In the spirit of forum #789, I'm starting a script to fix or add little features to HypnoHub, through client-side Javascript. Stuff to make this place better to be in.

Starting with... thread links. Yep! As soon as Vann uploads my script, that's a thing of the past.

Also, I kinda wanted to show off a little, by solving this issue with the <<en.wikipedia.org/wiki/Code_golf|least number of characters possible>> (in contrast to HypnoHub Hover Zoom, which is like a thousand lines of PHP, CSS and Javascript combined).

See how cute it is:

jQuery(function($,p){/^\/forum\/show\/\d+/.test(p=location
.pathname)&&$('#paginator a[href*="m?"]').each(function()
{this.href=p+this.href.replace(/.*\?/,'?')})});


<<gist.github.com/anonymous/6747298|On GitHub>>.

Edit: <<gist.github.com/anonymous/6945949|new version (2.0)>>

Edit: <<gist.github.com/anonymous/7545974|new version (2.2)>>

Edit: <<gist.github.com/stem-cell/7599703|new version (2.3)>>
Vanndril
09/29/13 02:46AM
Bro. I like you. :D

It worked! The only really ANNOYING bug we have is all sorts of fixed. ;)

Well done!
petal
09/29/13 05:23AM
That's awesome! Can't believe it's fixed, now we need some loooooong forum threads to really make use of it.
Anno1404
09/29/13 10:52AM
petal said:
That's awesome! Can't believe it's fixed, now we need some loooooong forum threads to really make use of it.

Everyone writes one character of the alphabet and the one with 'Z' has to begin again?
Stem_Cell
09/29/13 02:40PM
Vanndril said:
Bro. I like you. :D

It worked! The only really ANNOYING bug we have is all sorts of fixed. ;)

Well done!

Thanks!

And to be honest... this is like the first site I participate in where I love how the administration is done. Having admins like you guys just makes me want to contribute something!

Anno1404 said:
petal said:
That's awesome! Can't believe it's fixed, now we need some loooooong forum threads to really make use of it.

Everyone writes one character of the alphabet and the one with 'Z' has to begin again?

Actually, on my development booru I had to solve this very issue, being such an inactive place... Here's what happened (open in new tab): i.imgur.com/QdcF5nn.png
AC
09/29/13 06:34PM
Anno1404 said:
Everyone writes one character of the alphabet and the one with 'Z' has to begin again?


The old forum staple 'Let's Count To 1,000,000!'
Mindwipe
09/29/13 10:03PM
Stem_Cell said:
Actually, on my development booru I had to solve this very issue, being such an inactive place... Here's what happened (open in new tab): i.imgur.com/QdcF5nn.png


You are a wonderfully psychotic human being, and you can be my friend.
Stem_Cell
09/30/13 12:53AM
Mindwipe said:
You are a wonderfully psychotic human being, and you can be my friend.

<<img.photobucket.com/album...g/Baccano9/Baccano_37.jpg|Yay>>!
Anno1404
09/30/13 01:43AM

Well...creepy ... but to know tomorrow is monday is even creepier (>.<)
rokkitman
09/30/13 08:25AM
Mindwipe said:
You are a wonderfully psychotic human being, and you can be my friend.



I like this place. The people are quite entertaining. Also the pr0n is good.

On topic: THANK YYYYYOOOOOOUUUUU!
Jack
09/30/13 08:45AM


Greatest love story ever told.
Vanndril
10/03/13 08:18AM
Stem_Ceeellllll! We need your heeelllllp!

Hey, hey, so...
We're thinking of adding a simple chat program to the site. Like IRC or something. If we do, though, we'd need to link to it. If we did this through the HTML files, we'd need to redo it every time the hub's software has an update. I just wanna know if it's possible to slap new URLs onto the post page with Javascript. If so, then maybe you could make a simple script that links to the chat program when the time comes. :P
petal
10/03/13 08:49AM
Vanndril said:
Stem_Ceeellllll! We need your heeelllllp!


i.imgur.com/3YzrX9e.png

yeah, I got nothing.
Mindwipe
10/03/13 08:58AM


It's the Stem Signal!
Stem_Cell
10/03/13 05:59PM
petal said:
Vanndril said:
Stem_Ceeellllll! We need your heeelllllp!

i.imgur.com/3YzrX9e.png

Haha, you guys know how to motivate me xD

Vanndril said:
I just wanna know if it's possible to slap new URLs onto the post page with Javascript.

Of course, and I'll make it in a single line again. Just tell me where the URLs should point to, what will be the link labels and where you want them.

Plus, would it be good to have a link to the forum in the front page (the one with the counters)? I sometimes miss having one.
1 2>>>


Reply | Forum Index