Skip to content

Firefox Extension: Show only search results prior to the Great AI Enshitiffication (Pre-2021).

Notifications You must be signed in to change notification settings

symphonymarie/Unshitify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


UNSHITIFY | Firefox Extension

Adds a new page action that, when clicked, filters search to show only results prior to the Great AI Enshitiffication (Pre-2022).


An icon of a plunger. Currently Supported Engines An icon of a plunger.

  • DuckDuckGo
  • Google Search

An icon of a plunger. Modification Examples An icon of a plunger.

Modifying the date range

For DuckDuckGo, change the values in line 13 (denoted by YMD) to your preferred range.

Here is the default range: 1989-01-01 - 2021-12-31.

newurl = tab.url + 'search options&df=1989-01-01..2021-12-31';

Here is an example, modified to show results from 1989-01-01 - 2022-12-31.

newurl = tab.url + 'search options&df=1989-01-01..2022-12-31';

For Google, change the values in line 17 (denoted by year) to your preferred range.

Here is the default range: 1989 - 2021.

newurl = tab.url + '&tbs=cdr%3A1%2Ccd_min%3A1989%2Ccd_max%3A2021&tbm=';

And an example, modified to show results from 1989 - 2022.

newurl = tab.url + '&tbs=cdr%3A1%2Ccd_min%3A1989%2Ccd_max%3A2022&tbm=';

Adding a new engine

To add a new engine, define an Engine and determine the URL format for date ranges. This is typically appended onto the end of a search query somewhere in the URL. Here is an example you can use to input your own information.

let Engine1 = "https://www.duckduckgo.com/";
let Engine2 = "https://www.google.com/";
let Engine3 = "https://www.MYNEWENGINE.com/";
let String1 = "1989-01-01"
let String2 = "%3A1989%"
let String2 = "Shortened string from MYNEWENGINEURLFORMAT"
/*
On page action click, filter search results.
*/
browser.pageAction.onClicked.addListener(onClick);
if (tab.url.includes(Engine1)) {
   if (tab.url.includes(String1)) {
   browser.pageAction.hide(tab.id);
   }
   else {
     browser.pageAction.show(tab.id);
     }
   newurl = tab.url + 'search options&df=1989-01-01..2021-12-31';
 }
 if (tab.url.includes(Engine2)) {
     if (tab.url.includes(String2)) {
       browser.pageAction.hide(tab.id);
     }
     else {
       browser.pageAction.show(tab.id);
       }
   newurl = tab.url + '&tbs=cdr%3A1%2Ccd_min%3A1989%2Ccd_max%3A2021&tbm=';
 }
}
 if (tab.url.includes(Engine3)) {
     if (tab.url.includes(String3)) {
       browser.pageAction.hide(tab.id);
     }
     else {
       browser.pageAction.show(tab.id);
       }
   newurl = tab.url + 'MYNEWENGINEURLFORMAT';
 }
}

About

Firefox Extension: Show only search results prior to the Great AI Enshitiffication (Pre-2021).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published