// helpers {{{ function htmlEsc(str) { return str.replace(/&/g,"&").replace(/>/g,">").replace(/" + data.title.trim() + "", description: data.artist + "\n\n" + "" + data.tab + "" }; } } ], }; function initConfigPopup(tab) { // {{{ setPopupMode("config"); var status; if (!localStorage.userid) { status = "Not synchronized"; } else { status = "Synchronized"; } $("#status").html("Status: " + status); // Clear existing buttons $("#content-type-buttons").empty(); // Create a button for each content type Object.keys(contentTypes).forEach(function(type) { var button = $('