Scrubbing away unwanted browser history
There are varoius reasons when or why one may use incognito, for example you may want to safely search for a birthday present for your loved one without worrying if they'll be able to see remnants of what you've looked up. However sometimes you may want to preserve most of your user history, while just removing sites that contain specific keywords. This chrome extension will replace the need to use incogntido, and provide users with the ability of blacklisting keywords or sites that will automatically be deleted on a new page load.
With this extension, users will be able to:
- Input into a form specific urls or keywords to be blacklisted
- Deletes from Browser any urls that are on the blacklist
- Removes keywords from Scrub list
#How to use
-
In the Scrub input field type in any text you believe is associated with URLs that you'd like to remove. The extension will then remove those URLs from your history. Any text that is inputed into the Scrub input box will persist, as text are added to a list that will be checked and removed from the history on page load.
-
In the Un-Scrub input field type in a keyword that you'd like to be removed from the Scrub list, and the removal of that keyword from URL history will no longer persist.
#
#![Chrome History 1] (https://github.com/ac7552/Scrub/blob/master/chrome_history1.png)
#![Chrome History 2] (https://github.com/ac7552/Scrub/blob/master/chrome_history2.png)
This extension will be implemented using the standard Chrome extension technology: Javascript, HTML, and CSS. In addition to the manifest.json
and package.json
files, there will be two scripts:
content.js
: will contain the logic for finding urls or keywords matching those on the blacklistoptions.js
: will contain the logic for changing the user's settings
There will also be two HTML files to display the content:
new_style.css
: the file containing the styling rules for the formoptions.html
: the file that renders the Settings menu for the user
This app also makes extensive use of the chrome history api: https://developer.chrome.com/extensions/history
#Code Snippet:
- How Scrub removes URLs from Chrome History
let itemsDelete = () => {
for(let i = 0; i < URL_LIST.length ; i++ ){
chrome.history.search({text: URL_LIST[i]}, function(data){
for(let i = 0; i < Object.keys(data).length; i++){
chrome.history.deleteUrl({url: data[i].url})
}
});
}
}