User:Jesdisciple/global.js

window.onload = function{ var bookmarklet = document.getElementById('bookmarklet'); if(bookmarklet){ var input = document.createElement('input'); var button = document.createElement('button'); input.type = 'text'; button.value = button.innerText = button.textContent = 'Make Bookmarklet'; button.onclick = function makeBookmarklet { input.value = 'javascript:' + input.value; };       while(bookmarklet.hasChildNodes) bookmarklet.removeChild(bookmarklet.lastChild); bookmarklet.appendChild(input); bookmarklet.appendChild(button); } };