Removes all useless content from BulSatCom Fusion Web IPTV. Enjoy pure blackness and 150% larger viewing area.
当前为
// ==UserScript==
// @name BulSatCom Fusion Sanitizer
// @namespace https://greasyfork.org/scripts/13328-bulsatcom-fusion-sanitizer/code/BulSatCom%20Fusion%20Sanitizer.user.js
// @version 0.2.1
// @icon http://www.google.com/s2/favicons?domain=http://www.bulsat.com/
// @description Removes all useless content from BulSatCom Fusion Web IPTV. Enjoy pure blackness and 150% larger viewing area.
// @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: 300px; padding-top: 75px !important; }');
addGlobalStyle('#iptv #iptvpc { padding-top:100px }');
addGlobalStyle('#cfg input[type="button"] { display:none }');
addGlobalStyle('#iptv #iptvpc h3 { display:none }');
addGlobalStyle('#main, #globalheader, #globalfooter { width: 1323px; !important; }');
addGlobalStyle('#iptv #iptvpc #wrapper { width: 1230px !important; height: 150% !important }');
addGlobalStyle('#iptv #iptvpc #wrapper #pl #jw_wrapper { width: 150% !important; height: 150% !important }');
addGlobalStyle('#iptv #iptvpc #wrapper #epg { width: 1230px !important; }');
addGlobalStyle('#iptv #iptvpc #wrapper #list { height: 540px !important; }');
addGlobalStyle('#grp { width: 1320px !important; }');
addGlobalStyle('#grp span { width: 152.8px !important; }');
addGlobalStyle('#epg ul { float: left !important; }');