User:Tim H/global.js

/* --- Disables InfoboxBuilder, defaults instead to source editor --- */ if( $('.template-classification-type-text').data('type') == 'infobox' ) { $('#ca-edit').attr('href', function(a) {          return this.href + '&useeditor=source';         }); }   if(window.location.pathname.indexOf('InfoboxBuilder') != -1) { var template = window.location.pathname.split('InfoboxBuilder/')[1]; location.replace(document.URL.replace(window.location.href.split('/wiki/')[1], 'Template:' + template + '?action=edit&useeditor=source')); }