Post by Trip on Nov 22, 2014 11:44:46 GMT -5
Hello again people!
I present to you all, Auto-Colors.
Goes in desired Board Footers (not Main Footer):
It's quite simple...it changes (parses) the actual color words like "yellow", "orange", and "blue" for you automatically when you post.
The only exception is that you are limited to 2 auto-color changes per color.
(This means that you can only have 1 blue and 1 Blue [notice the capitalization?] and the same goes for all other colors)
So, you can post up to 32 automatic colors per post!! =D
If you have any questions or comments, feel free to post them or PM me. =)
Thanks!!!
I made this hack quite some time ago (surprised it wasn't released here); I can't wait to make the next version of this....Multidimensional Array anyone?
I present to you all, Auto-Colors.
Goes in desired Board Footers (not Main Footer):
<script>
//Auto-Colors
//Created By Trip
//Board Footers (not MAIN)
if(location.href.indexOf("action=post")!=-1 || location.href.indexOf("action=createpoll")!=-1 || location.href.indexOf("quote=")!=-1){
var rush = document.body.getElementsByTagName('input');
for(v=0;v<rush.length;v++){
if(rush[v].name=="post" && rush[v].type=="submit"){
rush[v].outerHTML = rush[v].outerHTML.replace("document","doColor();document");
}}}
function doColor(){
var granite = document.body.getElementsByTagName('textarea');
var seam = new Array(32);
seam[0] = "black";
seam[1] = "Black";
seam[2] = "navy";
seam[3] = "Navy";
seam[4] = "indigo";
seam[5] = "Indigo";
seam[6] = "olive";
seam[7] = "Olive";
seam[8] = "green";
seam[9] = "Green";
seam[10] = "teal";
seam[11] = "Teal";
seam[12] = "blue";
seam[13] = "Blue";
seam[14] = "red";
seam[15] = "Red";
seam[16] = "purple";
seam[17] = "Purple";
seam[18] = "gray";
seam[19] = "Gray";
seam[20] = "orange";
seam[21] = "Orange";
seam[22] = "yellow";
seam[23] = "Yellow";
seam[24] = "lime";
seam[25] = "Lime";
seam[26] = "silver";
seam[27] = "Silver";
seam[28] = "pink";
seam[29] = "Pink";
seam[30] = "white";
seam[31] = "White";
for(x=0;x<granite.length;x++){
for(y=0;y<seam.length;y++){
if(granite[x].innerText.match(seam[y])){
var umber = "[color="+seam[y]+"]"+seam[y]+"[\/color]";
granite[x].innerText = granite[x].innerText.replace(seam[y],umber);
}}}}
</script>
It's quite simple...it changes (parses) the actual color words like "yellow", "orange", and "blue" for you automatically when you post.
The only exception is that you are limited to 2 auto-color changes per color.
(This means that you can only have 1 blue and 1 Blue [notice the capitalization?] and the same goes for all other colors)
So, you can post up to 32 automatic colors per post!! =D
If you have any questions or comments, feel free to post them or PM me. =)
Thanks!!!
I made this hack quite some time ago (surprised it wasn't released here); I can't wait to make the next version of this....Multidimensional Array anyone?

[NO PREVIEWS AVAILABLE]