Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// <nowiki>//Add a 'null edit' tabif(mw.config.get('wgNamespaceNumber')!=-1&&mw.config.get('wgArticleId')!=0){$(functionnullEditButton(){mw.util.addPortletLink('p-cactions',mw.util.getUrl(null,{action:'edit',nulledit:true}),'null','p-null','Null edit this page2');})}if(mw.config.get('wgAction')=='edit'&&queryString('nulledit')=='true'){$(functionnullEdit(){document.getElementById('wpSave').click();})}functionqueryString(p){varre=RegExp('[&?]'+p+'=([^&]*)');varmatches;if(matches=re.exec(document.location)){try{returndecodeURI(matches[1]);}catch(e){}}returnnull;}//Add a 'thumb edit' tabif(mw.config.get('wgArticleId')!=0){$(functionthumbEditButton(){mw.util.addPortletLink('p-cactions',mw.util.getUrl(null,{action:'edit',thumb:true}),'thumb','p-thumb','thumb edit');})}if(mw.config.get('wgAction')=='edit'&&queryString('thumb')=='true'){$(functionthumb(){varmyContent=document.getElementById('wpTextbox1').value;myContent=myContent.replace(/\n((Image|File)\:[^\|\n]*\|)thumb\|/gi,'\n$1');myContent=myContent.replace(/\n((Image|File)\:[^\|\n]*\|[^\|\n]*\|)thumb\|/gi,'\n$1');myContent=myContent.replace(/\n((Image|File)\:[^\|\n]*\|[^\|\n]*\|[^\|\n]*\|)thumb\|/gi,'\n$1');myContent=myContent.replace(/\n([^\|\n\.\{\[]*\.(jpg|jpeg|png|svg)\|)thumb\|/gi,'\n$1');myContent=myContent.replace(/\n([^\|\n\.\{\[]*\.(jpg|jpeg|png|svg)\|[^\|\n]*\|)thumb\|/gi,'\n$1');if(document.getElementById('wpTextbox1').value!=myContent){document.getElementById('wpTextbox1').value=myContent;document.getElementById('wpSummary').value='Fix [[Special:LintErrors/bogus-image-options|lint errors]] with image options';document.getElementById('wpMinoredit').checked=true;}})}// </nowiki>