NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @namespace https://openuserjs.org/users/tamtaentotaem // @name TheVergePrivacyConsentDeny // @description Deletes an anoying popup which begs for your privacy consent. There is no other way to remove it than using JS // @copyright 2018, tamtaentotaem (https://openuserjs.org/users/tamtaentotaem) // @license MIT // @version 1.0.1 // @include https://www.theverge.com/* // @include https://www.theverge.com//* // @grant none // @updateURL https://openuserjs.org/meta/tamtaentotaem/TheVergePrivacyConsentDeny.meta.js // ==/UserScript== // ==OpenUserJS== // @author tamtaentotaem // ==/OpenUserJS== (function () { 'use strict'; let elementToRemove = document.evaluate('//div[contains(@id, "privacy-consent")]|//div[contains(@class, "m-privacy-consent")]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null) .singleNodeValue; elementToRemove.remove(); console.log(elementToRemove.className + ' was removed'); })();