Skip to content

Commit

Permalink
Merge pull request #26 from xoFeulB/v0.4
Browse files Browse the repository at this point in the history
V0.4
  • Loading branch information
ibuninngu committed Mar 9, 2024
2 parents a7d52c3 + f41906e commit f5a5abe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "^.,.^ BlueFox",
"version": "0.4.5",
"version": "0.4.6",
"description": "Agile Web Automation Software for Time-Starved Professionals",
"host_permissions": [
"<all_urls>"
Expand Down
17 changes: 13 additions & 4 deletions tab/js/focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,6 @@ import { BlueFoxJs } from "/modules/BlueFoxJs/bluefox.es.min.js";
});
});
div.editor.on("change", async () => {
let c = div.editor.getValue();
c.url = `${c.secure ? "https" : "http"}://${c.domain}${c.path}`;
log(c);
await chrome.cookies.set(c);
await BlueFoxJs.Walker.walkHorizontally({
_scope_: div,
".row .form-control": async ($) => {
Expand All @@ -775,6 +771,19 @@ import { BlueFoxJs } from "/modules/BlueFoxJs/bluefox.es.min.js";
}
});
});
let button = Object.assign(
document.createElement("button"),
{
className: "uk-button uk-button-primary",
textContent: "Update",
}
);
button.addEventListener("click", async (event) => {
let c = div.editor.getValue();
c.url = `${c.secure ? "https" : "http"}://${c.domain}${c.path}`;
await chrome.cookies.set(c);
});
div.appendChild(button);
$.element.appendChild(div);
});
}
Expand Down

0 comments on commit f5a5abe

Please sign in to comment.