Removes all distracting content from BulSatCom Fusion Web IPTV.
当前为
// ==UserScript==
// @name BulSatCom Fusion Sanitizer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Removes all distracting content from BulSatCom Fusion Web IPTV.
// @author Apostol Apostolov
// @match https://test.iptv.bulsat.com/*
// @grant GM_addStyle
// ==/UserScript==
/* jshint -W097 */
'use strict';
function removeContent(element) {
var element;
element = document.getElementById(element);
if (element) {
element.parentNode.removeChild(element);
}
}
removeContent('iptvft');
removeContent('copyright');
removeContent('globalheader');
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('html { background: #000000 url() repeat-x top;}');
addGlobalStyle('#iptv #iptvpc { background: url() no-repeat; height: 600px; padding-top: 240px; }');
addGlobalStyle('#iptv #iptvpc { padding-top:100px }');
addGlobalStyle('#cfg input[type="button"] { display:none }');
addGlobalStyle('#iptv #iptvpc h3 { display:none }');