Blocked warning @ tweakers.net
当前为
// ==UserScript==
// @name Block adblocker warnings tweakers.net
// @namespace https://marthijnhoiting.com/
// @author Marthijn Hoiting
// @include http://tweakers.net/*
// @include https://tweakers.net/*
// @version 0.3
// @grant none
// @license Copyright by Marthijn Hoiting
// @run-at document-start
// @description Blocked warning @ tweakers.net
// ==/UserScript==
/* jshint -W097 */
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('.notificationsContainer { display: none !important; }');
addGlobalStyle('.notification unread bar notice announcement { display: none !important; }');