User:Omegatron/monobook.js/replacetab.js: Difference between revisions

Content deleted Content added
No edit summary
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(3 intermediate revisions by 2 users not shown)
Line 1:
// <pre><nowiki>
 
 
function replace() {
var s = prompt("Search regexp?");
Line 12 ⟶ 9:
}
 
addOnloadHook$(function () {
if(document.forms.editform) {
addLinkmw.util.addPortletLink('p-cactions', 'javascript:replace()', 'replace', 'ca-replace', 'Regexp replace for the edit window', '', 'ca-history');
}
});
 
// </nowiki></pre>