Two Bookmarklets To Help With The Forum Bugs


sindbad

Well-Known Member
Joined
Mar 20, 2008
Messages
1,084
I got really annoyed and wrote some helper bookmarklets.

The first one(clean link) is to be used after clicking on an old link from this forum. Normally the browser can't handle it and will say so. Click the bookmarklet and you'll get the page it links to. No more manually removing the garbage. You can try it out by clicking one of the many links in this post CODE
http://www.gp32x.de/board/index.php?showtopic=43659


The second one(clean post) replaces all groups of single quotes [edit] and all backticks with the proper html entity. CODE
ex: 'bla` is replaced by 'bla'
After you have written your post in the textarea (before you submit), click the bookmarklet to clean your post. You can try this one out by editing your post. I've used it for the numerous edits on this very post.
[thanks to chole for the html entity idea]

You can go to this link CODE
http://pastie.org/412789
, click download and get the html. Load it in your browser and bookmark the two links in the page.
[if anyone has a more permanent host for the .html, I'll edit this post.]

I also plan to write another one that cleans out improper new links CODE
http://...[url] Here's the html... the two links. TO ADMINS: move if necessary
 
Last edited by a moderator:
Odd, I seem to remember suggesting the alternate character for the single quote in Nail's adventure:

'BackAssward' said:
...

P.s.to all, you can use ` instead of '... given the forum issues... then no duplication happens.
Also, when quoting posts, a simple *find and replace* (in notepad) of all duplicate ' to a single ' will fix all posts up.
 
Last edited by a moderator:
Didn`t read that thread. Anyway, that`s basically what these bookmarklets do, in a more convenient way.
 
Wouldn't it perhaps be better to have it change the quote character (') to its ampersand code (')?
 
How about just fixing the forum instead? All of the collective guru power around here and we do not have working quotes and working links?

:(
 
Last edited by a moderator:
QUOTE

Wouldn't it perhaps be better to have it change the quote character (') to its ampersand code (')?


Actually, yes. Shame on me for not thinking about that. Fixing as I speak.

QUOTE

How about just fixing the forum instead? All of the collective guru power around here and we do not have working quotes and working links?

:(


I don't have access to the server running the forum. This is a quick hack that makes things bareable.
 
Last edited by a moderator:
morgushong said:
he didn't mean you specifically
I know, I just meant that most people don't have access to the server, but what we can do is quick hacks :)

Anyway, seems to be working fine now. Makes everything look nice. If you notice bugs, let me know.
 
Last edited by a moderator:
'gp2xs' said:
How about just fixing the forum instead? All of the collective guru power around here and we do not have working quotes and working links?
Only Hando, the site admin, can do that.

We havnt seen him here for a while.
 
Last edited by a moderator:
'sindbad' said:
I got really annoyed and wrote some helper bookmarklets.

The first one(clean link) is to be used after clicking on an old link from this forum. Normally the browser can't handle it and will say so. Click the bookmarklet and you'll get the page it links to. No more manually removing the garbage. You can try it out by clicking one of the many links in this post CODE
http://www.gp32x.de/board/index.php?showtopic=43659
The second one(clean post) replaces all groups of single quotes [edit] and all backticks with the proper html entity. CODE
ex: 'bla` is replaced by 'bla'
After you have written your post in the textarea (before you submit), click the bookmarklet to clean your post. You can try this one out by editing your post. I've used it for the numerous edits on this very post.
[thanks to chole for the html entity idea]

You can go to this link CODE
http://pastie.org/412789
, click download and get the html. Load it in your browser and bookmark the two links in the page.
[if anyone has a more permanent host for the .html, I'll edit this post.]

I also plan to write another one that cleans out improper new links CODE
http://...[url] Here's the html...n't had the time yet. <_< [I]-God Ginrai[/I]
 
Last edited by a moderator:
As a matter of fact, I do have a greasemonkey script. However, there seems to be a problem with the post editor not working with it enabled, and I don't have firebug installed at the moment so I can't check why. Can someone else check it out?

URL:
CODE
http://dssdp.dyndns.org/uploads/gp2x_forum_fix.user.js
 
God Ginrai said:
sindbad said:
I got really annoyed and wrote some helper bookmarklets. <snip>

Could you make that into a Greasemonkey script? I've been meaning to make one, but I haven't had the time yet. <_<
To my shame, I've never made or even used a Greasemonkey script. I'll look into it.
 
Last edited by a moderator:
'dflemstr' said:
As a matter of fact, I do have a greasemonkey script. However, there seems to be a problem with the post editor not working with it enabled, and I don't have firebug installed at the moment so I can't check why. Can someone else check it out?

URL:
CODE
http://dssdp.dyndns.org/uploads/gp2x_forum_fix.user.js
I'll take a look into it later tonight. I'm browsing in Opera atm.

-God Ginrai
 
Last edited by a moderator:
'God Ginrai' said:
'dflemstr' said:
As a matter of fact, I do have a greasemonkey script. However, there seems to be a problem with the post editor not working with it enabled, and I don't have firebug installed at the moment so I can't check why. Can someone else check it out?

URL:
CODE
http://dssdp.dyndns.org/uploads/gp2x_forum_fix.user.js
I'll take a look into it later tonight. I'm browsing in Opera atm.

-God Ginrai

Links work!
 
Last edited by a moderator:
'dflemstr' said:
As a matter of fact, I do have a greasemonkey script. However, there seems to be a problem with the post editor not working with it enabled, and I don't have firebug installed at the moment so I can't check why. Can someone else check it out?

URL:
http://dssdp.dyndns.org/uploads/gp2x_forum_fix.user.js



Awesome it totally works
 
Last edited by a moderator:
Yes, that link works for me as well, in Safari with GreaseKit. Thanks for making one of my bookmarklets redundant :D
 
Last edited by a moderator:
OK, I have fixed some bugs in the 'old' version of my greasemonkey script.
NEW one here :p (yes, I renamed it so you have to download it again):
CODE
http://dssdp.dyndns.org/uploads/gp32x_forum_fix.user.js


Features include:
- It fixes all links
- It fixes multiple ' -> '
- It fixes \\:p -> :p (but no image appears, ofc)
- It fixes -> [url] (but no link appears... y...new topic about this, wanna spread the joy XD
 
Last edited by a moderator:
Back
Top