// ==UserScript==
// @name 豆瓣电影搜索在线观看&下载
// @namespace https://bbs.tampermonkey.net.cn/
// @version 0.5.0
// @description 点击片名后面的按钮可展开菜单,点击菜单外任何空白处即可隐藏菜单!收录精品站点,欢迎推荐!
// @author 张仨
// @match https://movie.douban.com/subject/*
// @supportURL https://bbs.tampermonkey.net.cn/forum.php?mod=viewthread&tid=1204&extra=page%3D1
// @homepageURL https://bbs.tampermonkey.net.cn/forum.php?mod=viewthread&tid=1204&extra=page%3D1
// ==/UserScript==
/***
* _ooOoo_
* o8888888o
* 88" . "88
* (| -_- |)
* O\ = /O
* ____/`---'\____
* . ' \\| |// `.
* / \\||| : |||// \
* / _||||| -:- |||||- \
* | | \\\ - /// | |
* | \_| ''\---/'' | |
* \ .-\__ `-` ___/-. /
* ___`. .' /--.--\ `. . __
* ."" '< `.___\_<|>_/___.' >'"".
* | | : `- \`.;`\ _ /`;.`/ - ` : | |
* \ \ `-. \_ __\ /__ _/ .-` / /
* ======`-.____`-.___\_____/___.-`____.-'======
* `=---='
*
* .............................................
* 佛祖保佑 永无BUG
*/
/***
* 佛曰:
* 写字楼里写字间,写字间里程序员;
* 程序人员写程序,又拿程序换酒钱。
* 酒醒只在网上坐,酒醉还来网下眠;
* 酒醉酒醒日复日,网上网下年复年。
* 但愿老死电脑间,不愿鞠躬老板前;
* 奔驰宝马贵者趣,公交自行程序员。
* 别人笑我忒疯癫,我笑自己命太贱;
* 不见满街漂亮妹,哪个归得程序员?
*/
(function () {
'use strict';
var btn = document.querySelector('.year');
btn.insertAdjacentHTML('afterend', `
搜索本片
`
)
var box = document.createElement("div");
document.body.appendChild(box);
box.innerHTML = `
`
var Video_1 = [
{ "name": "低端", "url": "https://www.baidu.com/s?wd=site%3Addrk.me%20" },
{ "name": "思古", "url": "https://www.siguyy.com/search/-------------.html?wd=" },
{ "name": "饭团", "url": "https://fantuan.tv/vodsearch.html?wd=" },
{ "name": "飘花", "url": "https://www.piaohua.com/plus/search.php?kwtype=0&keyword=" },
{ "name": "爱迪", "url": "https://aidi.tv/vsearch/-------------.html?wd=" },
{ "name": "片吧", "url": "https://www.pianba.net/so/-------------.html?wd=" },
{ "name": "月亮", "url": "http://www.13tv.top/vodsearch.html?wd=" },
{ "name": "九零", "url": "https://90r.cc/vodsearch/-------------/?wd=" },
{ "name": "4K鸭", "url": "https://yanetflix.com/index.php/vod/search.html?wd=" },
{ "name": "Auete", "url": "https://auete.com/search.php?searchword=" },
{ "name": "BL解析", "url": "https://vip.bljiex.cc/?v=" },
{ "name": "MK影视", "url": "https://www.mkvdo.com/?s=" },
{ "name": "NO视频", "url": "https://www.novipnoad.com/?s=" },
{ "name": "瓜皮TV", "url": "https://www.dijiaxia.com/index.php/vod/search.html?wd=" },
{ "name": "桔子TV", "url": "https://www.juztv.com/vodsearch/-------------/?wd=" },
{ "name": "茶杯狐", "url": "https://www.cupfox.com/search?key=" },
{ "name": "不求人", "url": "https://movie.bqrdh.com/vodsearch/-------------.html?wd=" },
{ "name": "素白白", "url": "https://www.subaibai.com/grabble?q=" },
{ "name": "大师兄", "url": "https://tv.ci/sb/ke7nhZe3c1-.html?wd=" },
{ "name": "追剧吧", "url": "https://zjuba.com/index.php/vod/search/wd/" },
{ "name": "美剧虫", "url": "https://www.meijuchong.com/vodsearch/-------------.html?wd=" },
{ "name": "万影网", "url": "https://www.17skr.com/vod/search.html?wd=" },
{ "name": "独播库", "url": "https://duboku.su/vodsearch/-------------.html?wd=" },
{ "name": "真不卡", "url": "https://www.zbkyy.com/vodsearch/-------------/?wd=" },
{ "name": "影客团", "url": "https://www.yingketuan.com/vodsearch/-------------.html?wd=" },
{ "name": "追剧达人", "url": "https://vipmv.tv/vod/search.html?wd=" },
{ "name": "在线之家", "url": "https://www.zxzj.fun/vodsearch/-------------.html?wd=" }
]
var Video_2 = [
{ "name": "两个BT", "url": "https://www.bttwo.com/xssearch?q=" },
{ "name": "MaGeDN", "url": "https://loli.magedn.com/?s=" },
{ "name": "YYDS", "url": "https://yyds.fans/?s=" },
{ "name": "YYeTs", "url": "https://yyets.dmesg.app/search?keyword=" },
{ "name": "高清电台", "url": "https://gaoqing.fm/s.php?q=" },
{ "name": "豆瓣下载", "url": "https://www.gaoqing888.com/search?kw=" }
]
var Video_3 = [
{ "name": "爱奇艺", "url": "https://so.iqiyi.com/so/q_" },
{ "name": "腾讯", "url": "https://v.qq.com/x/search/?q=" },
{ "name": "优酷", "url": "https://so.youku.com/search_video/q_" }
]
var box3 = document.querySelector('.box_3');
for (var i in Video_1) {
let inputs_1 = document.createElement('input');
box3.appendChild(inputs_1);
inputs_1.type = 'button';
inputs_1.value = Video_1[i].name;
}
var box4 = document.querySelector('.box_4');
for (var t in Video_2) {
let inputs_2 = document.createElement('input');
box4.appendChild(inputs_2);
inputs_2.type = 'button';
inputs_2.value = Video_2[t].name;
}
var box5 = document.querySelector('.box_5');
for (var s in Video_3) {
let inputs_3 = document.createElement('input');
box5.appendChild(inputs_3);
inputs_3.type = 'button';
inputs_3.value = Video_3[s].name;
}
var btn1 = document.querySelector('.btn_1');
var box1 = document.querySelector('.box_1');
var upnew = document.querySelector('.up-new');
btn1.addEventListener('click', () => {
box1.style.left = "8px";
})
upnew.addEventListener('click', () => {
box1.style.left = "-228px";
})
document.addEventListener('click', () => {
box1.style.left = "-228px";
})
btn1.addEventListener('click', (event) => {
var e = event || window.event;
e.stopPropagation();
})
box1.addEventListener('click', (event) => {
var e = event || window.event;
e.stopPropagation();
})
var input1 = document.querySelectorAll('.box_3 input');
var input2 = document.querySelectorAll('.box_4 input');
var input3 = document.querySelectorAll('.box_5 input');
var douban = document.querySelector('title').innerText.replace(/(^\s*)|(\s*$)/g, '').replace(' (豆瓣)', '');
for (let j = 0; j < input1.length; j++) {
input1[j].addEventListener('click', () => {
window.open(Video_1[j].url + douban);
})
}
for (let f = 0; f < input2.length; f++) {
input2[f].addEventListener('click', () => {
window.open(Video_2[f].url + douban);
})
}
for (let x = 0; x < input3.length; x++) {
input3[x].addEventListener('click', () => {
window.open(Video_3[x].url + douban);
})
}
})();