User:Alexis Jazz/CurlyTemplateSearch.js

// CurlyTemplateSearch is public domain, irrevocably released as WTFPL Version 2 by its author, Alexis Jazz. When entering {{ in the search box it converts that to Template:. See phab:T185126 //Start script writing date: 2022-08-04 13:07 UTC //DONE: 2022-08-04 13:21 UTC. Also ate a banana //only works in Vector Classic, Timeless and Monobook. Not Vector-2022 or Minerva window.curlySearchClass = '#searchInput:eq(0)'; window.curlySearch = function { var delayCurly = setInterval(function {			clearInterval(delayCurly);			$(window.curlySearchClass)[0].value = $(window.curlySearchClass)[0].value.replace(/^\{\{/,mw.config.get('wgFormattedNamespaces')[10]+':');		}, 10); }; $(window.curlySearchClass).on('keydown',function { window.curlySearch; } ); $(window.curlySearchClass).on('paste',function { window.curlySearch; } ); $(window.curlySearchClass).on('change',function { window.curlySearch; } ); //