feat: add full support for the new Microsoft Edge

This commit is contained in:
wanhose 2020-05-24 21:56:48 +02:00
parent 9d36a86c61
commit 01f342b26d
2 changed files with 12 additions and 4 deletions

View File

@ -5,7 +5,7 @@ A Chrome extension that allows you to remove cookie consent dialogs automaticall
## Compatibility
- Google Chrome 61+.
- Microsoft Edge 16+ (not tested yet).
- Microsoft Edge 79+.
- Opera 48+ (not tested yet).
## Installation (on Google Chrome)
@ -14,8 +14,15 @@ A Chrome extension that allows you to remove cookie consent dialogs automaticall
2. Go to [chrome://extensions](chrome://extensions).
3. Enable **Developer mode** by clicking the toggle switch next to **Developer Mode**.
4. Then, click the **LOAD UNPACKED** button and select the *src* cloned folder.
5. That's all, you have a development copy of this extension.
6. Remember if you change something, you need to click the refresh button in the extension on [chrome://extensions](chrome://extensions) to see your changes.
5. That's all, you have a development build of this extension.
## Installation (on Microsoft Edge)
1. Clone the repository to the folder that you want.
2. Go to [edge://extensions](edge://extensions).
3. Enable **Developer mode** by clicking the toggle switch next to **Developer Mode**.
4. Then, click the **LOAD UNPACKED** button and select the *src* cloned folder.
5. That's all, you have a development build of this extension.
## Contributing

View File

@ -1,6 +1,7 @@
'use strict';
if (!!window.chrome && navigator.vendor.includes("Google")) {
if (!!window.chrome) {
console.log('hola')
const head = document.head || document.getElementsByTagName('head')[0];
// Create logic script