老司机带带我

avgle无广告纯净播放

اعتبارا من 19-01-2018. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name 老司机带带我
// @namespace https://greasyfork.org/zh-CN/users/14853
// @author bibubi
// @description avgle无广告纯净播放
// @match *://avgle.com/*
// @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// @version 1.0.3
// @grant  GM_addStyle
// ==/UserScript==
function checkCloseBtn() {
    var closeBtn = document.getElementById('iframe').contentWindow.document.getElementById('player_3x2_close');
    if(closeBtn !== null){
        closeBtn.click();
    }
}

(function() {
    'use strict';
   const embed = document.getElementsByTagName('head')[0].innerHTML.match('https://avgle.com/embed/[^"]+')[0];
    $("head").remove();
   const body = document.getElementsByTagName('body')[0];
    body.style = 'background: black; text-align:center;';
    body.innerHTML = '<iframe  id="iframe" width="1280" height="640" src="' + embed + '" frameborder="0" allowfullscreen></iframe>';
      window.setInterval(checkCloseBtn,200);

})();