Skip to content

AadarshSree/code-verify

Code Verify

GitHub license Build status Chrome Edge Firefox Safari

Code Verify is an extension for verifying the integrity of a web page.

The idea is you can publish what JavaScript should appear on your site into a "manifest". The manifest consists of the hashes of all the JavaScript files in a given release. This browser extension can consume the manifest and verify that only that code executes, or else display a warning to the user.

This repository however is a modification to the original Code Verify extension to support non-meta websites.

Installation

To install this version of Code Verify, the repository needs to be cloned and compiled. The build process requires npm and yarn to be installed prior. After cloning the repository, run the following commands to build the extension into the dist folder.

yarn install
yarn build

Now, load the extension from the browser by navigating to the dist subdirectory in the project directory.

Config Changes

Since the Cloudflare audit endpoint used by the original Code Verify extension to retrieve the manifest root hash is not public, we simulated the audit endpoint on a server. To change the URL to the endpoint, look at getCFRootHash.ts.

License

Code Verify is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors