// ==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 // @downloadURL none // ==/UserScript== (function() { 'use strict'; var i=0;//解析次数 var webUrl = window.location.href; var host = location.host; var html = ''; 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="
"; $('.aln-center').html(htmll); var html2="脚本有问题请前往微信公众号 潇潇书旅 后台留言!"; $('#parse').before(html2) },3000); // $('#submit').click(); } })();