GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment: One Greasemonkey Script - GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment

Jump to content

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

One Greasemonkey Script To almost annihiliate the forum bugs :P

#1 User is online   dflemstr

  • It's a ball.
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,171
  • Joined: 31-July 08
  • Gender:Male
  • Location:Stockholm, Sweden

Posted 10 March 2009 - 06:12 PM

Title says it all.
Get it here:
CODE
http://dssdp.dyndns.org/uploads/gp32x_forum_fix.user.js


(Or if you already have the script and want a new version:))
Get it here

THIS SCRIPT IS CONSTANTLY UPDATED
Always check that you have the newest version.


Any questions? Feature suggestions?

Current features:
- All URLs are displayed correctly if they are surrounded by "[url]....".
- All emoticons are displayed correctly, even if they too were messed up.
- All multiple apostrophes are removed.
- Fixed some weird escape things around parentheses etc.
- Images in [img]-tags display correctly, always.
- Bold text works
- Italic text works
- Underlined text works
- Stroken-through text works.

Current bugs:
- Smilies and similar inside code-tags are also parsed.
- URLs that have been posted inside code-tags due to the bugs are not shown as links.

This post has been edited by dflemstr: 27 March 2009 - 07:33 PM


#2 User is offline   GuSec

  • GP32 Hardcore
  • PipPipPipPip
  • Group: Members
  • Posts: 114
  • Joined: 29-December 08
  • Gender:Male
  • Location:Northern Sweden
  • Interests:Philosophy, debates, electronics, ethnobotany, good films and music ;)

Posted 10 March 2009 - 06:43 PM

AMAZING. Just installed Greasomenkey yesterday for another forum so this is just so convenient! Thanks mate, this works like a charm!
(A suggestion would be to put some of the apostrophes and the link in ordinary format in your post, just to show tho difference...) laugh.gif

#3 User is offline   Pleng

  • Mega GP Mania
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,404
  • Joined: 28-December 06

Posted 10 March 2009 - 06:47 PM

QUOTE('''''''''''''''GuSec''''''''''''''' @ ')

AMAZING. Just installed Greasomenkey yesterday for another forum so this is just so convenient! Thanks mate, this works like a charm!
(A suggestion would be to put some of the apostrophes and the link in ordinary format in your post, just to show tho difference...) \:lol\:


ignore me

(script doesn''t work if you''re editing a post that already has an url in it. and the moment for comedy genious has since passed...)

This post has been edited by Pleng: 10 March 2009 - 06:50 PM


#4 User is offline   GuSec

  • GP32 Hardcore
  • PipPipPipPip
  • Group: Members
  • Posts: 114
  • Joined: 29-December 08
  • Gender:Male
  • Location:Northern Sweden
  • Interests:Philosophy, debates, electronics, ethnobotany, good films and music ;)

Posted 10 March 2009 - 06:57 PM

QUOTE('''Pleng''' @ ')

ignore me

(script doesn''''''''t work if you''''''''re editing a post that already has an url in it. and the moment for comedy genious has since passed...)

It still was quite funy! \:P I''''m aware my suggestion was a little dumb.
Anyway, this topic should probably be placed in another forum, it''s not directly pandorarelated.

This post has been edited by GuSec: 10 March 2009 - 06:58 PM


#5 User is offline   Zero3K

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 263
  • Joined: 26-September 03
  • Location:USA

Posted 10 March 2009 - 08:10 PM

It doesn''t work in Opera.

#6 User is online   dflemstr

  • It's a ball.
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,171
  • Joined: 31-July 08
  • Gender:Male
  • Location:Stockholm, Sweden

Posted 10 March 2009 - 08:38 PM

That's probably because I didn't use the proper way of namespacing. I've been "poisoned" by the Java way of doing things. I'll try to change the namespace, dunno if that will break compatibility.

Or, it could be because Opera doesn't encode \ followed by " into %5C%22. Firefox does this with its gecko engine. Oh well, I won't be taking up a compatibility fight; if someone wants to change the script, do so and upload the result (Let's say its GPL).

This post has been edited by dflemstr: 10 March 2009 - 08:42 PM


#7 User is offline   PoisonedV

  • Yeah, I'm a GIRL gamer, what of it?
  • PipPipPipPipPipPip
  • View blog
  • Group: GP32 Hardcore
  • Posts: 2,600
  • Joined: 20-October 06
  • Gender:Female
  • Interests:Retro gaming, cute boys

Posted 10 March 2009 - 08:53 PM

Oh man, this is nice
don''t
won''t
can''t
etc

#8 User is offline   (naw)mcx

  • Rotary Wombat
  • PipPipPipPipPipPip
  • View blog
  • Group: GP32 Hardcore
  • Posts: 2,729
  • Joined: 03-December 05
  • Gender:Male
  • Location:Aberdeenshire
  • Interests: 

Posted 10 March 2009 - 08:54 PM

QUOTE('PoisonedV' @ 'Mar 10 2009, 08:53 PM)

Oh man, this is nice
don''t
won''t
can''t
etc

Oh my, it''s worked!

#9 User is offline   God Ginrai

  • Godmaster
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 3,421
  • Joined: 27-November 05

Posted 10 March 2009 - 09:24 PM

QUOTE('dflemstr' @ ')

Title says it all.
Get it here:
CODE
http://dssdp.dyndns.org/uploads/gp32x_forum_fix.user.js


Any questions? Feature suggestions?


How about a little piece that checks the user''s number of posts. If it is below a certain level, it changes the hyperlink for the Post Topic button (you know, the one AFTER you (not YOU specifically, but the user of the script) clicked the new topic button) into a Forum search. wink.gif

-God Ginrai

This post has been edited by God Ginrai: 10 March 2009 - 09:26 PM


#10 User is online   dflemstr

  • It's a ball.
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,171
  • Joined: 31-July 08
  • Gender:Male
  • Location:Stockholm, Sweden

Posted 10 March 2009 - 09:36 PM

That would actually be pretty nifty.

I fear, however, that the new users sooner or later would notice that the page they arrive to every time indeed isn't the New Topic page wink.gif
Not likely, with the intelligence level at which some questions here are formulated, but there's that risk.

But maybe if you change the forum UI a bit, and force everyone who registers to use the GM script, hmm...

(By the way, I'm pretty new to this forum aswell, so I really shouldn't be considering this tongue.gif )

This post has been edited by dflemstr: 10 March 2009 - 09:38 PM


#11 User is offline   God Ginrai

  • Godmaster
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 3,421
  • Joined: 27-November 05

Posted 10 March 2009 - 09:44 PM

QUOTE('dflemstr' @ 'Mar 10 2009, 04:36 PM)

That would actually be pretty nifty.

I fear, however, that the new users sooner or later would notice that the page they arrive to every time indeed isn''t the New Topic page ;\)
Not likely, with the intelligence level at which some questions here are formulated, but there''s that risk.

But maybe if you change the forum UI a bit, and force everyone who registers to use the GM script, hmm...

(By the way, I''m pretty new to this forum aswell, so I really shouldn''t be considering this \:P )


Well, what I mean is that say, you click the new topic button. The next page loads and the script does the post check and fixes it up. If the user has too few posts, then they will enter the title for their topic and type in their post. Then they click the post button and it redirects them to the search page, as if you had made a fulltext search with the search terms being the Topic title the user entered.

-God Ginrai

#12 User is online   dflemstr

  • It's a ball.
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,171
  • Joined: 31-July 08
  • Gender:Male
  • Location:Stockholm, Sweden

Posted 10 March 2009 - 09:51 PM

Oh, I see. Starting to wonder, however, how the forum would survive with 50% less posts. tongue.gif

On a more serious note: JS injection by site-cross scripting would be the only option to force them to use the script, and I say no thanks to that tongue.gif

Something similar coulsd be built into the forum software, though (if InvisionBoard only wasn't so monolithic... oh well)

#13 User is offline   Gruso

  • is unofficial
  • Icon
  • View blog
  • Group: X-treme Team
  • Posts: 5,116
  • Joined: 28-February 08
  • Gender:Male
  • Location:Sydney, Australia

Posted 10 March 2009 - 09:52 PM

This is fkn magic dflemstr, thank you!

#14 User is offline   God Ginrai

  • Godmaster
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 3,421
  • Joined: 27-November 05

Posted 10 March 2009 - 10:02 PM

QUOTE('dflemstr' @ 'Mar 10 2009, 04:51 PM)

Something similar coulsd be built into the forum software, though (if InvisionBoard only wasn''t so monolithic... oh well)


I''m actually thinking of developing a module that will do something similar to what I described. Although I don''t have access to the newer Invision''s source, so I probably won''t get around to making one for some time. But if I ever have my own forums that I host, I''ll make sure they have this feature.

-God Ginrai

#15 User is offline   dentrado

  • GP32 Hardcore
  • PipPipPipPip
  • Group: Members
  • Posts: 119
  • Joined: 17-September 08

Posted 10 March 2009 - 10:06 PM

QUOTE('(naw)mcx' @ 'Mar 10 2009, 09:54 PM)

QUOTE('''PoisonedV''' @ ')

Oh man, this is nice
don''''t
won''''t
can''''t
etc

Oh my, it''''s worked!


Yes it does! But now no one use links anymore...

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic