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.
- Clone this repository
- Install dependencies:
npm install
- Build the extension:
npm run build
- 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
distdirectory from this project
- Open Chrome and go to
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.
-
Find the extension ID by going to
chrome://extensions/and locating "Reject Cookies" -
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>\
- macOS:
-
Inside you'll find a folder named with the version number.
cdinto it. -
Generate hashes of the installed files:
# macOS find . -type f | sort | xargs shasum -a 256 # Linux find . -type f | sort | xargs sha256sum
-
Download
checksums.txtfrom 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.
-
Clone the repo at the release tag:
git clone --branch <tag> https://github.com/mitch292/reject-cookies.git cd reject-cookies
-
Install dependencies and build:
npm ci npm run build
-
Generate checksums of your local build:
cd dist find . -type f | sort | xargs sha256sum
-
Compare against the
checksums.txtfrom the GitHub Release. Source map files (*.map) are excluded from release checksums.
This project is licensed under the MIT License.