// ==UserScript== // @name A站下载视频解析下载 // @namespace wushx // @version 2.2 // @description A站下载地址,目前实现调到解析网站,实现自动填入地址 // @author wushx // @match https://www.acfun.cn/v/* // @match https://www.leesoar.com/acfun* // @requires jQuery // @grant none // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/440984/A%E7%AB%99%E4%B8%8B%E8%BD%BD%E8%A7%86%E9%A2%91%E8%A7%A3%E6%9E%90%E4%B8%8B%E8%BD%BD.user.js // @updateURL https://update.greasyfork.icu/scripts/440984/A%E7%AB%99%E4%B8%8B%E8%BD%BD%E8%A7%86%E9%A2%91%E8%A7%A3%E6%9E%90%E4%B8%8B%E8%BD%BD.meta.js // ==/UserScript== (function() { 'use strict'; var i=0;//解析次数 var webUrl = window.location.href; var host = location.host; var goBUrl = "https://www.bilibili.com/video/BV1JP4y1g7aG?from=search"; var html = ''; var goB = ''; setTimeout(function(){ $('#player').before(html); //可以是一句或是很多句代码,也可以是个函数 $('#player').before(goB); //下面是个神奇的代码,放开后记得三连哦! //window.open ("https://www.bilibili.com/video/BV1JP4y1g7aG?from=search", "newwindow", "height=1px, width=4px, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") },3000); setInterval(function(){ //去除广告 $('.right-activity').remove(); $('#pagelet_bottomrecommend').remove(); //去除大家都在看(如果你需要可以去除这一句,本人是喜欢简单清晰的页面) $('.recmd').remove(); //播放列表的加长显示 $('.part-wrap').css('max-height','530px'); },1000); // 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) //去除support $('#support').remove(); $("#parse").find("p").remove(); },3000); // $('#submit').click(); } })();