chrome.storage.sync.get(
{"lists": [
[
- ["syncthing", "https://localhost:8384/"],
- ["todoist", "http://todoist.com/"],
- ["github", "https://github.com/"],
- ["gmail", "http://mail.google.com/"],
- ["drive", "http://drive.google.com/"]
+ ["Github", "https://github.com"],
+ ["Wikipedia", "https://en.wikipedia.org"],
+ ["Gmail", "https://mail.google.com"]
],
[
- ["unixporn", "http://reddit.com/r/unixporn"],
- ["news", "http://reddit.com/r/news"],
- ["funny", "http://reddit.com/r/funny"],
- ["linux", "http://reddit.com/r/linux"],
- ["all", "http://reddit.com/r/all"]
+ ["Desmos", "https://www.desmos.com/calculator"],
+ ["Wolfram", "https://wolframalpha.com"],
+ ["Hacker News", "https://news.ycombinator.com"]
],
[
- ["elementary", "https://elementary.io/"],
- ["ubuntu", "https://www.ubuntu.com/"],
- ["fedora", "https://getfedora.org/"],
- ["mint", "https://linuxmint.com/"],
- ["arch", "https://www.archlinux.org/"]
+ ["Reddit", "https://www.reddit.com"],
+ ["YouTube", "https://youtube.com"],
+ ["Instagram", "https://instagram.com"]
]
],
-"l1name": "productivity",
-"l2name": "general",
-"l3name": "distros"},
+"l1name": "General",
+"l2name": "Productivity",
+"l3name": "Social"},
userListsCallback);
});
li.insertAdjacentHTML("beforeend", "<a href="+siteurl+"> <img src="+img.src+" alt="+extractDomain(siteurl,1)+"/> "+name+"</a>");
// ronmurphy end
//li.insertAdjacentHTML("beforeend", "<a href="+siteurl+">"+name+"</a>");
- li.insertAdjacentHTML("beforeend", "<span id='delete-"+j+"-"+mainlist[i]+"'>-</span>");
+ li.insertAdjacentHTML("beforeend", "<span id='delete-"+j+"-"+mainlist[i]+"'>⨯</span>");
ul.appendChild(li);
}
save();
} else {
var ul = document.getElementById(r[1]);
- ul.insertAdjacentHTML("beforeend", "<div class='inp' id='div-"+listToArray(ul).length.toString()+"'><input style='width:35%' type='text' class='name' value='' placeholder='name'><input style='width:47%' type='text' class='url' value='' placeholder='url' id='form-"+listToArray(ul).length.toString()+"'><span id='input-"+listToArray(ul).length.toString()+"'>s</span></div>");
+ ul.insertAdjacentHTML("beforeend", "<div class='inp' id='div-"+listToArray(ul).length.toString()+"'><input style='width:35%' type='text' class='name' value='' placeholder='name'><input style='width:47%' type='text' class='url' value='' placeholder='url' id='form-"+listToArray(ul).length.toString()+"'><a id='input-"+listToArray(ul).length.toString()+"'>✔</a></div>");
var inp = document.getElementById("div-"+listToArray(ul).length.toString());
var span = document.getElementById("input-"+listToArray(ul).length.toString());
var form = document.getElementById("form-"+listToArray(ul).length.toString());