Content deleted Content added
WOSlinkerBot (talk | contribs) No edit summary |
WOSlinkerBot (talk | contribs) No edit summary |
||
(30 intermediate revisions by the same user not shown) | |||
Line 25:
var myContent = document.getElementById('wpTextbox1').value;
myContent = myContent.replace(/\{\| *border\=\"
myContent = myContent.replace(/\{\| *border\=\"
myContent = myContent.replace(/\{\| *border\=\"
myContent = myContent.replace(/\{\| *border\=\"
myContent = myContent.replace(/\{\| *cellpadding\=\"\d*\" *cellspacing\=\"\d*\" *border\=\"\d\" *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *cellspacing\=\"\d*\" *cellpadding\=\"\d*\" *border\=\"\d\" *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *cellpadding\=\"\d*\" *cellspacing\=\"\d*\" *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *cellspacing\=\"\d*\" *cellpadding\=\"\d*\" *class\=\"wikitable/g,'{| class="wikitable');
Line 34 ⟶ 36:
myContent = myContent.replace(/\{\| *cellpadding\=\"\d*\" *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *class\= *\"wikitable sortable sortable\" border\=\"
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\"\d\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\"\d\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\"\d\" *cellpadding\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\"\d\" *cellspacing\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\" *border\=\"\d\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\" *border\=\"\d\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\"\d\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\"\d\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\"\d\" *cellpadding\=\"\d*\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\"\d\" *cellspacing\=\"\d*\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\" *border\=\"\d\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\" *border\=\"\d\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *border\=\d *cellpadding\=\d* *cellspacing\=\d* *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *border\=\d *cellspacing\=\d* *cellpadding\=\d* *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *cellspacing\=\d* *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *cellpadding\=\d* *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\d *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\d *cellspacing\=\d* *cellpadding\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\d *cellpadding\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *border\=\d *cellspacing\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellpadding\=\d* *cellspacing\=\d* *border\=\d/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellspacing\=\d* *cellpadding\=\d* *border\=\d/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class *\= *\"wikitable sortable\" *cellspacing\=\d* *cellpadding\=\d*/g,'{| class="wikitable sortable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\"\d\" *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\d *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\d *cellspacing\=\d* *cellpadding\=\d*/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\d *cellpadding\=\d*/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *border\=\d *cellspacing\=\d*/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellpadding\=\d* *cellspacing\=\d* *border\=\d/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellspacing\=\d* *cellpadding\=\d* *border\=\d/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellpadding\=\d* *cellspacing\=\d*/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" *cellspacing\=\d* *cellpadding\=\d*/g,'{| class="wikitable"');
myContent = myContent.replace(/\{\| *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/\{\| *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,'{| class="wikitable');
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,' class="wikitable');
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,' class="wikitable');
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *class\=\"wikitable/g,' class="wikitable');
myContent = myContent.replace(/class\=\"wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable"');
myContent = myContent.replace(/class\=\"wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable"');
myContent = myContent.replace(/class\=\"wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable"');
myContent = myContent.replace(/class *\= *\"wikitable sortable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable sortable"');
myContent = myContent.replace(/class *\= *\"wikitable sortable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable sortable"');
myContent = myContent.replace(/class *\= *\"wikitable sortable\" *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="wikitable sortable"');
myContent = myContent.replace(/class\=\"sortable wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="sortable wikitable"');
myContent = myContent.replace(/class\=\"sortable wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="sortable wikitable"');
myContent = myContent.replace(/class\=\"sortable wikitable\" *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class="sortable wikitable"');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\"\d\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\"\d\" *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\"\d\" *cellpadding\=\"\d*\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\"\d\" *cellspacing\=\"\d*\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellpadding\=\"\d*\" *cellspacing\=\"\d*\" *border\=\"\d\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellspacing\=\"\d*\" *cellpadding\=\"\d*\" *border\=\"\d\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellspacing\=\"\d*\" *cellpadding\=\"\d*\"/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\d *cellpadding\=\d* *cellspacing\=\d*/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\d *cellspacing\=\d* *cellpadding\=\d*/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\d *cellpadding\=\d*/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *border\=\d *cellspacing\=\d*/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellpadding\=\d* *cellspacing\=\d* *border\=\d/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellspacing\=\d* *cellpadding\=\d* *border\=\d/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellpadding\=\d* *cellspacing\=\d*/g,'{| class=wikitable');
myContent = myContent.replace(/\{\| *class\=wikitable *cellspacing\=\d* *cellpadding\=\d*/g,'{| class=wikitable');
myContent = myContent.replace(/class\=wikitable *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class=wikitable');
myContent = myContent.replace(/class\=wikitable *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class=wikitable');
myContent = myContent.replace(/class\=wikitable *(border|cellpadding|cellspacing)\=\"?\d*\"?/g,'class=wikitable');
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=wikitable/g,' class=wikitable');
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *(border|cellpadding|cellspacing)\=\"?\d*\"? *class\=wikitable/g,' class=wikitable');
myContent = myContent.replace(/ (border|cellpadding|cellspacing)\=\"?\d*\"? *class\=wikitable/g,' class=wikitable');
myContent = myContent.replace(/\|\- border\=1 cellspacing\=0 cellpadding\=5\n/g,'');
myContent = myContent.replace(/(\{\| *class\=\"wikitable plainrowheaders\") (border|cellpadding|cellspacing)\=\"\d*\" (border|cellpadding|cellspacing)\=\"\d*\" (border|cellpadding|cellspacing)\=\"\d*\"/g,'$1');
myContent = myContent.replace(/(\{\| *class\=\"wikitable plainrowheaders\") (border|cellpadding|cellspacing)\=\"\d*\" (border|cellpadding|cellspacing)\=\"\d*\"/g,'$1');
myContent = myContent.replace(/(\{\| *class\=\"wikitable plainrowheaders\") (border|cellpadding|cellspacing)\=\"\d*\"/g,'$1');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" (width\=\"\d*\%\") *border\=\"\d\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\" *style\=\"background\: *\#f9f9f9\; *border\: *1px solid \#aaaaaa\; *border-collapse\: *collapse\; */g,'{| class="wikitable" $1 style="');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" (width\=\"\d*\%\") *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable" $1');
myContent = myContent.replace(/\{\| *class\=\"wikitable\" (width\=\"\d*\%\") *border\=\"\d\" *cellpadding\=\"\d*\" *cellspacing\=\"\d*\"/g,'{| class="wikitable" $1');
if(document.getElementById('wpTextbox1').value != myContent) {
|