A Firefox extension that saves the page you're on as a bookmark in your AskRobots account, in one click.

0 downloads

bookmarks-firefox/settings.js
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/bookmarks-firefox.git
HTTPS
https://gitstable.com/git/askrobots/bookmarks-firefox.git
SSH
ssh://git@gitstable.com:2222/askrobots/bookmarks-firefox.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

askrobots Update popup.js api endpoint changed. b68e3f0 2 years, 6 months ago History
settings.js · 554 bytes · 15 lines
1// settings.js
2document.getElementById("saveToken").addEventListener("click", () => {
3 const token = document.getElementById("apiToken").value;
4 browser.storage.local.set({ apiToken: token }).catch(err => {
5 console.error('Error saving token:', err);
6 });
7});
8
9document.addEventListener("DOMContentLoaded", () => {
10 browser.storage.local.get("apiToken").then(result => {
11 document.getElementById("apiToken").value = result.apiToken || "";
12 }).catch(err => {
13 console.error('Error retrieving token:', err);
14 });
15});