// ==UserScript==
// @name 小浪浪影视
// @namespace https://raw.githubusercontent.com/xiao-langlang/xiaolanglang_film/langlang/xiaolanglang.js
// @version 1.1.8
// @description 腾讯视频、爱奇艺、优酷、芒果蓝光无广告在线观看;含搜索功能,可搜索观看美剧、日韩剧、禁片、付费剧等
// @author 小浪浪
// @icon https://greasyfork.s3.us-east-2.amazonaws.com/q71ldqvvd37exhd30wfopzjlalwc
// @include *
// @require https://code.jquery.com/jquery-3.6.1.min.js
// @grant unsafeWindow
// @grant GM_openInTab
// @grant GM_getValue
// @grant GM_setValue
// @license AGPL License
// @charset UTF-8
// @original-script https://gf.qytechs.cn/zh-CN/scripts/450411
// ==/UserScript==
(function () {
'use strict';
function commonFunction(){
this.GMgetValue = function (name, value=null) {
let storageValue = value;
if (typeof GM_getValue === "function") {
storageValue = GM_getValue(name, value);
} else if(typeof GM.setValue === "function"){
storageValue = GM.getValue(name, value);
}else{
var arr = window.localStorage.getItem(name);
if(arr != null){
storageValue = arr
}
}
return storageValue;
};
this.GMsetValue = function(name, value){
if (typeof GM_setValue === "function") {
GM_setValue(name, value);
} else if(typeof GM.setValue === "function"){
GM.setValue(name, value);
}else{
window.localStorage.setItem(name, value)
}
};
this.GMaddStyle = function(css){
var myStyle = document.createElement('style');
myStyle.textContent = css;
var doc = document.head || document.documentElement;
doc.appendChild(myStyle);
};
this.GMopenInTab = function(url, open_in_background){
if (typeof GM_openInTab === "function") {
GM_openInTab(url, open_in_background);
} else {
GM.openInTab(url, open_in_background);
}
};
}
//解析接口配置
const originalInterfaceList = [
{"name":"小浪浪视频1","url":"https://jx.xmflv.com/?url="},
{"name":"小浪浪视频2","url":"https://www.ckmov.vip/api.php?url="},
{"name":"小浪浪视频3","url":"http://www.ikukk.com/?ac=1&url="},
{"name":"小浪浪视频4","url":"http://ccav5.ml/v.html?url="},
{"name":"小浪浪视频5","url":"https://www.nxflv.com/?url="},
{"name":"小浪浪视频6","url":"http://jsap.attakids.com/?url="},
{"name":"小浪浪视频7","url":"https://jx.m3u8.tv/jiexi/?url="},
{"name":"小浪浪视频8","url":"https://player.maqq.cn/?url="},
];
const searchList = [
{"name":"思古(推荐)","url":"https://www.siguyy.com/search/-------------.html?wd=search_flag&submit="},
{"name":"爱看(推荐)","url":"https://ikan6.vip/vodsearch/search_flag-------------/"},
{"name":"艾菲影视(推荐)","url":"https://www.ifimv.com/vsearch/search_flag--.html"},
{"name":"RENPE(推荐)","url":"https://rpzhuiju.cn/vodsearch/-------------/?wd=search_flag"},
{"name":"月亮影视","url":"https://www.aimoon.me/search.html?wd=search_flag"},
{"name":"Auete","url":"https://auete.com/search.php?searchword={search_flag}"},
{"name":"达人","url":"https://vipmv.tv/vod/search.html?wd=search_flag"},
{"name":"皮皮","url":"https://pipipao.com/vodsearch.html?wd=search_flag"},
{"name":"牛马TV","url":"https://www.niumatv.cc/vodsearch.html?wd=search_flag&submit="},
{"name":"555电影","url":"https://www.o8tv.com/vodsearch/search_flag-------------.html"},
{"name":"1080P","url":"https://1080p.tv/vodsearch/-------------/?wd=search_flag"},
{"name":"电影牛","url":"https://www.dianyingn.com/vodsearch/search_flag-------------.html"},
{"name":"变形金刚","url":"https://www.kuaiyunyy.com/index.php/vod/search/wd/search_flag.html"},
{"name":"厂长","url":"https://czspp.com/xssearch?q=search_flag"},
{"name":"爱酷","url":"https://www.zhanlangbu.com/index.php/vod/search/wd/search_flag.html"},
{"name":"大米星球","url":"https://www.dmxq.cc/vodsearch/search_flag-------------.html"},
{"name":"多多","url":"https://www.ddzyz2.com/vodsearch/-------------.html?wd=search_flag&submit=search"},
{"name":"神马","url":"https://www.smdyy.cc/search.html?wd=search_flag&submit="},
{"name":"voflix","url":"https://www.voflix.com/search/-------------.html?wd=search_flag"},
{"name":"LIBVIO","url":"https://www.libvio.me"},
{"name":"city影院","url":"https://www.citydy.com/search.html?wd=search_flag"},
{"name":"追剧喵","url":"https://zjmiao.com/index.php/vod/search/wd/search_flag/"},
{"name":"稀饭","url":"https://www.xifanys.com/yingpiansearch/-------------.html?wd=search_flag"},
{"name":"大鱼","url":"https://www.187687.com/index.php/vod/search.html?wd=search_flag&submit="},
{"name":"极品影视","url":"https://www.jpys.me/vodsearch/search_flag-------------.html"},
{"name":"百度云","url":"http://www.bdzy.com/index.php/vod/search.html?wd=search_flag&submit="},
{"name":"迅雷","url":"http://www.lntzy.com/vodsearch/-------------.html?wd=search_flag"},
{"name":"M影院","url":"https://www.umkan.com/index.php/vod/search/wd/search_flag.html"},
{"name":"真实链接1","url":"http://yundun-ky.kyky.vip/api.php/provide/vod/?ac=videolist&wd=search_flag"},
{"name":"真实链接2","url":"http://124.248.66.168:1212/xgapp.php/v2/search?pg=1&text=search_flag"},
{"name":"配合2使用","url":"http://124.248.66.168:1212/xgapp.php/v2/video_detail?id=vod_id"},
];
const commonFunctionObject = new commonFunction();
function superVideoHelper(){
this.elementId = Math.ceil(Math.random()*100000000)+"mmx";
const urls = ["iqiyi.com/v_","iqiyi.com/w_","iqiyi.com/a_",
"v.qq.com/x/cover/","v.qq.com/x/page/","v.qq.com/tv/",
"youku.com/v_","youku.com/alipay_video/","youku.com/video/id_",
"le.com/ptv/vplay/",
"mgtv.com/b/",
"sohu.com/album/","sohu.com/v/",
"acfun.cn/v/",
"bilibili.com/bangumi/play/",
"baofeng.com/play/",
"pptv.com/show/",
"1905.com/video/","1905.com/play/",
"miguvideo.com/mgs/",
"tudou.com/listplay/","tudou.com/albumplay/","tudou.com/programs/view/",
"wasu.cn/Play/show/"];
this.isRun = function(){
var result = false;
if(commonFunctionObject.GMgetValue("show_webpage",null)==="true")
{result = true;}
else{
for(var i=0; i<urls.length;i++){
if(window.location.href.indexOf(urls[i])!=-1){
result = true;
break;
}
}
}
for(var j=0; j<originalInterfaceList.length; j++){
if(window.location.href.indexOf(originalInterfaceList[j].url)!=-1||window.location.href.indexOf("http://www.feiyyd.com/?url=")!=-1){
result=false;
break;
}
}
if(top.location.href!=self.location.href)result=false;
return result;
};
this.showPlayerWindow = function(playObject){
var url = playObject.url + window.location.href;
commonFunctionObject.GMopenInTab(url, false);
};
this.searchshowPlayerWindow = function(searchplayObject){
var url = searchplayObject.url;
commonFunctionObject.GMopenInTab(url, false);
};
this.addHtmlElements = function(){
const currentHost = window.location.host;
var category_1_html = "",search_html = "";
originalInterfaceList.forEach((item, index) => {
category_1_html += "<span title='"+item.name+"' data-index='"+index+"' class='"+"'>" + item.name + "</span>";
});
searchList.forEach((item, index) => {
search_html += "<span title=-'"+item.name+"' data-index='"+index+"' class='"+"'>" + item.name + "</span>";
});
var left = 0;
var top = 120;
var Position = commonFunctionObject.GMgetValue("Position_" + currentHost);
if(!!Position){
left = Position.left;
top = Position.top;
}
var color = "#FF8000";
var hoverColor = "#ffffff";
if(currentHost.indexOf("bilibili.com")!=-1){
color = "#fb7299";
hoverColor = "#00B0E1";
}
var cssMould = `#vip_movie_box`+this.elementId+`{cursor:pointer; position:fixed; top:` + top + `px; left:` + left + `px; width:0px; z-index:99999999; font-size:16px; text-align:left;}
#vip_movie_box`+this.elementId+` .img_box`+this.elementId+`{width:24px; height:32px;line-height:32px;text-align:center;background-color:;}
#vip_movie_box`+this.elementId+` .img_box`+this.elementId+`:hover{
background: linear-gradient(30deg, #2a66ff 40%);
}
#vip_movie_box`+this.elementId+` .img_box`+this.elementId+`>img {width:50px; display:inline-block; vertical-align:middle;}
#vip_movie_box`+this.elementId+` .showhide_box`+this.elementId+`{display:none;padding-left:5px;position: absolute;left: 45px;top: 0;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii{width:380px; max-height:400px; overflow-y:auto;background-color:rgba(241,241,241);}
#vip_movie_box`+this.elementId+` .default-scrollbar-55678::-webkit-scrollbar{width:5px; height:1px;}
#vip_movie_box`+this.elementId+` .default-scrollbar-55678::-webkit-scrollbar-thumb{box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.2); background:#A8A8A8;}
#vip_movie_box`+this.elementId+` .default-scrollbar-55678::-webkit-scrollbar-track{box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.2); background:#F1F1F1;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .p_line`+this.elementId+` >.input_line`+this.elementId+`{border:1px solid red;border-radius:8px;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .p_line`+this.elementId+` >.btn_submit`+this.elementId+`{border:1px solid red;border-radius:8px;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .p_line1`+this.elementId+` >.btn_submit1`+this.elementId+`{border:1px solid #FFCBA4;border-radius:8px;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .explain_box`+this.elementId+` >.content`+this.elementId+` >.real_url`+this.elementId+`{border:1px solid #191970;border-radius:4px;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .explain_box`+this.elementId+` >.content`+this.elementId+` >.show_web`+this.elementId+`{border:1px solid #191970;border-radius:4px;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+`{margin-bottom:10px;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+`:last-child{margin-bottom:0px;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.interface_box`+this.elementId+`{}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.interface_box`+this.elementId+`>span{border-radius:3px;border-top:3px solid `+color+`; border-bottom:3px solid `+color+`;display:inline-block;width:calc(25% - 6px);width:-moz-calc(25% - 6px);width: -webkit-calc(25% - 6px);height:20px;line-height:20px;background-color:`+color+`;color:#FFF;cursor:pointer;margin:3px;text-align:center;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;font-size:12px!important;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.interface_box`+this.elementId+`>span:hover{border-top:3px solid `+hoverColor+`; border-bottom:3px solid `+hoverColor+`;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.interface_box`+this.elementId+`>span.selected{border-top:3px solid `+hoverColor+`; border-bottom:3px solid `+hoverColor+`;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.search_interface_box`+this.elementId+`{}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.search_interface_box`+this.elementId+`>span{border-radius:3px;border-top:3px solid `+color+`; border-bottom:3px solid `+color+`;display:inline-block;width:calc(25% - 6px);width:-moz-calc(25% - 6px);width: -webkit-calc(25% - 6px);height:20px;line-height:20px;background-color:`+color+`;color:#FFF;cursor:pointer;margin:3px;text-align:center;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;font-size:12px!important;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.search_interface_box`+this.elementId+`>span:hover{border-top:3px solid `+hoverColor+`; border-bottom:3px solid `+hoverColor+`;}
#vip_movie_box`+this.elementId+` .vip_mod_box_action_687ii> .item_box`+this.elementId+` >.search_interface_box`+this.elementId+`>span.selected{border-top:3px solid `+hoverColor+`; border-bottom:3px solid `+hoverColor+`;}
`
commonFunctionObject.GMaddStyle(cssMould);
var htmlMould = `<div id='vip_movie_box`+this.elementId+`'>
<div class='plugin_inner_`+this.elementId+`'>
<div class="img_box`+this.elementId+`" id="img_box_jump_6667897iio"><img src="https://greasyfork.s3.us-east-2.amazonaws.com/q71ldqvvd37exhd30wfopzjlalwc" title='选择解析线路'/></div>
<div class='showhide_box`+this.elementId+`'>
<div class='vip_mod_box_action_687ii default-scrollbar-55678'>
<div class='item_box`+this.elementId+`'>
<div class='interface_box`+this.elementId+`'>
` + category_1_html + `
</div>
</div>
<p class='p_line`+this.elementId+`' style="text-indent:0.2em;">
<b style="color:red;">搜索:</b>
<input class='input_line`+this.elementId+`' style="color:red;" type='text' name='name' value='' autocomplete="off"/>
<button type="submit" class="btn_submit`+this.elementId+`" style="color:red;">展开</button>
</p>
<div class='item_box`+this.elementId+`'>
<div class='search_interface_box`+this.elementId+`'>
` + search_html + `
</div>
</div>
<p class='p_line1`+this.elementId+`' style="text-indent:0.2em;">
<b style="color:#FFCBA4;">使用说明:</b>
<button type="submit" class="btn_submit1`+this.elementId+`" style="color:#FFCBA4;">展开</button>
</p>
<div class='explain_box`+this.elementId+`'>
<b style="color:#1E90FF;">来源:湖北文理学院</b>
<div class='content`+this.elementId+`'>
1.解析功能:在腾讯、爱奇艺、优酷等平台打开相应的影视,点击最上方的小浪浪影视即可,解析不出切换下一个接口<br>
2.搜索功能:在输入框输入内容,展开点击相应影视源(此功能可以观看美剧、日韩剧、禁片等)<br>
3.获取视频真实链接:<button type="submit" class="real_url`+this.elementId+`" style="color:#191970;">点击获取</button><br>
(!!!)在线播放真实链接视频,需在浏览器的附加组件上安装:Native HLS<br>
4.其他功能:(1)右击拖动哆啦A梦可移动位置<br>
(2)图标显示页面:<button type="submit" class="show_web`+this.elementId+`" style="color:#191970;">影视网页显示</button><br><br>
有问题请在此脚本页面进行反馈
https://gf.qytechs.cn/zh-CN/scripts/450411
</div>
</div>
</div>
</div>
</div>
</div>
`;
$("body").append(htmlMould);
}
this.runEvent = function(){ //事件运行
var that = this,searchword,box_switch=-1,box_switch1=-1;
if(!!box_switch){$(".search_interface_box"+this.elementId).hide();box_switch=1;}
if(!!box_switch1){$(".explain_box"+this.elementId).hide();box_switch1=1;}
if(commonFunctionObject.GMgetValue("show_webpage",null)==="true"){
$(".show_web"+this.elementId).text("全局网页显示");
$(".interface_box"+this.elementId).hide();
$(".real_url"+this.elementId).hide();
for(var i=0; i<urls.length;i++){
if(window.location.href.indexOf(urls[i])!=-1){
$(".interface_box"+this.elementId).show();
$(".real_url"+this.elementId).show();
break;
}
}
}
else {$(".show_web"+this.elementId).text("影视网页显示");}
$("#vip_movie_box"+this.elementId+" >.plugin_inner_"+this.elementId).on("mouseover", () => {
$(".showhide_box"+this.elementId).show();
});
$("#vip_movie_box"+this.elementId+" >.plugin_inner_"+this.elementId).on("mouseout", () => {
$(".showhide_box"+this.elementId).hide();
});
$("#vip_movie_box"+this.elementId+" >.plugin_inner_"+this.elementId+" >.showhide_box"+this.elementId+" >.vip_mod_box_action_687ii>.item_box"+this.elementId+" >.search_interface_box"+this.elementId).on("click", () => {
searchword = $(".input_line"+this.elementId).val();
});
$("#vip_movie_box"+this.elementId+" >.plugin_inner_"+this.elementId+" >.showhide_box"+this.elementId+" >.vip_mod_box_action_687ii"+" >.p_line"+this.elementId+" >.btn_submit"+this.elementId).on("click", () => {
if(box_switch==1){$(".search_interface_box"+this.elementId).show();$(".btn_submit"+this.elementId).text("收起");box_switch=2;}
else if(box_switch==2){$(".search_interface_box"+this.elementId).hide();$(".btn_submit"+this.elementId).text("展开");box_switch=1;}
});
$("#vip_movie_box"+this.elementId+" >.plugin_inner_"+this.elementId+" >.showhide_box"+this.elementId+" >.vip_mod_box_action_687ii"+" >.p_line1"+this.elementId+" >.btn_submit1"+this.elementId).on("click", () => {
if(box_switch1==1){$(".explain_box"+this.elementId).show();$(".btn_submit1"+this.elementId).text("收起");box_switch1=2;}
else if(box_switch1==2){$(".explain_box"+this.elementId).hide();$(".btn_submit1"+this.elementId).text("展开");box_switch1=1;}
});
$("#vip_movie_box"+this.elementId+" >.plugin_inner_"+this.elementId+" >.showhide_box"+this.elementId+" >.vip_mod_box_action_687ii"+" >.explain_box"+this.elementId+" >.content"+this.elementId+" >.real_url"+this.elementId).on("click", () => {
commonFunctionObject.GMopenInTab("http://www.feiyyd.com/?url="+window.location.href, false);
});
$("#vip_movie_box"+this.elementId+" >.plugin_inner_"+this.elementId+" >.showhide_box"+this.elementId+" >.vip_mod_box_action_687ii"+" >.explain_box"+this.elementId+" >.content"+this.elementId+" >.show_web"+this.elementId).on("click", () => {
if(commonFunctionObject.GMgetValue("show_webpage",null)==="true"){$(".show_web"+this.elementId).text("影视网页显示");commonFunctionObject.GMsetValue("show_webpage","null");}
else {$(".show_web"+this.elementId).text("全局网页显示");commonFunctionObject.GMsetValue("show_webpage","true");}
});
$("body").on("click","#vip_movie_box"+this.elementId+" .vip_mod_box_action_687ii>.item_box"+this.elementId+">.interface_box"+this.elementId+">span",function(){
var index = parseInt($(this).attr("data-index"));
var playObject = originalInterfaceList[index];
that.showPlayerWindow(playObject);
});
$("body").on("click","#vip_movie_box"+this.elementId+" .vip_mod_box_action_687ii>.item_box"+this.elementId+">.search_interface_box"+this.elementId+">span",function(){
var index = parseInt($(this).attr("data-index"));
var list_name=searchList[index].name,list_url=searchList[index].url;
var list_search={"name":list_name,"url":list_url};
list_search.url=list_search.url.replace("search_flag",searchword);
var searchplayObject = list_search;
that.searchshowPlayerWindow(searchplayObject);
});
//点击视频播放界面
$("#img_box_jump_6667897iio").on("click", function(){
});
//右键移动位置
var movie_box = $("#vip_movie_box"+this.elementId);
movie_box.mousedown(function(e) {
if (e.which == 3) {
e.preventDefault()
movie_box.css("cursor", "move");
var positionDiv = $(this).offset();
var distenceX = e.pageX - positionDiv.left;
var distenceY = e.pageY - positionDiv.top;
$(document).mousemove(function(e) {
var x = e.pageX - distenceX;
var y = e.pageY - distenceY;
var windowWidth = $(window).width();
var windowHeight = $(window).height();
if (x < 0) {
x = 0;
} else if (x > windowWidth- movie_box.outerWidth(true) - 100) {
x = windowWidth - movie_box.outerWidth(true) - 100;
}
if (y < 0) {
y = 0;
} else if (y > windowHeight - movie_box.outerHeight(true)) {
y = windowHeight - movie_box.outerHeight(true);
}
movie_box.css("left", x);
movie_box.css("top", y);
commonFunctionObject.GMsetValue("Position_" + window.location.host,{ "left":x, "top":y});
});
$(document).mouseup(function() {
$(document).off('mousemove');
movie_box.css("cursor", "pointer");
});
$(document).contextmenu(function(e) {
e.preventDefault();
})
}
});
};
this.start = function(){
setTimeout(()=>{
try{
this.addHtmlElements();
this.runEvent();
}catch(e){}
}, 0);
};
};
try{
const superVideoHelperObject = new superVideoHelper();
if(window.location.href.indexOf("http://www.feiyyd.com/?url=")!=-1)document.body.innerHTML=document.body.innerHTML.match("\"url\":\\s?\"(.*?)\"")[1];
if(superVideoHelperObject.isRun()){
if(commonFunctionObject.GMgetValue("copyright_video_remind",null)==="true"){
superVideoHelperObject.start();
}else{
while(1){
var r=prompt(
"脚本运行提醒!!!\u000d"+
"1、VIP视频解析中所用到的解析接口全部收集自互联网(源码可见),版权问题请联系相关解析接口所有者!\u000d"+
"2、为创造良好的创作氛围,请大家支持正版!\u000d"+
"3、脚本仅限个人学习交流,切勿用于任何商业等其它用途!\u000d"+
"4、继续使用,即表明你已经明确使用脚本可能带来的风险,且愿意自行承担相关风险,对于风险脚本不承担任何责任!\u000d"+
"5、此提醒只弹出一次,确认后,后续将不在弹出,请知悉!\u000d \u000d"+
"使用说明:\u000d将鼠标滑至当前页面左侧的“哆啦A梦”图像处,点击相应节点即可\u000d"+
"输入“我已知晓”,使用此脚本"
);
if(r=='我已知晓'){
commonFunctionObject.GMsetValue("copyright_video_remind","true");
superVideoHelperObject.start();
break;
}}
}
}
}catch(e){
console.log("解析错误!"+e);
}
})();