//Add $("body.portalBody").append(''); $("body.portalBody").on("click", "#addButtonJQuery", function(event){ if (event.target!=this) { return; } var userInput = " " while (userInput!="") { userInput = prompt("Enter a name to change or nothing to stop entering names"); if (userInput!="") { var newName = prompt("Enter the new name"); GM_setValue(userInput, newName) } } }); //Remove $("body.portalBody").append(''); $("body.portalBody").on("click", "#removeButtonJQuery", function(event){ if (event.target!=this) { return; } var userInput = " " while (userInput!="") { userInput = prompt("Enter a name to delete or nothing to stop entering names") if (userInput!="") { GM_deleteValue(userInput) } } }); //RemoveAll $("body.portalBody").append(''); $("body.portalBody").on("click", "#removeAllButtonJQuery", function(event){ if (event.target!=this) { return; } if (confirm("Are you sure you want to remove all saved names?")) { var nameList = GM_listValues() for (var i=0;i