Block adblocker warnings tweakers.net

Blocked warning @ tweakers.net

  1. // ==UserScript==
  2. // @name Block adblocker warnings tweakers.net
  3. // @namespace https://marthijnhoiting.com/
  4. // @author Marthijn Hoiting
  5. // @include http://tweakers.net/*
  6. // @include https://tweakers.net/*
  7. // @version 0.2
  8. // @grant none
  9. // @license Copyright by Marthijn Hoiting
  10. // @run-at document-start
  11. // @description Blocked warning @ tweakers.net
  12. // ==/UserScript==
  13. /* jshint -W097 */
  14. 'use strict';
  15.  
  16. function addGlobalStyle(css) {
  17. var head, style;
  18. head = document.getElementsByTagName('head')[0];
  19. if (!head) { return; }
  20. style = document.createElement('style');
  21. style.type = 'text/css';
  22. style.innerHTML = css;
  23. head.appendChild(style);
  24. }
  25.  
  26. addGlobalStyle('.notificationsContainer { display: none !important; }');