-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalciomercato.js
30 lines (27 loc) · 898 Bytes
/
calciomercato.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ==UserScript==
// @name Calciomercato adblock
// @namespace http://bytecode.guru/
// @version 1.5.0
// @description Remove annoying anti adblock content
// @author https://github.com/bytecodeguru
// @updateUrl https://raw.githubusercontent.com/bytecodeguru/uscript/master/calciomercato.js
// @match *://www.calciomercato.com/*
// @grant none
// @run-at document-idle
// ==/UserScript==
function hideBlockingElement() {
for (var i = 0; i <= 9; i++) {
var blockingElement = document.querySelector('[id^="' + i + '"]');
if (blockingElement !== null) {
document.getElementById(blockingElement.id).style.display = 'none';
}
}
$("div:contains('plugin')").hide();
}
function enableScrolling() {
document.body.style = "";
}
(function() {
window.setInterval(hideBlockingElement, 1000);
window.onload = enableScrolling;
})();