Қатысушы:WOSlinker/monobook.js — нұсқалар арасындағы айырмашылық

Түйіндемесі өңделмейді
(Жаңа бетте: function tidytag_queryString(p) { var re = RegExp('[&?]' + p + '=([^&]*)'); var matches; if (matches = re.exec(document.location)) { try { re...)
 
 
function tidytag_queryStringfont_queryString(p) {
var re = RegExp('[&?]' + p + '=([^&]*)');
var matches;
}
 
//Add a 'tidytagfont edit' tab
if(mw.config.get('wgArticleId') != 0 ) {
$( function tidytagEditButtonfontEditButton() {
mw.util.addPortletLink('p-cactions',
mw.util.getUrl(null,{action:'edit',tidytagfont:true}),
'tidytagfont',
'p-tidytagfont',
'tidytagfont edit');
}
)}
 
if(mw.config.get('wgAction') == 'edit' && tidytag_queryStringfont_queryString('tidytagfont') == 'true') {
$(function tidytagfont() {
var myContent = document.getElementById('wpTextbox1').value;
 
//myContent = myContent.replace(/\<span id\=\"([\w\d\-\_ ]*)\" \/\>/g,'<span id="$1"></span>');
//myContent = myContent.replace(/\<divfont idcolor *\= *\"\#(.[\d\w]*)\" \>\[\[([^\]]*?)\/|([^\>]]*?)\{]\]\<\{footballbox/font\>/g,'[[$2|<divfont idcolor="#$1">$3</divfont>{{footballbox]]');
//myContent = myContent.replace(/\<divfont idcolor *\= *\"\#(.[\d\w]*)\" \>\[\[([^\]]*?)\/]\>]\{<\{football box/font\>/g,'[[$2|<divfont idcolor="#$1">$2</divfont>{{football box]]');
 
//myContent = myContent.replace(/\<div id\=\"(.*)\" *\/\>\{\{Football box/g,'<div id="$1"></div>{{Football box');
myContent = myContent.replace(/\<spanfont color *\/= *\#([\d\w]*)\>\=[\=[([^\]]*?)\|([^\]]*?)\]\]\<\/font\>/g,'[[$2|<font color=="#$1">$3</font>]]');
//myContent = myContent.replace(/\<divfont idcolor *\= *\"#(.[\d\w]*)\" >\[\[([^\]]*?)\/]\>]\{<\{Football box/font\>/g,'[[$2|<divfont idcolor="#$1">$2</divfont>{{Football box]]');
 
myContent = myContent.replace(/\<font color *\= *\"([\w]*)\"\>\[\[([^\]]*?)\|([^\]]*?)\]\]\<\/font\>/g,'[[$2|<font color="$1">$3</font>]]');
//myContent = myContent.replace(/\<spanfont idcolor *\= *\"([\w]*)\d"\->\[\[([^\_ ]]*?)\" ]\]\<\/font\>/g,'[[$2|<spanfont idcolor="$1">$2</spanfont>]]');
 
myContent = myContent.replace(/\<font color *\= *([\w]*)\>\[\[([^\]]*?)\|([^\]]*?)\]\]\<\/font\>/g,'[[$2|<font color=$1>$3</font>]]');
myContent = myContent.replace(/\<font color *\= *([\w]*)\>\[\[([^\]]*?)\]\]\<\/font\>/g,'[[$2|<font color=$1>$2</font>]]');
 
if(document.getElementById('wpTextbox1').value != myContent) {
document.getElementById('wpTextbox1').value=myContent;
document.getElementById('wpSummary').value='fix invalid self-closed HTML tags as perfont [[Арнайы:Санат:Pages using invalid selfLintErrors/tidy-closed HTML tagsfont-bug|lint]]';
document.getElementById('wpMinoredit').checked = true;
}
 
 
 
}
)}
484

өңдеме