Skip to content

mitch292/reject-cookies

Repository files navigation

Reject Cookies Chrome Extension

A Chrome extension that will attempt to automatically rejects cookies on websites. If it cannot automatically reject the cookies, the pop up will be closed.

Development

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Build the extension:
    npm run build
  4. Load the extension in Chrome:
    • Open Chrome and go to chrome://extensions/
    • Enable "Developer mode" in the top right
    • Click "Load unpacked" and select the dist directory from this project

Verifying the Extension

This extension is open source, but there's no built-in way to confirm that the version on the Chrome Web Store was built from this code. To address this, every tagged release includes a checksums.txt file containing SHA-256 hashes of all extension files, generated by GitHub Actions directly from the source.

Verify your installed extension

  1. Find the extension ID by going to chrome://extensions/ and locating "Reject Cookies"

  2. Navigate to your Chrome extensions directory:

    • macOS: ~/Library/Application Support/Google/Chrome/Default/Extensions/<extension-id>/
    • Linux: ~/.config/google-chrome/Default/Extensions/<extension-id>/
    • Windows: %LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions\<extension-id>\
  3. Inside you'll find a folder named with the version number. cd into it.

  4. Generate hashes of the installed files:

    # macOS
    find . -type f | sort | xargs shasum -a 256
    
    # Linux
    find . -type f | sort | xargs sha256sum
  5. Download checksums.txt from the matching GitHub Release and compare the hashes. Any files present in your install but not in the checksums (like _metadata/) are added by Chrome itself and can be ignored.

Verify by building from source

  1. Clone the repo at the release tag:

    git clone --branch <tag> https://github.com/mitch292/reject-cookies.git
    cd reject-cookies
  2. Install dependencies and build:

    npm ci
    npm run build
  3. Generate checksums of your local build:

    cd dist
    find . -type f | sort | xargs sha256sum
  4. Compare against the checksums.txt from the GitHub Release. Source map files (*.map) are excluded from release checksums.

License

This project is licensed under the MIT License.

About

A chrome extension that with auto - reject cookie banners and pop ups

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors