Events: London Expo 2009 - DSCF3039.jpg
close the image
close the image
close the image

Proboards Modification - Karma Opt-Out (Javascript)

I wrote this Proboards modification script for my Transformers message board, Sake Comments

Please read: The following script is free to use on any Proboards. Please keep the header information (the comment) intact at all times. Removal of the header information of re-production of the script in any other way other than in full is strictly prohibited.

The Code
Code:

<script language="JavaScript" type="text/javascript">
<!--
/*
Disable Karma Hack
@TermsOfUse This script is for use on the Proboards Message board system. Please keep this header intact at all times.
Visit the www.stevenmapes.com for the latest revision of this script.
@Copywrite Steven Mapes - 2005 - http://www.stevenmapes.com
@Author Steven Mapes <steve AT the above domain>
@Created 15th June 2005
@Version 1.3
@var Disable Symbol is §
*/
function replace(inString,oldText,newText) {
return (inString.split(oldText).join(newText));
}

var doit = document.getElementsByTagName('td');

for(a=0;a<doit.length;a++){
if (doit[a].innerHTML.match("§") && doit[a].width=="20%" && doit[a].innerHTML.match("Karma:")){
var M = doit[a].innerHTML; //IE and Netscape supported
M = replace(M,"§"," "); //Remove § from being displayed
M = replace(M,"Karma","<!--"); //Replace Karma with opening HTML comment tag
//Update the HTML
doit[a].innerHTML = M+'-->';
}
}
-->
</script>


Latest Articles

Eventually you will find lists of recent additions here as well as links to some of my other websites and other things of interest and/or importance