Greasy Fork

Greasy Fork is available in English.

VIP视频CCAV5解析

一键免费观看[优酷|腾讯|乐视|爱奇艺|芒果|M1905|AB站]等站VIP影视,提供10多组无广告接口,欢迎体验。

当前为 2018-06-03 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name     VIP视频CCAV5解析
// @version    1.0.18.0603
// @description  一键免费观看[优酷|腾讯|乐视|爱奇艺|芒果|M1905|AB站]等站VIP影视,提供10多组无广告接口,欢迎体验。
// @author     CCAV5
// @homepage  https://ccav5.ml/
// @icon	https://ccav5.ml/favicon.ico
// @noframes
// @match    *://*.iqiyi.com/*
// @match    *://*.youku.com/*
// @match    *://*.le.com/*
// @match    *://*.letv.com/*
// @match    *://v.qq.com/*
// @match    *://film.qq.com/*
// @match    *://*.tudou.com/*
// @match    *://*.mgtv.com/*
// @match    *://film.sohu.com/*
// @match    *://tv.sohu.com/*
// @match    *://*.acfun.cn/v/*
// @match    *://*.bilibili.com/*
// @match    *://vip.1905.com/play/*
// @match    *://*.pptv.com/*
// @match    *://v.yinyuetai.com/video/*
// @match    *://v.yinyuetai.com/playlist/*
// @match    *://*.fun.tv/vplay/*
// @match    *://*.wasu.cn/Play/show/*
// @match    *://*.56.com/*
// @exclude  *://*.bilibili.com/blackboard/*
// @namespace http://greasyfork.icu/users/189233
// ==/UserScript==

(() => {
  'use strict';
  const CCAV5Icon = '<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><g><rect fill="none" id="canvas_background" height="18" width="18" y="-1" x="-1"/></g><g><ellipse stroke="#000" ry="7.24994" rx="6.74994" id="svg_11" cy="7.75002" cx="8" stroke-opacity="null" stroke-width="0" fill="#1A333F"/><text font-weight="bold" stroke="#000" transform="matrix(0.809852357853394,0,0,0.5467730283520195,9.023962100405583,8.460591711368162) " xml:space="preserve" text-anchor="start" font-family="Helvetica, Arial, sans-serif" font-size="24" id="svg_10" y="7.74679" x="-9.13863" stroke-opacity="null" stroke-width="0" fill="#ffffff">5</text></g></svg>';
  var tMscript = document.createElement('script');
  tMscript.innerText = `q = function(cssSelector){return document.querySelector(cssSelector);};qa = function(cssSelector){return document.querySelectorAll(cssSelector);};`;
  document.head.appendChild(tMscript);
  window.q = function(cssSelector) {return document.querySelector(cssSelector);};
  window.qa = function(cssSelector) {return document.querySelectorAll(cssSelector);};
  window.makeEl = function(tag){return document.createElement(tag);};
  /* 兼容 Tampermonkey | Violentmonkey | Greasymonkey 4.0+ */
  function GMaddStyle(cssText){
    let a = document.createElement('style');
    a.textContent = cssText;
    let doc = document.head || document.documentElement;
    doc.appendChild(a);
  }
  GMaddStyle(`
    #CCAV5{position:fixed;background-color:#debb50;top:7em;left:0;padding:0;z-index:999999;}
    #CCAV5 li{list-style:none;height:8em;}
    #CCAV5 svg{float:right;}
    .AV5{opacity:0.3;position:relative;padding-right:.5em;width:1.4em;cursor:pointer;}
    .AV5:hover{opacity:1;}
    .AV5:hover{display:block;}
  `);
  var ccav5api = {
    title: "免费看VIP视频就用CCAV5解析",
    url: "http://ccav5.ml/index.html?url=",
    name:CCAV5Icon+"免费观看"
  };

  /*  执行  */
  var div = makeEl("div");
  div.id = "CCAV5Play";
  var txt = '', i = 0;

  div.innerHTML = `
    <ul id="CCAV5">
      <li class="AV5" data-url="${ccav5api.url}" title="${ccav5api.title}" onclick="window.open(this.dataset.url+location.href)">${ccav5api.name}</li>
    </ul>
  `;
  document.body.appendChild(div);

})();