नोट: प्रकाशित करे के बाद, बदलाव देखे खातिर आपके अपने ब्राउजर के कैशे खाली करे के पड़ सकत बा।

  • फायरफॉक्स / सफारी:शिफ्ट दबा के रीलोड पर क्लिक करीं, या फिर Ctrl-F5 या Ctrl-R दबाईं (मैक पर ⌘-R)
  • गूगल क्रोम: Ctrl-Shift-R दबाईं (मैक पर ⌘-Shift-R)
  • इंटरनेट एक्स्प्लोरर/एज़: Ctrl दबा के Refresh पर क्लिक करीं, या Ctrl-F5 दबईं
  • ओपेरा: Menu → Settings में जाईं (मैक में Opera → Preferences) आ एकरे बाद Privacy & security → Clear browsing data → Cached images and files क्लिक करीं।
function tidyspan_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 'tidyspan edit' tab
if(mw.config.get('wgArticleId') != 0 ) { 
    $( function tidyspanEditButton() {
        mw.util.addPortletLink('p-cactions', 
                       mw.util.getUrl(null,{action:'edit',tidyspan:true}),
                       'tidyspan',
                       'p-tidyspan',
                       'tidyspan edit');
    }
)}

if(mw.config.get('wgAction') == 'edit' && tidyspan_queryString('tidyspan') == 'true') {
    $(function tidyspan() {
        var myContent = document.getElementById('wpTextbox1').value;
        myContent = myContent.replace(/\<span id\=\"([\w\d\_\-]*)\" \/\>/g,'<span id="$1"></span>');

        if(document.getElementById('wpTextbox1').value != myContent) {
           document.getElementById('wpTextbox1').value=myContent;
           document.getElementById('wpSummary').value='fix self closing tags as per [[:श्रेणी:Pages using invalid self-closed HTML tags]]';
        }
    }
)}