hahasport remove add
当前为
// ==UserScript==
// @name AdBlock for hahasport/yopika
// @description hahasport remove add
// @version 0.1
// @copyright 2015, Turkhero
// @namespace https://gf.qytechs.cn/tr/scripts/13440-adblock-for-hahasport-yopika
// @include *biggestplayer.me/*
// @include *cricfree.*/*
// @include *crichd.in/*
// @include *freehdsport.com/*
// @include *hahasport.com/*
// @include *hqstream.tv/*
// @include *leton.tv/*
// @include *liveall.tv/*
// @include *u-stream.me/*
// @include *privatestream.tv/*
// @include *sawlive.tv*
// @include *yocast.tv/*
// @include *yopika.com/*
// @include *yotv.co/*
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @run-at document-end
// ==/UserScript==
(function(window, document) {"use strict";
var player_width = 800;
var jQuery, $;
$ = jQuery = window.jQuery.noConflict(true);
document.addEventListener('DOMContentLoaded', DOM_ContentReady);
window.addEventListener('load', pageFullyLoaded);
function DOM_ContentReady() {
$('.lad').remove();
$('#ads_video_before').remove();
$('#ads_video_after').remove();
$('head').append('<style type="text/css">' +
'.player{float:none;margin:0;}' +
'.turk-danger{color:red;}' +
'</style>'
);
// Ubinet link
var itext;
$('td.evv_link').each(function () {
itext = $(this).text();
if (itext.match(/\(Unibet TV\)/g)) {
$(this).append(' <span class=\'turk-danger\'>!</span>');
}
});
$('td.evv_link>a').attr("target","");
$('td.evv_link').attr("class","");
bigsize_player();
}
function pageFullyLoaded() {
var ihost = document.location.host;
if (ihost.indexOf('liveall.tv') > - 1 ||
ihost.indexOf('privatestream.tv') > - 1 ||
ihost.indexOf('hqstream') > - 1 ||
ihost.indexOf('leton') > - 1
) {
timer_ads();
}
else if (ihost.indexOf('yocast.tv') > - 1 ||
ihost.indexOf('freehdsport.com') > - 1 ||
ihost.indexOf('cricfree') > - 1 ||
ihost.indexOf('yotv.co') > - 1 ||
ihost.indexOf('crichd') > - 1
) {
floatlayer_ads();
}
else if (ihost.indexOf('biggestplayer') > - 1) {
adblock_ads();
}
else if (ihost.indexOf('u-stream.me') > - 1) {
ustreamme();
}
else if (ihost.indexOf('sawlive.tv') > - 1) {
$('#adba').remove();
$('#sawdiv').remove();
}
}
function timer_ads() {
$('div').each(function () {
if ($(this).attr('id') == 'timer1') {
$(this).remove();
}
else if ($(this).attr('id') == 'timer2') {
$(this).remove();
}
else if ($(this).attr('id') == 'timer3') {
$(this).remove();
}
else if ($(this).attr('id') == 'timer4') {
$(this).remove();
}
else if ($(this).attr('id') == 'timer5') {
$(this).remove();
}
else if ($(this).attr('id') == 'timer_full') {
$(this).remove();
}
else if ($(this).attr('id') == 'title') {
$(this).remove();
}
else if ($(this).attr('id') == 'topad') {
$(this).remove();
}
});
}
function floatlayer_ads() {
$('div').each(function () {
if ($(this).attr('id') == 'video_ads_overdiv') {
$(this).remove();
}
else if ($(this).attr('id') == 'floatLayer1') {
$(this).remove();
}
else if ($(this).attr('id') == 'floatLayer2') {
$(this).remove();
}
else if ($(this).attr('id') == 'flashcontent') {
$(this).remove();
}
else if ($(this).attr('id') == 'video_ads_overdiv') {
$(this).remove();
}
else{
var style=$(this).attr("style");
if(style.match(/background-color: rgb\(251\, 236\, 173\)/)){
$(this).remove();
}
}
});
}
function adblock_ads() {
$('.adblock1').remove();
}
function ustreamme() {
$('div').each(function () {
if ($(this).attr('id') == 'ad') {
$(this).remove();
}
});
}
function bigsize_player() {
var iplayerframe = $('.player>iframe');
var iplayersource = iplayerframe.attr('src');
var iplayerframe_width = iplayerframe.attr('width');
var iplayerframe_height = iplayerframe.attr('height');
if (iplayerframe_width < player_width) {
var irgxpw = new RegExp('width=' + iplayerframe_width, 'g');
var irgxph = new RegExp('height=' + iplayerframe_height, 'g');
if (iplayersource.match(irgxpw)){
iplayersource = iplayersource.replace(irgxpw, 'width=' + player_width);
iplayerframe.attr('width', player_width);
var iplayerframe_newheight = Math.round(player_width * iplayerframe_height / iplayerframe_width);
iplayerframe.attr('height', iplayerframe_newheight);
iplayersource = iplayersource.replace(irgxph, 'height=' + iplayerframe_newheight);
iplayerframe.attr('src', iplayersource);
}else{
iplayerframe.attr('width', player_width);
var iplayerframe_newheight = Math.round(player_width * iplayerframe_height / iplayerframe_width);
iplayerframe.attr('height', iplayerframe_newheight);
}
}
}
}(window, document));
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址