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)>>
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)>>