Off Topic

For everything not related to either Rayman or Pirate-Community.
Forum rules
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
rolesfamily
Uglette
Posts: 10232
Joined: Wed Oct 23, 2013 6:43 pm
Tings: 74925

Re: Off Topic

Post by rolesfamily »

PluMGMK wrote:I know I may not have the support of everyone here, but I spent all morning writing this script, and I want to point out that it doesn't replace > with the arrow image in topics that aren't "Mot à Mot !" or "Word to Word !". I will publish it if anyone wants me to. I will stop using it now though, before people get angry.
It was beautiful; and time well spent. I salute you.
OCG
The Captain
Posts: 18569
Joined: Sat May 11, 2013 9:24 am
Location: RPC Pirate Ship
Contact:
Tings: 9905

Re: Off Topic

Post by OCG »

Having script which will make it easy to type like that is awesome idea.
I never hated idea itself. Just how it seemed complicated.
I would like Humch to use such script ;)
rolesfamily
Uglette
Posts: 10232
Joined: Wed Oct 23, 2013 6:43 pm
Tings: 74925

Re: Off Topic

Post by rolesfamily »

Can someone just invent [rainbow] [/rainbow]
PluMGMK
Annetta Fish
Posts: 40514
Joined: Fri Jul 31, 2009 9:00 pm
Location: https://www.youtube.com/watch?v=cErgMJSgpv0
Contact:
Tings: 136636

Re: Off Topic

Post by PluMGMK »

That would be a server-side thing if it were to be implemented properly…
However, I could write a script that allows people to see [rainbow] [/rainbow] as actual rainbow text if they choose to install it. Shall I?
EDIT: Right, I have… something. [rainbow]If you install the script below using GreaseMonkey, this will be rainbow for you. Otherwise, you don't have to be annoyed by it.[/rainbow] It should work on any phpBB forum…

Code: Select all

// ==UserScript==
// @name        Rainbow tag reader
// @namespace   http://www.vigovproductions.net
// @description Changes [rainbow] [/rainbow] tags to real rainbow text!
// @include     http://*raymanpc.com/forum/*
// @version     1
// @grant       none
// ==/UserScript==
var GoogleJQuery = document.createElement('script');
GoogleJQuery.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js';
GoogleJQuery.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GoogleJQuery);
var TekTekColour = document.createElement('script');
TekTekColour.src = 'http://tektek.org/color/color.js';
TekTekColour.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(TekTekColour);
var GradientSet = document.createElement('script');
GradientSet.innerHTML = 'var gradientType = "rainbow";';
GradientSet.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GradientSet);
document.body.innerHTML= document.body.innerHTML + "<input type='hidden' id='gradient_repeat' value='1'/>";

setTimeout(RainbowiseAll, 1000);
function RainbowiseAll() {
    var posts = document.getElementsByClassName("postbody");
    for(var i=0;i<posts.length;i++) {
       posts[i].innerHTML= posts[i].innerHTML.replace(/\[rainbow\][^\[]*\[\/rainbow\]/g, Rainbowise);
    }
}

function Rainbowise(m) {
    var rainbowisedExpression = m.substring(9, m.length - 10);
    return MakeSFX( rainbowisedExpression, true );
}
As you might be able to see, it works inside code tags…

EDIT AGAIN: It seems to break JS features on some other sites… Best to use the modified version above that includes only RPC, if even that.
Shrooblord
Mr Stone
Posts: 15762
Joined: Tue Sep 07, 2010 5:07 pm
Location: The Buccaneer MK. II
Tings: 68850

Re: Off Topic

Post by Shrooblord »

This will definitely be used as the first pre-posts of Record Day.
PluMGMK
Annetta Fish
Posts: 40514
Joined: Fri Jul 31, 2009 9:00 pm
Location: https://www.youtube.com/watch?v=cErgMJSgpv0
Contact:
Tings: 136636

Re: Off Topic

Post by PluMGMK »

[rainbow]Or I could post my (original) rainbowiser script to allow it to be used all day...[/rainbow]

Something tells me my client-side rainbow tag script won't catch on… :lol:
rolesfamily
Uglette
Posts: 10232
Joined: Wed Oct 23, 2013 6:43 pm
Tings: 74925

Re: Off Topic

Post by rolesfamily »

Haha how come? :P
Shrooblord
Mr Stone
Posts: 15762
Joined: Tue Sep 07, 2010 5:07 pm
Location: The Buccaneer MK. II
Tings: 68850

Re: Off Topic

Post by Shrooblord »

I find it hilarious just watching the rainbow tag appear and then imagining it being a rainbow as opposed to it actually being a rainbow. :P
rolesfamily
Uglette
Posts: 10232
Joined: Wed Oct 23, 2013 6:43 pm
Tings: 74925

Re: Off Topic

Post by rolesfamily »

Shrooblord wrote:I find it hilarious just watching the rainbow tag appear and then imagining it being a rainbow as opposed to it actually being a rainbow. :P
That's true, some may find the rainbow tags misleading!
PluMGMK
Annetta Fish
Posts: 40514
Joined: Fri Jul 31, 2009 9:00 pm
Location: https://www.youtube.com/watch?v=cErgMJSgpv0
Contact:
Tings: 136636

Re: Off Topic

Post by PluMGMK »

Precisely. In retrospect, it's a pretty stupid idea…
Earth Gwee
Ly
Posts: 2684
Joined: Tue Apr 02, 2013 10:23 am
Location: Desert of the Knaaren
Contact:
Tings: 214170

Re: Off Topic

Post by Earth Gwee »

Reading the super blue areas hurts my eyes. I would suggest not doing the rainbow text very much on Record Day.
Bradandez
Annetta Fish
Posts: 18589
Joined: Wed Mar 21, 2012 12:50 am
Tings: 137530

Re: Off Topic

Post by Bradandez »

I wish I knew how to use the rainbow text. I love color!
technology4617
Antitoon
Posts: 2340
Joined: Thu Jan 10, 2013 6:25 am
Location: Small children.
Tings: 10

Re: Off Topic

Post by technology4617 »

Bradandez wrote:I wish I knew how to use the rainbow text. I love color!
Here.

http://tektek.org/color/
rolesfamily
Uglette
Posts: 10232
Joined: Wed Oct 23, 2013 6:43 pm
Tings: 74925

Re: Off Topic

Post by rolesfamily »

Woah is this gonna do it for me?


I love you technology.
PluMGMK
Annetta Fish
Posts: 40514
Joined: Fri Jul 31, 2009 9:00 pm
Location: https://www.youtube.com/watch?v=cErgMJSgpv0
Contact:
Tings: 136636

Re: Off Topic

Post by PluMGMK »

That's what we were doing all along. :P
If you want a true rainbow you have to click on the "rainbow" option.
It might be better to leave it like that though, because then there's no eye-hurting deep blue.
Master
Rayman 1
Posts: 53542
Joined: Sun Aug 21, 2011 10:14 am
Location: Somewhere specific, I'd assume.
Tings: 468310

Re: Off Topic

Post by Master »

Speaking of how things look, I see you've donated me 345 tings so that I've got the R3 avvie to differentiate myself from Hoodcom. You have my thanks Plum, though I'm more than happy to give them back whenever needs be.
OCG
The Captain
Posts: 18569
Joined: Sat May 11, 2013 9:24 am
Location: RPC Pirate Ship
Contact:
Tings: 9905

Re: Off Topic

Post by OCG »

Heh, It will take me some time to get used to your R3 rank :P
rolesfamily
Uglette
Posts: 10232
Joined: Wed Oct 23, 2013 6:43 pm
Tings: 74925

Re: Off Topic

Post by rolesfamily »

Rainbow works for shorter messages though! I knew you guys were cheating ;) haha
PluMGMK
Annetta Fish
Posts: 40514
Joined: Fri Jul 31, 2009 9:00 pm
Location: https://www.youtube.com/watch?v=cErgMJSgpv0
Contact:
Tings: 136636

Re: Off Topic

Post by PluMGMK »

We were never cheating! You obviously just didn't notice MLII's post! :P
rolesfamily
Uglette
Posts: 10232
Joined: Wed Oct 23, 2013 6:43 pm
Tings: 74925

Re: Off Topic

Post by rolesfamily »

PluMGMK wrote:We were never cheating! You obviously just didn't notice MLII's post! :P
That is quite likely...
Post Reply