GithubHelp home page GithubHelp logo

scrub's Introduction

Scrub

Scrubbing away unwanted browser history

URL Remover

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.

Functionality & MVP

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.

Scrub in Action

#Scrub in Action #![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)

Technologies & Technical Challenges

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 blacklist
  • options.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 form
  • options.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})
     }
   });
  }
}

scrub's People

Contributors

ac7552 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.