Skip to content

Instantly share code, notes, and snippets.

@Bomberus
Last active October 9, 2017 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bomberus/3b929fb7ef359785b2f68168f1f347d8 to your computer and use it in GitHub Desktop.
Save Bomberus/3b929fb7ef359785b2f68168f1f347d8 to your computer and use it in GitHub Desktop.
Userscript : Remove Google Consent Popover EU Law
// ==UserScript==
// @name Kill Google Consent
// @namespace
// @version 0.2
// @description No body got time for this shit !!!
// @author Bomberus
// @include https://*.youtube.tld/*
// @include https://*.google.tld/*
// @grant none
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js
// ==/UserScript==
$(document).ready(function(){
if (location.indexOf('https://www.google.de/') > -1 && location.indexOf('https://www.google.de/maps') == -1 ) {
$('[class*=overlay]').remove();
$('[class*=container]').remove();
}
});
$(document).on('DOMNodeInserted', function(e) {
//youtube + maps
var target = $(e.target);
if (target.attr('id') == 'consent-bump' || target.is('iframe') ){
$('#consent-bump').remove();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment