Page 1397 of 2413
Re: Off Topic
Posted: Fri May 23, 2014 2:21 pm
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.
Re: Off Topic
Posted: Fri May 23, 2014 2:25 pm
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

Re: Off Topic
Posted: Fri May 23, 2014 2:28 pm
by rolesfamily
Can someone just invent [rainbow] [/rainbow]
Re: Off Topic
Posted: Fri May 23, 2014 2:38 pm
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.
Re: Off Topic
Posted: Fri May 23, 2014 7:17 pm
by Shrooblord
This will definitely be used as the first pre-posts of Record Day.
Re: Off Topic
Posted: Fri May 23, 2014 7:39 pm
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…

Re: Off Topic
Posted: Fri May 23, 2014 8:17 pm
by rolesfamily
Haha how come?

Re: Off Topic
Posted: Fri May 23, 2014 8:32 pm
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.

Re: Off Topic
Posted: Fri May 23, 2014 8:55 pm
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.

That's true, some may find the rainbow tags misleading!
Re: Off Topic
Posted: Sat May 24, 2014 12:57 am
by PluMGMK
Precisely. In retrospect, it's a pretty stupid idea…
Re: Off Topic
Posted: Sat May 24, 2014 4:19 am
by Earth Gwee
Reading the super blue areas hurts my eyes. I would suggest not doing the rainbow text very much on Record Day.
Re: Off Topic
Posted: Sat May 24, 2014 5:21 am
by Bradandez
I wish I knew how to use the rainbow text. I love color!
Re: Off Topic
Posted: Sat May 24, 2014 6:15 am
by technology4617
Bradandez wrote:I wish I knew how to use the rainbow text. I love color!
Here.
http://tektek.org/color/
Re: Off Topic
Posted: Sat May 24, 2014 9:44 am
by rolesfamily
Woah is this gonna do it for me?
I love you technology.
Re: Off Topic
Posted: Sat May 24, 2014 11:06 am
by PluMGMK
That's what we were doing all along.

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.
Re: Off Topic
Posted: Sat May 24, 2014 11:14 am
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.
Re: Off Topic
Posted: Sat May 24, 2014 11:33 am
by OCG
Heh, It will take me some time to get used to your R3 rank

Re: Off Topic
Posted: Sat May 24, 2014 11:46 am
by rolesfamily
Rainbow works for shorter messages though! I knew you guys were cheating ;) haha
Re: Off Topic
Posted: Sat May 24, 2014 11:50 am
by PluMGMK
We were never cheating! You obviously just didn't notice MLII's post!

Re: Off Topic
Posted: Sat May 24, 2014 11:52 am
by rolesfamily
PluMGMK wrote:We were never cheating! You obviously just didn't notice MLII's post!

That is quite likely...