Skip to content

Commit

Permalink
reload extension when deactivate extension,
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuto-24 committed Aug 2, 2024
1 parent 9113307 commit c80d95e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const checkAndUpdateUrl = (tabId, tab) => {
// debug(`inside checkAndUpdateUrl ${tab.url}`);
const originalUrl = tab.url;

if (urlManager.isGoogle(tab.url) && !urlManager.getParam(tab.url, "tbs") && !urlManager.getParam(tab.url, "url")) {
if (urlManager.isGoogle(tab.url) && !urlManager.getParam(tab.url, "url")) {
let newUrl = cleaningUrl(originalUrl);
if (statusManager.getStatus()) {
newUrl += getDateParamsString()
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "since 6 month ago ",
"version": "1.1.1",
"name": "search in 6 months ",
"version": "1.1.2",
"manifest_version": 3,
"description": "When Active, the search results are since 6 months old.",
"icons": {
Expand Down
2 changes: 0 additions & 2 deletions utils/cleaningUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ const cleaningUrl = (url) => {
url = url.replace(/&sca_upv=[^&]*/g, "");
url = url.replace(/&iflsig=[^&]*/g, "");
url = url.replace(/&uact=[^&]*/g, "");
// del tag
url = url.replace(/#.*/g, "");
// del date params
url = url.replace(/&as_qdr=y1/g, "");
url = url.replace(/&tbs=[^&]*/g, "");
Expand Down

0 comments on commit c80d95e

Please sign in to comment.