User:WOSlinker/lint2.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(/\<\/font color\>/g,' ');

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

myContent = myContent.replace(/\<font color *\= *[\"\']? *(\#[a-f0-9][a-f0-9][a-f0-9])[\"\']? *\>([^\<\[]*)\<\/font *\>/gi,'<span style="color:$1;">$2 '); 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,'<span style="color:$1;">$2 '); myContent = myContent.replace(/\<font color *\= *[\"\']?(red|blue|green|black|brown|gold|maroon|purple|yellow|orange|darkorange|navy|white|magenta|silver|grey|gray|darkgreen|navy|darkblue|teal)[\"\']? *\>([^\<\[]*)\<\/font *\>/gi,'<span style="color:$1;">$2 ');

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|silver|cyan|darkblue|darkgreen|darkred|darkorange|Indigo|MidnightBlue|SteelBlue|royalblue|LightSeaGreen|OliveDrab|forestgreen|mediumseagreen|lightgreen|tan|cornflowerblue|dodgerblue|lightblue|cadetblue)\"?\>\<sup\>([^\<\[]*)\<\/sup\>\<\/font\>/gi,'<sup style="color:$1;">$2 ');

//Specific sigs myContent = myContent.replace(/(\[\[\d* PHS\|)\<font color\=\"\#66666\"\>\<sup\>([\w\']*)\<\/sup\>(\]\])/gi,'$1<sup style="color:#666666">$2 $3'); myContent = myContent.replace(/(\[\[\d* PHS\|)\<font color\=\"\#66666\"\>\<sup\>([\w\']*)\<\/sup\>\<\/font\>(\]\])/gi,'$1<sup style="color:#666666">$2 $3'); myContent = myContent.replace(/(\[\[Special\:Contributions\/[\w_]*\|)\<font color\=\"\#66666\"\>\<sup\>([\w\']*)\<\/sup\>\<\/font\>(\]\])/gi,'$1<sup style="color:#666666">$2 $3'); myContent = myContent.replace(/(\[\[Special\:Contributions\/[\w_]*\|\<sup\>[\w\']*\<\/sup\>)\<\/font\>(\]\])/gi,'$1$2'); myContent = myContent.replace(/(\[\[User talk:\w*\|)\<font color\=\"\#66666\"\>\<sup\>([\w\']*)\<\/sup\>\<\/font\>(\]\])/gi,'$1<sup style="color:#666666">$2 $3'); myContent = myContent.replace(/\[\[User\:Grue\|\<font style\=\"background\: black\" face\=\"Courier\" color\=\"\#FFFFFF\"\>\'\'\'\&nbsp\;Grue\&nbsp\;\'\'\'\<\/font\>\]\]/g,' \'\'\' Grue \'\'\' ');

//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 color\=\"amaranth\"\>\[\[User\:NuclearWarfare\|NuclearWarfare\]\]\<\/font\>/g,' NuclearWarfare ');

myContent = myContent.replace(/\<font color\=\"darkblue\" size\=\"2\" face\=\"Constantia\"\>([^\<]*)\<\/font\>/g,' $1 '); myContent = myContent.replace(/\<font color\=\"darkblue\" size\=\"\" face\=\"Constantia\"\>([^\<]*)\<\/font\>/g,' $1 '); myContent = myContent.replace(/\<font color\=\"darkblue\" size\=\"-9\" face\=\"Constantia\"\>([^\<]*)\<\/font\>/g,' $1 '); myContent = myContent.replace(/\<font color\=\"8B0000\"\>Doctor\&nbsp\;Sunshine\<\/font\>/g,' Doctor Sunshine ');

myContent = myContent.replace(/\<font face\=\"Script MT\" color\=\"\#1111AA\" size\=\"2\"\>SilkTork\<\/font\>/g,' SilkTork '); myContent = myContent.replace(/\<font face\=\"Roman\" color\=\"\#0ccccc\" size\=\"0\.5\"\>SilkyTalk\<\/font\>/g,' SilkyTalk '); myContent = myContent.replace(/\<font face\=\"Comic Sans MS\" color\=\"Navy\"\>AniMate\<\/font\>/g,' AniMate '); myContent = myContent.replace(/\<b\>\<font color\=\"\#FF9933\" face\=\"monotype\"\>xaosflux\<\/font\>\<\/b\>/g,'<b style="color:#FF9933;font-family:monotype;">xaosflux</b>'); myContent = myContent.replace(/\<font color\=\"006666\"\>Revolving Bugbear\<\/font\>/g,' Revolving Bugbear '); myContent = myContent.replace(/\<font size\=\"\+1\"\>\'\'S\'\'\<\/font\>/g,' \'\'S\'\' '); myContent = myContent.replace(/\<font face\=\"Euclid Fraktur\"\>\<span style\=\"color\:black\;\"\>SWAT\<\/span\>\<font color\=\"goldenrod\"\>Jester\<\/font\>\<\/font\>/g,' SWAT Jester  ');

//       myContent = myContent.replace(/(\<font color\=\"002bb8\"\>)(\[http[^ ]*) ([^\]]*)\](\<\/font\>)/gi,'$2 $1$3$4]'); //       myContent = myContent.replace(//g,''); 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])\>(\{\{IPA\|[^}]*\}\})\<\/font\>/g,'<span style="color:#$1;">$2 '); myContent = myContent.replace(/\<font (style\=\"[^\"\>\<\=]*\"\>[^\>\<]*)\<\/font\>/g,'<span $1 ');

myContent = myContent.replace(/\[\[User\:S Marshall\|\<font face\=\"Verdana\" color\=\"Maroon\"\>(\'\'\'S Marshall\'\'\')\<\/font\>\]\]/g,' $1 '); myContent = myContent.replace(/\[\[User\:Excirial\|\<font color\=\"191970\"\>(\'\'\'Excirial\'\'\')\]\]\<\/font\>/g,' $1 '); myContent = myContent.replace(/\<font color\=\"FF8C00\"\>([\w\d \']*)\<\/font\>/g,' $1 ');

//       myContent = myContent.replace(/(\'\'\'\[\\*\|)\'\'([^\]\']*\]\]\'\'[^\'])/g,'$1$2'); //        myContent = myContent.replace(/([^\']\[http[^\]\']*\'\'[^\]\']*)(\])(\'\')/g,'$1$3$2');

/*       myContent = myContent.replace(/(\{\{Wikipedia\:Version 1.0 Editorial Team\/Christianity articles by quality statistics\}\}\n\n\<\/div\>\<\/div\>\<\/div\>)\<\/div\>/g,'$1'); myContent = myContent.replace(/(\{\{Wikipedia talk\:WikiProject Christianity\/to do\}\}\n\n\<\/div\>\<\/div\>\<\/div\>)\<\/div\>/g,'$1'); myContent = myContent.replace(/(\<\/div\>\n\<\/div\>)\<\/div\>(\n\<\!-- EdwardsBot 0237 --\>)/g,'$1$2'); myContent = myContent.replace(/\n\<\/div\>(\n\<\!-- EdwardsBot 0422 --\>)/g,'$1'); myContent = myContent.replace(/\n\<\/div\>(\n\<\!-- EdwardsBot 0444 --\>)/g,'$1'); myContent = myContent.replace(/(\<\/div\>\n\<\/div\>)\<\/div\>(\n\<\!-- Delivery requested by User\:Lionelt at Special\:PermaLink\/835168832 --\>)/g,'$1$2'); myContent = myContent.replace(/(\<\/div\>\n\<\/div\>)\<\/div\>(\n\<\!-- Message sent by User\:Mdann52\@enwiki using the list at https\:\/\/en\.wikipedia\.org\/w\/index\.php\?title\=Wikipedia\:WikiProject_Christianity\/Outreach\/Full_content_delivery\&oldid\=838938886 --\>)/g,'$1$2'); myContent = myContent.replace(/(\<center\>-\[\[Calvin Coolidge\]\]\<\/center\>\<\/div\>\{\{Wikiquote-inline\|Calvin Coolidge\}\})\<center\>/g,'$1 ');

myContent = myContent.replace(/(\n\|- style\=\"height\:42px\;) *background-color\:\#E9E9E9\;*(\" *\n\!)/g,'$1$2'); myContent = myContent.replace(/(\n\! *style\=\")(background\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! *style\=\")(background\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! *style\=\")(background\: *[\w]*\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! *style\=\")(background\: *[\w]*\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! *style\=\")(background\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! *style\=\")(background\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\n)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\n\! *style\=\")(background-color\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! *style\=\")(background-color\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\n\! *rowspan\=\d* *style\=\")(background\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *[\w]*\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *[\w]*\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\n)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\{\{party color\|[^\}]*\}\}\; *width:\d*px;* *\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\{\{party color\|[^\}]*\}\}\; *width:\d*px;* *\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *[\w]*\; *width:\d*px;* *\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *[\w]*\; *width:\d*px;* *\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\; *width:\d*px;* *\" *\| *\n)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\! class\=\"unsortable\" *style\=\")(background\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\; *width:\d*px;* *\" *\| *\n)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\n\| *)bgcolor\=\"(\{\{party color\|[^\}]*\}\}\" *\| *\n\|)/gi,'$1style="color:inherit;background:$2');       myContent = myContent.replace(/(\n\| *)bgcolor\=\"(\{\{party color\|[^\}]*\}\}\" *\| *\n\|)/gi,'$1style="color:inherit;background:$2'); myContent = myContent.replace(/(\n\| *width\=\"\d\" *)bgcolor\=\"(\{\{party color\|[^\}]*\}\}\" *\| *\n\|)/gi,'$1style="color:inherit;background:$2');       myContent = myContent.replace(/(\n\| *rowspan\=\"\d*\" *)bgcolor\=\"(\{\{party color\|[^\}]*\}\}\" *\| *\n\|)/gi,'$1style="color:inherit;background:$2'); myContent = myContent.replace(/(\n\| *colspan\=\"\d*\" *)bgcolor\=\"(\{\{party color\|[^\}]*\}\}\" *\| *\n\|)/gi,'$1style="color:inherit;background:$2');

myContent = myContent.replace(/(\n\| *width\=\"\d\" *)bgcolor\=\"(\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\" *\| *\n\|)/gi,'$1style="color:inherit;background:$2');       myContent = myContent.replace(/(\n\| *)bgcolor\=\"(\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\" *\| *\n\|)/gi,'$1style="color:inherit;background:$2'); myContent = myContent.replace(/(\n\| *)bgcolor\=(\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]) *(\| *\n\|)/gi,'$1style="color:inherit;background:$2" $3');

myContent = myContent.replace(/(\n\| *width\=\"\d\" style\=\")((background|background-color)\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *width\=\"\d\" *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *width\=\dpx *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\w*\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *(rowspan|colspan)\=\"\d*\" *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$3'); myContent = myContent.replace(/(\n\| *(rowspan|colspan)\=\"\d*\" *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$3'); myContent = myContent.replace(/(\n\| *(rowspan|colspan)\=\d* *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$3'); myContent = myContent.replace(/(\n\| *(rowspan|colspan)\=\"\d*\" *style\=\")((background|background-color)\: *\w*\;*\" *\| *\n\|)/gi,'$1color:inherit;$3'); myContent = myContent.replace(/(\n\| *(rowspan|colspan)\=\d* *style\=\")((background|background-color)\: *\w*\;*\" *\| *\n\|)/gi,'$1color:inherit;$3');

myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\w*\;*\" *\| *\|\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *\| *\|\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\|\|)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\w*\;*\" *rowspan\=\"\d*\" *\| *\|\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *rowspan\=\"\d*\" *\| *\|\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *rowspan\=\"\d*\" *\| *\|\|)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\w*\;*\" *rowspan\=\"\d*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\;*\" *rowspan\=\"\d*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\n\| *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *rowspan\=\"\d*\" *\| *\n\|)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/(\| *style\=\")((background|background-color)\: *white\;*\" *\| *\n\|)/gi,'$1color:inherit;$2'); myContent = myContent.replace(/(\| *(rowspan|colspan)\=\"\d*\" *style\=\")((background|background-color)\: *\w*\;*\" *\| *\n\|)/gi,'$1color:inherit;$3'); myContent = myContent.replace(/(\| *(rowspan|colspan)\=\"\d*\" *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$3'); myContent = myContent.replace(/(\| *style\=\")((background|background-color)\: *\{\{party color\|[^\}]*\}\}\;*\" *\| *\n\|)/gi,'$1color:inherit;$2');

myContent = myContent.replace(/\|- bgcolor\=\"\#E9E9E9\" align\=\"center\"\n\!/g,'|-\n!');

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

if(document.getElementById('wpTextbox1').value != myContent) {

if(document.getElementById('wpTextbox1').value != myContent) { document.getElementById('wpTextbox1').value=myContent; document.getElementById('wpSummary').value='tidy color'; document.getElementById('wpMinoredit').checked = true; }         }

} )}