User:WOSlinkerBot/linttask10.js: Difference between revisions

Content deleted Content added
WOSlinkerBot (talk | contribs)
Created page with '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',lintedi...'
 
WOSlinkerBot (talk | contribs)
No edit summary
Line 25:
var myContent = document.getElementById('wpTextbox1').value;
 
myContent = myContent.replace(/(\:\'\'The above discussion is preserved as an archive of the debate\. \<span style\=\"color\:red\"\>\'\'\'Please do not modify it\.\'\'\'\<\/span\>)( \<\!\-\- Template\:Rb\-\-\>\<\/div\>)/g,'$1\'\'$2');
 
myContent = myContent.replace(/(\:\'\'The above discussion is preserved as an archive of the debate\. \<span style\=\"color\:red\"\>\'\'\'Please do not modify it\.\'\'\'\<\/span\> Subsequent comments should be made on the appropriate discussion page\.)(\<\!\-\- Template\:Rfd bottom \-\-\>\<\/div\>)/g,'$1\'\'$2');
Line 35:
myContent = myContent.replace(/(\:\'\'The above discussion is preserved as an archive of the debate\. \<span style\=\"color\:red\"\>\'\'\'Please do not modify it\.\'\'\'\<\/span\> Subsequent comments should be made on the appropriate discussion page \(such as the article\'s talk page or in a \[\[Wikipedia\:Deletion review\|deletion review\]\]\). No further edits should be made to this page\.)( \<\!\-\- Template\:Afd bottom\-\-\>\<\/div\>)/g,'$1\'\'$2');
 
myContent = myContent.replace(/(\:\'\'The above discussion is preserved as an archive of the debate\. \<span style\=\"color\:red\"\>\'\'\'Please do not modify it\.\'\'\'\<\/span\> Subsequent comments should be made on the appropriate discussion page (such as the media\'s \[\[Help\:Using talk pages\|talk page\]\] or in a \[\[Wikipedia\:Deletion review\|deletion review\]\]\)\. No further edits should be made to this section\.)( \<\!\-\- Template\:Ffd bottom \-\-\>\<\/div\>)/g,'$1\'\'$2');
 
if(document.getElementById('wpTextbox1').value != myContent) {