User:WOSlinkerBot/linttask22.js

function lint_queryString(p) { var re = RegExp('[&?]' + p + '=([^&]*)'); var matches; if (matches = re.exec(document.location)) { try { return decodeURI(matches[1]); } catch (e) { } }   return null; }

//Add a 'lint edit' tab if(mw.config.get('wgArticleId') != 0 ) { $( function lintEditButton {       mw.util.addPortletLink('p-cactions', mw.util.getUrl(null,{action:'edit',lintedit:true}), 'lint', 'p-lint', 'lint edit');   } )}

if(mw.config.get('wgAction') == 'edit' && lint_queryString('lintedit') == 'true') { $(function lint {       var myContent = document.getElementById('wpTextbox1').value;

//myContent = myContent.replace(/\#\{\{User\:Sukh17\/Color\|X\=1\}\}/g,'#436EEE');

myContent = myContent.replace(/(\)/g,'$1$2');

myContent = myContent.replace(/\\(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sub\>/gi,'$2$3 $4'); myContent = myContent.replace(/\\(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sub\>/gi,'$2$3 $4'); myContent = myContent.replace(/\\(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sub\>/gi,'$2$3 $4'); myContent = myContent.replace(/\\(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sub\>/gi,'$2$3 $4');

myContent = myContent.replace(/\\(\[\\*\|)([^\]]*)(\]\])\<\/sub\>\<\/font\>/gi,'$2$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<sub\>(\[\\*\|)([^\]]*)(\]\])\<\/sub\>\<\/font\>/gi,'$2<sub style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>\<sub\>(\[\\*\|)([^\]]*)(\]\])\<\/sub\>\<\/font\>/gi,'$2<sub style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<sub\>(\[\\*\|)([^\]]*)(\]\])\<\/sub\>\<\/font\>/gi,'$2<sub style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<sub\>([^\]]*)\<\/sub\>(\]\])\<\/font\>/gi,'$2<sub style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<sub\>([^\]]*)\<\/sub\>(\]\])\<\/font\>/gi,'$2<sub style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)\<sub\>([^\]]*)\<\/sub\>(\]\])\<\/font\>/gi,'$2<sub style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<sub\>([^\]]*)\<\/sub\>(\]\])\<\/font\>/gi,'$2<sub style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<sup\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sup\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<sup\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sup\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<sup\>\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sup\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<sup\>\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/sup\>/gi,'$2<sup style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>\<sup\>(\[\\*\|)([^\]]*)(\]\])\<\/sup\>\<\/font\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<sup\>(\[\\*\|)([^\]]*)(\]\])\<\/sup\>\<\/font\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>\<sup\>(\[\\*\|)([^\]]*)(\]\])\<\/sup\>\<\/font\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<sup\>(\[\\*\|)([^\]]*)(\]\])\<\/sup\>\<\/font\>/gi,'$2<sup style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<sup\>([^\]]*)\<\/sup\>(\]\])\<\/font\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<sup\>([^\]]*)\<\/sup\>(\]\])\<\/font\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)\<sup\>([^\]]*)\<\/sup\>(\]\])\<\/font\>/gi,'$2<sup style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<sup\>([^\]]*)\<\/sup\>(\]\])\<\/font\>/gi,'$2<sup style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<em\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/em\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<em\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/em\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<em\>\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/em\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<em\>\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/em\>/gi,'$2<em style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>\<em\>(\[\\*\|)([^\]]*)(\]\])\<\/em\>\<\/font\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<em\>(\[\\*\|)([^\]]*)(\]\])\<\/em\>\<\/font\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>\<em\>(\[\\*\|)([^\]]*)(\]\])\<\/em\>\<\/font\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<em\>(\[\\*\|)([^\]]*)(\]\])\<\/em\>\<\/font\>/gi,'$2<em style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<em\>([^\]]*)\<\/em\>(\]\])\<\/font\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<em\>([^\]]*)\<\/em\>(\]\])\<\/font\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)\<em\>([^\]]*)\<\/em\>(\]\])\<\/font\>/gi,'$2<em style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<em\>([^\]]*)\<\/em\>(\]\])\<\/font\>/gi,'$2<em style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<small\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/small\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<small\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/small\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<small\>\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/small\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<small\>\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/small\>/gi,'$2<small style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>\<small\>(\[\\*\|)([^\]]*)(\]\])\<\/small\>\<\/font\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<small\>(\[\\*\|)([^\]]*)(\]\])\<\/small\>\<\/font\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>\<small\>(\[\\*\|)([^\]]*)(\]\])\<\/small\>\<\/font\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<small\>(\[\\*\|)([^\]]*)(\]\])\<\/small\>\<\/font\>/gi,'$2<small style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<small\>([^\]]*)\<\/small\>(\]\])\<\/font\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<small\>([^\]]*)\<\/small\>(\]\])\<\/font\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)\<small\>([^\]]*)\<\/small\>(\]\])\<\/font\>/gi,'$2<small style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<small\>([^\]]*)\<\/small\>(\]\])\<\/font\>/gi,'$2<small style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<big\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/big\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<big\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/big\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<big\>\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/big\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<big\>\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/big\>/gi,'$2<big style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>\<big\>(\[\\*\|)([^\]]*)(\]\])\<\/big\>\<\/font\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<big\>(\[\\*\|)([^\]]*)(\]\])\<\/big\>\<\/font\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>\<big\>(\[\\*\|)([^\]]*)(\]\])\<\/big\>\<\/font\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<big\>(\[\\*\|)([^\]]*)(\]\])\<\/big\>\<\/font\>/gi,'$2<big style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<big\>([^\]]*)\<\/big\>(\]\])\<\/font\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<big\>([^\]]*)\<\/big\>(\]\])\<\/font\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)\<big\>([^\]]*)\<\/big\>(\]\])\<\/font\>/gi,'$2<big style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<big\>([^\]]*)\<\/big\>(\]\])\<\/font\>/gi,'$2<big style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<b\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/b\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<b\>\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/b\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<b\>\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/b\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<b\>\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>\<\/b\>/gi,'$2<b style="color:#$1;">$3</b>$4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>\<b\>(\[\\*\|)([^\]]*)(\]\])\<\/b\>\<\/font\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<b\>(\[\\*\|)([^\]]*)(\]\])\<\/b\>\<\/font\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>\<b\>(\[\\*\|)([^\]]*)(\]\])\<\/b\>\<\/font\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>\<b\>(\[\\*\|)([^\]]*)(\]\])\<\/b\>\<\/font\>/gi,'$2<b style="color:#$1;">$3</b>$4');

myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<b\>([^\]]*)\<\/b\>(\]\])\<\/font\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<font color\=\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<b\>([^\]]*)\<\/b\>(\]\])\<\/font\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<font color\=\"?(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)\<b\>([^\]]*)\<\/b\>(\]\])\<\/font\>/gi,'$2<b style="color:$1;">$3</b>$4'); myContent = myContent.replace(/\<font color\=\"?([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)\<b\>([^\]]*)\<\/b\>(\]\])\<\/font\>/gi,'$2<b style="color:#$1;">$3</b>$4');

myContent = myContent.replace(/\<font *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font *\>/gi,'$2<span style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font *\>/gi,'$2<span style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font *color *\= *\"? *(hotpink|red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray|firebrick)\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font *\>/gi,'$2<span style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font *color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font *\>/gi,'$2<span style="color:#$1;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"?jade\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2 $3 $4');

// close with /font color myContent = myContent.replace(/\<font *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font color\>/gi,'$2<span style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font color\>/gi,'$2<span style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font *color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font color\>/gi,'$2<span style="color:$1;">$3 $4'); myContent = myContent.replace(/\<font *color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? *\>(\[\\*\|)([^\]]*)(\]\])\<\/font color\>/gi,'$2<span style="color:#$1;">$3 $4');

myContent = myContent.replace(/\<font color\=\" *(\#[a-f0-9][a-f0-9][a-f0-9])\" *face\=\"([\w \,]*)\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="color:$1;font-family:$2;">$4 $5'); myContent = myContent.replace(/\<font color\=\" *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\" *face\=\"([\w \,]*)\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="color:$1;font-family:$2;">$4 $5'); myContent = myContent.replace(/\<font color\=\"(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\" *face\=\"([\w \,]*)\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="color:$1;font-family:$2;">$4 $5'); myContent = myContent.replace(/\<font color\=\"([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\" *face\=\"([\w \,]*)\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="color:#$1;font-family:$2;">$4 $5');

myContent = myContent.replace(/\<font face\=\"([\w \,]*)\" *color\= *\" *(\#[a-f0-9][a-f0-9][a-f0-9])\" *\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;">$4 $5'); myContent = myContent.replace(/\<font face\=\"([\w \,]*)\" *color\= *\" *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\" *\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;">$4 $5'); myContent = myContent.replace(/\<font face\=\"([\w \,]*)\" *color\= *\"(deeppink|red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\" *\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;">$4 $5'); myContent = myContent.replace(/\<font face\=\"([\w \,]*)\" *color\= *\"([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\" *\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:#$2;">$4 $5');

// color=x size=1 myContent = myContent.replace(/\<font color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:x-small;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:x-small;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:x-small;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:#$1;font-size:x-small;">$3 $4');

// color=x size=2 myContent = myContent.replace(/\<font color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:small;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:small;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:small;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:#$1;font-size:small;">$3 $4');

// color=x size=4 myContent = myContent.replace(/\<font color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:large;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:large;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:$1;font-size:large;">$3 $4'); myContent = myContent.replace(/\<font color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="color:#$1;font-size:large;">$3 $4');

// size=1 color=x myContent = myContent.replace(/\<font size\=\"?1\"? color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:x-small;color:$1;">$3 $4'); myContent = myContent.replace(/\<font size\=\"?1\"? color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:x-small;color:$1;">$3 $4'); myContent = myContent.replace(/\<font size\=\"?1\"? color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:x-small;color:$1;">$3 $4'); myContent = myContent.replace(/\<font size\=\"?1\"? color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:x-small;color:#$1;">$3 $4');

// size=2 color=x myContent = myContent.replace(/\<font size\=\"?2\"? color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:small;color:$1;">$3 $4'); myContent = myContent.replace(/\<font size\=\"?2\"? color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:small;color:$1;">$3 $4'); myContent = myContent.replace(/\<font size\=\"?2\"? color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:small;color:$1;">$3 $4'); myContent = myContent.replace(/\<font size\=\"?2\"? color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-size:small;color:#$1;">$3 $4');

// face=y color=x size=1 myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:x-small;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$2<span style="font-family:$1;color:$1;font-size:x-small;">$3 $4'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:x-small;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"?1\"?\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:#$2;font-size:x-small;">$4 $5');

// face=y color=x size=2 myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:small;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:small;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:small;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"2\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:#$2;font-size:small;">$4 $5');

// face=y color=x size=3 myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? size\=\"3\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:medium;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"3\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:medium;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? size\=\"3\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:medium;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"3\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:#$2;font-size:medium;">$4 $5');

// face=y color=x size=4 myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9])\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:large;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:large;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *(red|blue|green|lime|black|brown|gold|maroon|purple|violet|yellow|orange|navy|white|magenta|teal|olive|pink|gray|grey|dimgray|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue|mediumslateblue|darkgray|darkslategray)\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:$2;font-size:large;">$4 $5'); myContent = myContent.replace(/\<font *face\=\"([\w \,]*)\" *color *\= *\"? *([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])\"? size\=\"4\"\>(\[\\*\|)([^\]]*)(\]\])\<\/font\>/gi,'$3<span style="font-family:$1;color:#$2;font-size:large;">$4 $5');

//sig specfic fixes myContent = myContent.replace(/\<font color\=\"Light green\"\>\[\[Special\:Contributions\/SlimVirgin\|edits\]\]\<\/font\>/g,'<font color="Light green">edits '); myContent = myContent.replace(/\<font color\=\"BlueViolet\"\>\[\[User\:Mythdon\|Mythdon\]\]\<\/font\>/g,' Mythdon '); myContent = myContent.replace(/\<font color\=\"\#774400\" size\=\"2\" style\=\"padding\:1px\;border\:1px \#996600 dotted\;background-color\:\#FFFF99\"\>\[\[User talk\:Levine2112\|discuss\]\]\<\/font\>/g,' discuss '); myContent = myContent.replace(/\<font color\=\"990099\" size\=\"1\"\>\[\[User talk\:Fyslee\/First law\|collaborate\]\]\<\/font\>/g,' collaborate '); myContent = myContent.replace(/\<font face\=\"Blackadder\" *color\=\"\#2B0066\"\>\[\[User\:Shell_Kinney\|Shell\]\]\<\/font\>/g,' Shell '); myContent = myContent.replace(/\<font color\=\"990099\" size\=\"1\"\>\[\[User talk\:Fyslee\|talk\]\]\<\/font\>/g,' talk '); myContent = myContent.replace(/\<font color\=\"Crimson\"\>\[\[Special\:Contributions\/AndriusG\|iu\]\]\<\/font\>/g,' iu '); myContent = myContent.replace(/\<font color\=\"black\" size\=\"4\"\>\[\[User_talk\:Unre4L\|ﺍﹸﻧﺮﮮﺍﻝ\]\]\<\/font\>/g,' ﺍﹸﻧﺮﮮﺍﻝ '); myContent = myContent.replace(/\<font color\=\"saffron\"\>\[\[User\:AMbroodEY\| Amey Aryan DaBrood\]\]\<\/font\>/g,' Amey Aryan DaBrood '); myContent = myContent.replace(/\<font color\=\"BrightRed\"\>\[\[User_talk\:Academy Leader\|\'\'FOCUS\!\'\'\]\]\<\/font\>/g,'<font color="BrightRed">\'\'FOCUS!\'\' '); myContent = myContent.replace(/\<font color\=\"darksalmon\" size\=\"\+1\"\>\[\[User_talk\:Olaf Stephanos\|\&\#9997\;\]\]\<\/font\>/g,' &#9997; '); myContent = myContent.replace(/\<font style\=\"text-shadow\:\#F8F8FF 0\.2em 0\.2em 0\.4em\,\#F4BBFF -0\.2em -0\.3em 0\.6em\,\#BFFF00 0\.8em 0\.8em 0\.6em\;color\:\#A2006D\"\>\[\[User\:Atsme\|Atsme\]\]\<\/font\>/g,'<span style="text-shadow:#F8F8FF 0.2em 0.2em 0.4em,#F4BBFF -0.2em -0.3em 0.6em,#BFFF00 0.8em 0.8em 0.6em;color:#A2006D">Atsme '); myContent = myContent.replace(/\<font color\=\"DarkCyan\"\>\[\[User\:Notorious4life\|\'\'\'\'\'№tǒŖïøŭş\'\'\'\'\'\]\]\<\/font\>/g,' \'\'\'\'\'№tǒŖïøŭş\'\'\'\'\' '); myContent = myContent.replace(/\<font size\=\-1 color\=129DBC\>\[\[User talk\:TShilo12\|TALK\]\]\<\/font\>/g,' TALK '); myContent = myContent.replace(/\<font style\=\"color\:\#975612\"\>\[\[User\:AzaToth\|Aza\]\]\<\/font\>/g,' Aza '); myContent = myContent.replace(/\<font style\=\"color\:\#325596\"\>\[\[User_talk:AzaToth\|Toth\]\]\<\/font\>/g,' Toth '); myContent = myContent.replace(/\<font color\=\"midnightblue\"\>\[\[Tony\]\]\<\/font\>/g,' Tony '); myContent = myContent.replace(/\<font color\=\"black\" style\=\"bold\"\>\[\[User_talk\:Asdfg12345\|\'\'\'12345\'\'\'\]\]\<\/font\>/g,' \'\'\'12345\'\'\' '); myContent = myContent.replace(/\<font size\=\"1\" color\=\"green\"\>\[\[User_talk\:Karnifro\|\( Talk to me\)\]\]\<\/font\>/g,' ( Talk to me) '); myContent = myContent.replace(/\<font size\=\"1\" color\=\"green\"\>\[\[User_talk\:AlexCovarrubias\|\( Talk\? \)\]\]\<\/font\>/g,' ( Talk? ) '); myContent = myContent.replace(/\<font color\=\"magenta\" size\=\"\+8\"\>\[\[User talk\:nichalp\|\&\#x2709\;\]\]\<\/font\>/g,' &#x2709; '); myContent = myContent.replace(/\<font face\=\"Palatino Linotype\" size\=\"2\.5\" color\=\"\#\#00008C\"\>\[\[User Talk\:AlphaEta\|AlphaEta\]\]\<\/font\>/g,'<font face="Palatino Linotype" size="2.5" color="##00008C">AlphaEta '); myContent = myContent.replace(/\<font color\=\"darkred\" size\=\"-2\"\>\[\[User talk\:Lulu of the Lotus-Eaters\|talk\]\]\<\/font\>/g,' talk '); myContent = myContent.replace(/\<font color\=\"purple\"\>\<font style\=\"font-family\: wretched\" color\=\"\#461D7C\"\>\[\[User\:Sampo_Torgo\|Sampo\]\]\<\/font\>\<\/font\>/g,' Sampo '); myContent = myContent.replace(/\<font style\=\"font-family\: wretched\" color\=\"\#E9B200\"\> Torgo\<\/font\>/g,' Torgo '); myContent = myContent.replace(/\<font style\=\"font-family\: wretched\" color\=\"\#E9B200\"\>\[\[User\:Sampo_Torgo\|Torgo\]\]\<\/font\>/g,' Torgo '); myContent = myContent.replace(/\<sup\>\<font style\=\"font-family\: Tahoma\" color\=\"\#8CB811\"\>\[\[User talk\:Sampo_Torgo\|\[talk\]\]\]\<\/font\>\<\/sup\>/g,'<sup style="font-family: Tahoma;color:#8CB811;">[talk] '); myContent = myContent.replace(/\<font color\=\"\#FFFF00\;background\:red\;\"\>\[\[User\:Mateyahoy\|\'\'\'神猴泰\'\'\'\]\]\<\/font\>/g,' \'\'\'神猴泰\'\'\' '); myContent = myContent.replace(/\[\[User\:DeltaQuad\|\<font color\=\"green\"\>DQ \<font color\=\"red\"\> mobile\]\]\[\[User_Talk\:DeltaQuad\|\<font color\=\"blue\"\> \(ʞlɐʇ\) \]\]\<\/font\>\<\/font\>\<\/font\>/g,' DQ mobile (ʞlɐʇ) '); myContent = myContent.replace(/\<font color\=\"\#66699\"\>\[\[User\:QwerpQwertus\|Qwerp\]\]\<\/font\>/g,'<font color="#66699">Qwerp '); myContent = myContent.replace(/\<font style\=\"color\: \#082567\"\>\[\[User\:Husond\|Hús\]\]\<\/font\>/g,'<font style="color: #082567">Hús '); myContent = myContent.replace(/\<font style\=\"color\: \#082567\"\>\[\[User talk\:Husond\|nd\]\]\<\/font\>/g,'<font style="color: #082567">nd '); myContent = myContent.replace(/\<font color\=\"(\w*)\" size\=\"1px\"\>\[\[User talk\:Chantoke\|talk\]\]\<\/font\>/g,'<span style="color:$1;font-size:x-small;">talk '); myContent = myContent.replace(/\<FONT FACE\=\"Benguiat Bk BT\"  Color\=\"\#\#003399\"\>\[\[User\:([^\|\]]*)\|([^\|\]]*)\]\]\<\/FONT\>/g,'<FONT FACE="Benguiat Bk BT"   Color="##003399">$2</FONT>'); myContent = myContent.replace(/\<FONT FACE\=\"Benguiat Bk BT\" Color\=\"	\#254117\"\>\[\[User talk\:([^\|\]]*)\|([^\|\]]*)\]\]\<\/FONT\>/g,'<FONT FACE="Benguiat Bk BT" Color="	#254117">$2</FONT>');

myContent = myContent.replace(/\<font face\=\"Bradley Hand ITC\"\>\[\[User\:CAPTAIN RAJU\|\'\'\'CAPTAIN RAJU\'\'\'\]\]\<\/font\>/g,' \'\'\'CAPTAIN RAJU\'\'\' '); myContent = myContent.replace(/\<font color\=\"oceanblue\"\>\[\[User\:Warko\|(\w*)\]\]\<\/font\>/g,' $1 '); myContent = myContent.replace(/\<sup\> \<font color\=\"orange\"\>\[\[User_talk\:Bratsche\|\(talk\) \]\]\<\/sup\>\<\/font color\>/g,' <sup style="color:orange;">(talk) '); myContent = myContent.replace(/\[\[User\:Merovingian\|\<font color\=\"green\"\>\<big\>R\<\/big\>yan\!\]\]\<\/font\>/g,' R yan! '); myContent = myContent.replace(/\<font style\=\"border\: solid 2px orange\; background-color\:\#991199\" color\=\"white\"\>\[\[User\:\(chubbstar\)\|\(chubbstar\)\]\]\<\/font\>/g,' (chubbstar) '); myContent = myContent.replace(/\<font color\=\"copper\"\>\[\[User\:OAS\|OAS\]\]\<\/font\>/g,' OAS '); myContent = myContent.replace(/\<font color\=\'(\#[0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F])\'\>\[\[([^\|\]]*)\|([^\|\]]*)\]\]\<\/font\>/g,'<span style="color:$1;">$3 '); myContent = myContent.replace(/\<font face\=\"Papyrus\" color\=\"green\" size\=\"2\"\>\[\[User\:Sabri76\|\'\'\'Sabri76\'\'\'\'\]\]\<\/font\>/g,' \'\'\'Sabri76\'\'\'\' '); myContent = myContent.replace(/\<font color\=\"646060\#\"\>\[\[User\:Adrian Lamo\|A\]\]\<\/font\>/g,'<font color="646060#">A '); myContent = myContent.replace(/\<font color\=\"\#ppccpp\"\>\[\[User\:DrChrissy\|DrChrissy\]\]\<\/font\>/g,'<font color="#ppccpp">DrChrissy '); myContent = myContent.replace(/\<font color\=\"red\"\>\[\[User talk\:Lesfer\|\<big\>\&\#9742\;\<\/big\>\]\]\<\/font color\>/g,'<big style="color:red;">&#9742; '); myContent = myContent.replace(/(\'\'\')(\<font color\=\"800080\"\>)(\[\[User\:Transity\|Transity\]\]\'\'\')/g,'$2$1$3'); myContent = myContent.replace(/\<font face\=\"Arial\" style\=\"background\: \#ffffff\; font-weight\: bold\; text-decoration\: none\;\" color\=\"\#000000\"\>\[\[user\:stickguy\|stickguy \(\:\^›\)\&mdash\;\]\]\<\/font\>/g,'<span style="font-family:Arial;background: #ffffff; font-weight: bold; text-decoration: none;color:#000000;">stickguy (:^›)&mdash; '); myContent = myContent.replace(/\<font face\=\"Edwardian Script ITC\" color\=\"\#99ccfff\" size\=\"(\d)\"\>\[\[User\:Travisthurston\|([\w ]*)\]\]\<\/font\>/g,'<font face="Edwardian Script ITC" color="#99ccfff" size="$1">$2 '); myContent = myContent.replace(/\<font face\=\"arial\" color\=\"\#99ccfff\"\>\[\[User\:Travisthurston\|([\w ]*)\]\]\<\/font\>/g,'<font face="arial" color="#99ccfff">$1 '); myContent = myContent.replace(/\<font color\=\"black\" face\=\"Verdana\" size\=\"1\"\>\[\[user\:RZ heretic\|\<u\>RZ heretic\<\/u\>\]\]\<\/font\>/g,'<u style="color:black;font-family:Verdana;font-size:x-small;">RZ heretic '); myContent = myContent.replace(/\<sup\>\<font color\=blue\>\[\[user_talk\:Jtdirl\|\(caint\)\]\]\<\/sup\>\<\/font\>/g,'<sup style="color:blue;">(caint) '); myContent = myContent.replace(/\<font color\=\"green\"\>\[\[User\:Shauri\|(\w*)\]\]\<\/font color\>/g,' $1 '); myContent = myContent.replace(/\<font color\=\"peach\"\>\[\[User_talk\:Shauri\|smile\!\]\]\<\/font color\>/g,' smile! '); myContent = myContent.replace(/\<font face\=\"georgia\, times\, times roman\" color\=\"\#990000\" size\=\"-3\"\>\[\[User\:Pleather \| P L E A T H E R \]\]\<\/font\>/g,'<span style="font-family:georgia, times, times roman;color:#990000;font-size:x-small;"> P L E A T H E R ');

//myContent = myContent.replace(/\<font color\=\"002bb8\"\>(\[\{\{SERVER\}\}\/[^\] ]*) ([^\]]*)\]\<\/font\>/g,'$1 $2 ]'); //myContent = myContent.replace(/\<font color\=\"002bb8\"\>(\[\{\{fullurl\:Special\:Log\|type\=[^\] ]*) ([^\]]*)\]\<\/font\>/g,'$1 $2 ]'); //myContent = myContent.replace(/\<font color\=002BB8\>\[\{\{fullurl\:user talk\:freakofnurture\|action\=edit\&section\=new\}\} talk\]\<\/font\>/g,'[ talk ]'); //myContent = myContent.replace(/\<font color\=\"002bb8\"\>(\[\{\{fullurl\:Special[^\] ]*) ([^\]]*)\]\<\/font\>/g,'$1 $2 ]'); //myContent = myContent.replace(/\<font color\=\"002bb8\"\>(\[http[^\] ]*) ([^\]]*)\]\<\/font\>/g,'$1 $2 ]');

//myContent = myContent.replace(/\[\[Special\:Contributions\/Tbhotch\|\<font color\=\"\#006600\"\>\(ↄ\)\]\]\,/g,'<font color="#006600">(ↄ) ,'); //myContent = myContent.replace(/\<font color\=\"\#000090\"\>\[\[User talk\:Raaggio\|\<small\>\(talk\)\<\/small\>\]\]\'\'\'\'\'\<\/font\>/g,'<small style="color:#000090;">(talk) \'\'\'\'\' '); //myContent = myContent.replace(/(\<font color\=\"\#008000\"\>)(\'\'\'\'\')(\[\[User\:Raaggio)/g,'$2$1$3'); //myContent = myContent.replace(/\<font color\=\"green\"\>\[\[User\:Cyberdog958\|\'\'cyberdog\'\'\<\/font\>\<font color\=\"orange\"\>\'\'\'958\'\'\'\<\/font\>\]\]/g,' \'\'cyberdog\'\' \'\'\'958\'\'\' '); //myContent = myContent.replace(/\<sup\>\[\[User talk\:Cyberdog958\|\<font color\=\"green\"\>Talk\]\]\<\/font\>\<\/sup\>/g,'<sup style="color:green;">Talk '); myContent = myContent.replace(/\<font face\=\"sprint SF\" color\=\"\#66CCFF\" size\=\"larger\"\>\[\[User\:AL2TB\|AL2TB\]\]\<\/font\>/g,'<font face="sprint SF" color="#66CCFF" size="larger">AL2TB '); myContent = myContent.replace(/\<font color\=\"\#669900\"\>\[\[User_talk\:Paul Tracy\|talk\]\]\<\/sub\>\<\/font\>/g,' talk '); myContent = myContent.replace(/\<font color\=\"peach\"\>\[\[User_talk\:Shauri\|([\w\!]*)\]\]\<\/font color\>/g,' $1 '); myContent = myContent.replace(/\<font color\=\"(\#[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9])\" style\=\"text-decoration\: none\"\>\[\[([^\|]*)\|([^\]]*)\]\]\<\/font\>/g,'<span style="color:$1;text-decoration:none;">$3 '); myContent = myContent.replace(/\<font style\=\"color\:\#975612\"\>\[\[User\:AzaToth\|Aza\]\]\<\/font\>/g,' Aza '); myContent = myContent.replace(/\<font style\=\"color\:\#325596\"\>\[\[User_talk\:AzaToth\|Toth\]\]\<\/font\>/g,' Toth '); myContent = myContent.replace(/\<font color\=\"green\"  style\=\"font-size\: 70\%\"\>\[\[\:ml:User talk\:Praveenp\|talk\]\]\<\/font\>/g,' talk '); myContent = myContent.replace(/\<font face\=\"Ancestory SF\" size\=\"4\" color\=\"purple\"\>\[\[User\:Atlantis Hawk\|Atlantis Hawk\]\]\<\/font\>/g,' Atlantis Hawk '); myContent = myContent.replace(/\<sup\>\<font style\=\"background\: \#0000\" face\=\"Ariel\" color\=\"\#00AA00\"\>\[\[User_talk\:FelineFanatic3\|talk\]\]\<\/font\>\<\/sup\>/g,'<sup style="background:#0000;font-family:Ariel;color:#00AA00;">talk '); myContent = myContent.replace(/\<sup\>\<font style\=\"background\: \#0000\" face\=\"Ariel\" color\=\"\#00AA00\"\>\[\[Talk\:Oscarthecat\|talk\]\]\<\/font\>\<\/sup\>/g,'<sup style="background:#0000;font-family:Ariel;color:#00AA00;">talk '); myContent = myContent.replace(/\<font face\=\"Papyrus\" size\=\"3\" color\=\"\#800080\"\>\[\[User\:Liz\|\'\'\'\'\'L\'\'\'\'\'iz\]\]\<\/font\>/g,' \'\'\'\'\'L\'\'\'\'\'iz '); myContent = myContent.replace(/\<font face\=\"([\w ]*)\" size\=\"4\" color\=\"\#800080\"\>\[\[User\:Liz\|\'\'\'\'\'L\'\'\'\'\'iz\]\]\<\/font\>/g,'<span style="font-family:$1;font-size:large;color:#800080;">\'\'\'\'\'L\'\'\'\'\'iz '); myContent = myContent.replace(/\<font color\=\"Green\"\>\[\[(Portal\:Ukraine\/[\w\d -]*)\]\]\<\/font color\>/g,' $1 '); myContent = myContent.replace(/\<b\>\<font face\=\"Verdana\" size\=\"4\" color\=\"\#FF0000\"\>\[\[User\:Haza-w\|haz\]\]\<\/font\>\<\/b\>/g,'<b style="font-family:Verdana;font-size:large;color:#FF0000;">haz</b>'); myContent = myContent.replace(/\<font color\=\"FF000000\"\>(\[\[User\:فيصل\|)(\'\'\'Faisal \'\'\')(\]\])\<\/font\>/g,'$1 $2 $3'); myContent = myContent.replace(/\<sup\>\<font color\=\"\#774400\" size\=\"1\" style\=\"padding\:1px\;border\:1px \#996600dotted\;background-color\:\#FFFF99\"\>\[\[User talk\:Levine2112\|([^\]]*)\]\]\<\/font\>\<\/sup\>/g,'<sup style="color:#774400;font-size:x-small;padding:1px;border:1px #996600dotted;background-color:#FFFF99">$1 '); myContent = myContent.replace(/\<sup\>\<font color\=\"\#774400\" size\=\"1\" style\=\"padding\:1px\;border\:1px \#996600 dotted\;background-color\:\#FFFF99\"\>\[\[User talk\:Levine2112\|([^\]]*)\]\]\<\/font\>\<\/sup\>/g,'<sup style="color:#774400;font-size:x-small;padding:1px;border:1px #996600 dotted;background-color:#FFFF99">$1 '); myContent = myContent.replace(/\<sup\>\<font color\=\"\#774400\" size\=\"1\" style\=\"padding\:1px\;border\:1px \#996600 dotted\;background\:\#FFFF99\"\>\[\[User talk\:Levine2112\|([^\]]*)\]\]\<\/font\>\<\/sup\>/g,'<sup style="color:#774400;font-size:x-small;padding:1px;border:1px #996600 dotted;background:#FFFF99">$1 '); myContent = myContent.replace(/\<font color\=\"\#99000\"\>\[\[User\:Sophrosune\|Sophrosune\]\]\<\/font\>\<font color\=\"\#550000\"\>\&nbsp\;\[\[User talk\:Sophrosune\|\(talk\)\]\]\<\/font\>/g,'<font color="#99000">Sophrosune  (talk) '); myContent = myContent.replace(/\<font color\=\#000080 face\=times new roman\>\[\[User\:Donmega60645\|Don\]\]\<\/FONT\>/g,' Don '); myContent = myContent.replace(/\<FONT COLOR\=\#0000CD FACE\=VERDANA \>\<sup\>\[\[User_Talk\:Donmega60645\|\<b\>MEGĂ\<\/b\>\]\]\<\/sup\>\<\/font\>/g,'<b style="color:#0000CD;font-family:VERDANA;">MEGĂ</b>'); myContent = myContent.replace(/\<FONT COLOR\=\#000080 FACE\=TIMES NEW ROMAN\>\<sup\>\[\[User_Talk\:Donmega60645\|\<b\>Talk\<\/b\>\]\]\<\/sup\>\<\/font\>/g,'<b style="color:#000080;font-family:TIMES NEW ROMAN;">Talk</b>'); myContent = myContent.replace(/\<font color\=\#7fffd4\>\[\[User\:V\. Molotov\|V\]\]\'\'\'\<font color\=\#40e0d0\>\[\[Wikipedia\:Esperanza\|\/\]\]\'\'\'\<font color\=\#48d1cc\>\[\[User_talk\:V\. Molotov\|M\]\]\'\'\'\<\/font\>\<\/font\>\<\/font\>/g,' V \'\'\' / \'\'\' M '); myContent = myContent.replace(/\<font style\=\"color\:\#00F\;\"\>\[\[User\:Scalene\/Esperanza\|Є\]\]\<\/font\>/g,' Є '); myContent = myContent.replace(/\<font color\=\"(\w*)\" style\=\"BACKGROUND-COLOR\: \#([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f])\"\>\[\[User\:Gaurav Pruthi\|Gaurav Pruthi\]\]\<\/font\>/g,'<span style="color:$1;BACKGROUND-COLOR: #$2">Gaurav Pruthi '); myContent = myContent.replace(/\<sup\>\<font color\=\"\#([0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F])\" style\=\"BACKGROUND-COLOR\: \#ffcc99\"\>\[\[User_talk\:Gaurav Pruthi\|talk\]\]\<\/font\>\<\/sup\>/g,'<sup style="color:#$1;BACKGROUND-COLOR: #ffcc99">talk '); myContent = myContent.replace(/\<font color\=\"blue\"\> \<sup\>\[\[User talk\:Arilang1234\|\'\'talk\'\'\]\]\<\/sup\>\<\/font\>/g,' <sup style="color:blue;">\'\'talk\'\' '); myContent = myContent.replace(/(\[\[User\:Arilang1234\|\<)font( style\=\"color\:white\;background\:\#[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]\;\"\> *Arilang *\<\/)font(\>\]\])/gi,'$1span$2span$3');

myContent = myContent.replace(/\<font (style\=\"color\:green\; font-weight\:bold\; font-style\:italic\;\"\>)(\[\[User\:Jujutsuan\|)(Jujutsuan)\]\]\<\/font\>/g,'$2<span $1$3 ]]'); myContent = myContent.replace(/\<font color\=\"orange\"\>\[\[User\:Obtund\|Obtund\<\/font\>\]\]/g,' Obtund ');

myContent = myContent.replace(/\<font style\=\"background\: *green\" face\=\"Arial\" color\=\"\#FFFFFF\"\>\[\[User talk\:Ardenn\|Ardenn\]\]\<\/font\>/g,' Ardenn '); myContent = myContent.replace(/\<font color\=\"green\"\> \[\[User\:Nescio\|Nomen Nescio\]\]\<\/font\>/g,' Nomen Nescio '); myContent = myContent.replace(/\<font style\=\"color\:\#cc1100\"\>\[\[User\:Thetruthbelow\|Matt B\.\]\]\<\/font\>/g,' Matt B. '); myContent = myContent.replace(/\<font style\=\"background\:\#cc1100\" color\=\"white\"\>\[\[User talk\:Thetruthbelow\|Thetruthbelow\]\]\<\/font\>/g,' Thetruthbelow '); myContent = myContent.replace(/\<font style\=\"background\:\#cc1100\" color\=\"white\"\>\[\[User\:Thetruthbelow\|Thetruthbelow\]\]\<\/font\>/g,' Thetruthbelow ');

myContent = myContent.replace(/\<font color\=\"green\" face\=\"Papyrus\"\>\[\[Redmarkviolinist\]\]\<\/font\>/g,' Redmarkviolinist ');

//       myContent = myContent.replace(//g,'');

if(document.getElementById('wpTextbox1').value != myContent) { var todomatches = myContent.match(/\]\]\<\/font\>/gi); var extranote = ''; if (todomatches) { if (todomatches.length > 0 ) { extranote = ' (some lint still left)'; } }

document.getElementById('wpTextbox1').value=myContent; //document.getElementById('wpSummary').value='Fix font tag lint errors'+extranote; document.getElementById('wpSummary').value='Fix font tag lint errors'; document.getElementById('wpMinoredit').checked = true; }   } )}