Қатысушы:WOSlinker/monobook.js: Нұсқалар арасындағы айырмашылық
Content deleted Content added
Жаңа бетте: function tidytag_queryString(p) { var re = RegExp('[&?]' + p + '=([^&]*)'); var matches; if (matches = re.exec(document.location)) { try { re... |
Өңдеу түйіні жоқ |
||
1-жол:
function
var re = RegExp('[&?]' + p + '=([^&]*)');
var matches;
10-жол:
}
//Add a '
if(mw.config.get('wgArticleId') != 0 ) {
$( function
mw.util.addPortletLink('p-cactions',
mw.util.getUrl(null,{action:'edit',
'
'p-
'
}
)}
if(mw.config.get('wgAction') == 'edit' &&
$(function
var myContent = document.getElementById('wpTextbox1').value;
//myContent = myContent.replace(/\<span id\=\"([\w\d\-\_ ]*)\" \/\>/g,'<span id="$1"></span>');▼
//myContent = myContent.replace(/\<div id\=\"(.*)\" *\/\>\{\{Football box/g,'<div id="$1"></div>{{Football box');▼
myContent = myContent.replace(/\<
▲
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>$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='
document.getElementById('wpMinoredit').checked = true;
}
}
)}
|