NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name BBCode Fix // @include http://*.war-facts.com/starlog.php // @include http://*.war-facts.com/forum_view.php* // @version 0.1 // @description Replaces the broken bold BB Codes // @author Steve // @grant none // ==/UserScript== var divs = document.getElementsByTagName("div"); for(var i = 0; i < divs.length; i++){ divs[i].innerHTML = divs[i].innerHTML.replace(/\[b\]/g,'<b>').replace(/\[\/b\]/g,'</b>') }