VIP会员视频解析

解析并自动跳转各大视频网站会员视频(傻瓜版)

< Feedback on VIP会员视频解析

Review: Good - script works

hoothinMod
§
Posted: 2017-01-12
Edited: 2017-02-15

显摆下

var cracks=[ {name:"无名小站",url:"http://www.wmxz.wang/video.php?url=%s"}, {name:"47影视云",url:"http://api.47ks.com/webcloud/?v=%s"}, {name:"71靠椅",url:"http://jx.71ki.com/index.php?url=%s"}, {name:"爱看影院",url:"http://www.521804.com/www/jiexi.php?url=%s"} ]; var select=document.createElement("select"); select.style.cssText="position:absolute;z-index:999999;"; select.innerHTML="<option>vip视频解析</option>"; cracks.forEach(function(item){ var optionStr="<option value='"+item.url+"'>"+item.name+"</option>"; select.innerHTML+=optionStr; }); select.onchange=function(){window.location.href=select.options[select.options.selectedIndex].value.replace("%s",location.href);}; var video=document.querySelector("object"); if(video){ video.parentNode.appendChild(select); } 嵌入原页面应该是做不到的,https里面嵌不了http资源,除非用自己的服务器转发

张由之Author
§
Posted: 2017-01-12

var cracks=[
        {name:"无名小站",url:"http://www.wmxz.wang/video.php?url=%s"},
        {name:"47影视云",url:"http://api.47ks.com/webcloud/?v=%s"},
        {name:"71靠椅",url:"http://jx.71ki.com/index.php?url=%s"},
        {name:"爱看影院",url:"http://www.521804.com/www/jiexi.php?url=%s"}
    ];
    var select=document.createElement("select");
    select.style.cssText="position:absolute;z-index:999999;";
    select.innerHTML="<option>vip视频解析</option>";
    cracks.forEach(function(item){
        var optionStr="<option value='"+item.url+"'>"+item.name+"</option>";
        select.innerHTML+=optionStr;
    });
    select.onchange=function(){window.location.href=select.options[select.options.selectedIndex].value.replace("%s",location.href);};
    var video=document.querySelector("object");
    if(video){
        video.parentNode.appendChild(select);
    }


嵌入原页面应该是做不到的,https里面嵌不了http资源,除非用自己的服务器转发

你试试iframe

hoothinMod
§
Posted: 2017-01-12
Edited: 2017-01-12
你试试iframe

。。。“你试试iframe”啥意思?我不是说不会嵌,是不能嵌啊( ╯□╰ ),要嵌必须用自己服务器转发获得https资源才能用iframe

hoothinMod
§
Posted: 2017-01-12
Edited: 2017-01-12

另外@include 是不支持部分匹配的

张由之Author
§
Posted: 2017-01-12

另外@include 是不支持部分匹配的

JS我是小白~

hoothinMod
§
Posted: 2017-01-12
Edited: 2017-01-14
// ==UserScript==
// @name         会员视频解析
// @namespace    http://QQ.COM
// @version      0.231
// @description  try to DESTrOY the world!
// @author       张由之
// @include       *://v.qq.com/x/cover/*
// @include       *://*.mgtv.com/b/*
// @include       *://*.le.com/ptv/vplay/*
// @include       *://v.youku.com/v_show/*
// @include       *://*.iqiyi.com/v_*
// @include       *://*.tudou.com/albumplay/*
// @include       *://*.wasu.cn/Play/show/id/*
// @include       *://tv.sohu.com/20*
// @include       *://film.sohu.com/album/*
// @include       *://ddp.vip.pptv.com/vod_detail/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var cracks=[
        {name:"无名小站",url:"http://www.wmxz.wang/video.php?url=%s"},
        {name:"47影视云",url:"http://api.47ks.com/webcloud/?v=%s"},
        {name:"71靠椅",url:"http://jx.71ki.com/index.php?url=%s"},
        {name:"爱看影院",url:"http://www.521804.com/www/jiexi.php?url=%s"}
    ];
    var select=document.createElement("select");
    select.style.cssText="position:absolute;z-index:999999;";
    select.innerHTML="<option>vip视频解析</option>";
    cracks.forEach(function(item){
        var optionStr="<option value='"+item.url+"'>"+item.name+"</option>";
        select.innerHTML+=optionStr;
    });
    select.onchange=function(){window.location.href=select.options[select.options.selectedIndex].value.replace("%s",location.href);};
    var video=document.querySelector("object");
    if(video){
        video.parentNode.appendChild(select);
    }
})();

这是完整的,拿去换上吧

hoothinMod
§
Posted: 2017-01-12

另外这服务器是你自己的吗?是的话改成https倒是就可以嵌入替换了

张由之Author
§
Posted: 2017-01-14

另外这服务器是你自己的吗?是的话改成https倒是就可以嵌入替换了

我看看~

hoothinMod
§
Posted: 2017-01-14
Edited: 2017-01-15

你这实在是。。。我给了你代码你倒是换上啊,怎么光改名字和加赞助啊?现在你这脚本就只是个跳转一点价值都没有,还不如手动复制地址,而且include不支持部分匹配导致了甚至是你这个简单的跳转脚本在QQ、优酷、搜狐、pptv都是无效的

hoothinMod
§
Posted: 2017-01-15

我还是自己提交个脚本吧

张由之Author
§
Posted: 2017-01-15

我还是自己提交个脚本吧

之前用的是match

Post reply

Sign in to post a reply.