User:MarkusRost/common.js

mw.loader.load( 'https://minecraft-de.gamepedia.com/index.php?title=Benutzer:MarkusRost/sidebar.js&action=raw&ctype=text/javascript' );

$('.ns-0 #simpleSearch #searchInput').click( ':', searchNamespace ); $('.ns-10000 #simpleSearch #searchInput').click( 'Dungeons:', searchNamespace ); $('.ns-10002 #simpleSearch #searchInput').click( 'Earth:', searchNamespace ); function searchNamespace(namespace) { $(this).val(namespace.data+$(this).val); $(this).off('click'); }