A站下载视频解析下载

A站下载地址,目前实现调到解析网站,实现自动填入地址

Versión del día 6/3/2022. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name         A站下载视频解析下载
// @namespace    wushx
// @version      1.1
// @description  A站下载地址,目前实现调到解析网站,实现自动填入地址
// @author       wushx
// @match        https://www.acfun.cn/v/*
// @match        https://www.leesoar.com/acfun*
// @requires     jQuery
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    var i=0;//解析次数
    var webUrl = window.location.href;
	var host = location.host;
	var html = '<button onclick="window.open('+"\'https://www.leesoar.com/acfun#parse?url="+webUrl+"\'"+')">下载视频</button>';
    setTimeout(function(){
  $('#player').before(html);;  //可以是一句或是很多句代码,也可以是个函数
  },3000);    //延时10秒

    if($('#input-parse')){
       $('#input-parse').val(webUrl.substring(webUrl.lastIndexOf("=")+1));
        alert("如果您是第一次进入,请点击一下页面的解析开始解析视频!")
         setTimeout(function(){
             $('#aswift_1_anchor').hide();
             $('.toast').hide();
             $('.adsbygoogle').hide();
             $('#home').remove();
             $('#nav').remove();
             var htmll="<div class=col-4 col-6-medium col-12-small align=center><strong>Alipay</strong><a href=#support class=image fit><img width=300px src=https://s3.bmp.ovh/imgs/2022/03/b2ffdfaa6c201e59.jpg alt=支付宝></a></div><div class=col-4 col-6-medium col-12-small align=center><strong>WeChat Pay</strong><a href=#support class=image fit><img width=300px src=https://s3.bmp.ovh/imgs/2022/03/39dc48955493a30e.png alt=微信></a></div><div class=col-4 col-6-medium col-12-small align=center><strong>PayPal</strong><a href=#support class=image fit><img src=https://www.leesoar.com/api-v1/qrcode?content=https://paypal.me/leesoar?locale.x=en_US&amp;size=10 alt=PayPal></a></div>";
             $('.aln-center').html(htmll);
             var html2="<b>脚本有问题请前往<font color=#8b0000 style=font-size: 5.5rem;>微信公众号 潇潇书旅</font> 后台留言!</b>";
             $('#parse').before(html2)
         },3000);


      // $('#submit').click();
    }


})();