Giter Club home page Giter Club logo

hackcambridge-ccleaner-extension's Introduction

Getting Started

This repository contains a basic CCleaner extension stub to be installed within Avast Secure Browser (ASB). As a Chromium based browser, ASB supports the Chrome extension framework, making this extension also compatible with Chrome and other Chromium based browsers.

As a very first step, we recommend you read the What are Extensions?, Getting Started Tutorial and Overview pages of the Google Chrome extension documentation as this will help familarise you with the structure of extensions.

Load an Unpacked Extension

Extensions can be loaded in unpacked mode by following these steps in ASB:

  • Visit secure://extensions (via: Menu -> More Tools -> Extensions).
  • Enable Developer mode by ticking the checkbox in the upper-right corner.
  • Click on the "Load unpacked extension..." button.
  • Select the directory containing the unpacked extension (e.g. src)

Cleaning Avast Secure Browser

Chrome already has a set of extension APIs for cleaning/removing browsing data: chrome.browsingData. We have extended these APIs to provide special cleaning and reporting functionality specifically for our browser:

  • Added a till removal option - this has the same format as since but marks the end timestamp of the cleaning.

  • Added chrome.browsingData.reportCleanResults function which saves the passed JSON into a temporary file, looks for CCleaner installation path in the registry and executes it with /report argument pointing to the temporary file.

  • Added cleaning results data as an object argument for callback in chrome.browsingData.remove() and other remove functions. The format is a dictionary with data types that were requested to be cleaned. Each data type has a count (i.e. total number of entries) and an entries array of objects. Inside the entries array, there is path and size information. The path may be a URL or some other identifier (e.g. profile:guid for form data). The size information is represented in bytes and is non-zero only for some data types (e.g. cache).

hackcambridge-ccleaner-extension's People

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.