diff --git a/README.md b/README.md index d026e22..672401f 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Or follow the steps below. - This button also works when the 'Active' checkbox is unchecked. - The 'Remove Manip.' Button: - Removes the manipulation from the page. + - If the "Auto ⟳" checkbox is checked, the page will automatically reload after pressing the 'Remove Manip.' button. The 'active' checkbox will also be unchecked. - The 'Delete' button: - Deletes the current file from the extension storage. - **You can right click any element on a page to get the css path of that element.** diff --git a/content.js b/content.js index 0829240..b4f2452 100644 --- a/content.js +++ b/content.js @@ -85,7 +85,7 @@ function load_data_from_storage(data) } else if(mode === "exact") { - if(active_websites.includes(url)) + if(active_websites.includes(url) || active_websites.includes(url.slice(0,-1))) { let req = {todo: todo, code: filetext, position:position, mode:mode, filename:filename, active:active, reload_on_remove:reload_on_remove} manipulate(req,false); diff --git a/popup.js b/popup.js index 96243af..89b3a94 100644 --- a/popup.js +++ b/popup.js @@ -655,9 +655,12 @@ class Navigation if(this.nav_items[index].reload_on_remove === true) { this.active_checkbox.checked = false; + this.nav_items[index].active = false; + this.editor.save_current_file(); chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { chrome.tabs.update(tabs[0].id, {url: tabs[0].url}); }); + break; } } }