- Messages
- 10,232
- Tings
- 74,925
Well I've never done a RD before, and I hope to impress you. I've had years of forum experience, so that has to count for something. I'm gonna try and do my best, I'm pretty confident I can do well.
Shrooblord said:It's all about breaking the post record!!! No slacking!!!
saerleiya said:Shrooblord said:It's all about breaking the post record!!! No slacking!!!
I'll still beat you...
Anyway, this year, we need to be on point to break the last year mark. I think Roles will make up for the absence of Hunch, but still.
// ==UserScript==
// @name RaymanPC Rainbowiser
// @namespace http://www.vigovproductions.net
// @description Adds a "rainbowise" option to the RaymanPC posting form! :D
// @include https://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);
//var gradientType = "rainbow";
var fieldset = document.getElementsByClassName("submit-buttons")[0];
var submitButtonsHTML = fieldset.innerHTML;
fieldset.innerHTML = submitButtonsHTML + "<input type='button' tabindex='8' name='rainbowise' value='Rainbowise!!!' class='button2' id='rainbowise' /> <input type='hidden' id='gradient_repeat' value='1'/>";
document.getElementById ("rainbowise").addEventListener ( "click", RainbowisePost, false );
function RainbowisePost(zEvent) {
var rainbowised;
if (window.location.href.indexOf('posting.php') > -1) {
rainbowised = MakeSFX($('#message') .val());
} else {
//Quick reply uses name instead of id
//alert(document.getElementsByName("message")[0].value);
rainbowised = MakeSFX(document.getElementsByName("message")[0].value);
}
var result = rainbowised;
if (window.location.href.indexOf('t=885') > -1) {
//This is Mot à Mot !
result = rainbowised.replace('>', ' [img]https://static.raymanpc.com/Img/icon_arrow.gif[/img] ');
}
if (window.location.href.indexOf('t=886') > -1) {
//This is Word to Word !
result = rainbowised.replace('>', ' [img]https://static.raymanpc.com/Img/icon_arrow.gif[/img] ');
}
if (window.location.href.indexOf('posting.php') > -1) {
$('#message').val(result);
} else {
//Quick reply uses name instead of id
document.getElementsByName("message")[0].value = result;
}
}
I'm definitely doing it if I get a chance and I believe everybody should.rolesfamily said:I'm not going to be pre-writing any posts. Is that unwise? I've decided against it.
Master said:Hmm, I've tried it on mine, doesn't seem to want to play ball. I'm on Chrome also.