Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

显摆下

About: VIP会员视频解析
edited January 12 in Script Discussions Chrome

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资源,除非用自己的服务器转发

广告位:
我写的老司机脚本 https://sleazyfork.org/scripts/23316-琉神轉

Comments

  • hoothin said:

    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="&lt;option&gt;vip视频解析&lt;/option&gt;";
    cracks.forEach(function(item){
    var optionStr="&lt;option value='"+item.url+"'&gt;"+item.name+"&lt;/option&gt;";
    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
  • edited January 12 Chrome
    你试试iframe

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

  • edited January 12 Chrome

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

  • hoothin said:

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

    JS我是小白~
  • edited January 14 Chrome
    // ==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);
    }
    })();
    这是完整的,拿去换上吧
  • 另外这服务器是你自己的吗?是的话改成https倒是就可以嵌入替换了

  • hoothin said:

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

    我看看~
  • edited January 15 Chrome

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

  • 我还是自己提交个脚本吧

  • hoothin said:

    我还是自己提交个脚本吧

    之前用的是match
Sign In or Register to comment.