硕鼠一键视频解析

使用硕鼠网站解析网页中的视频,match截至2023.05.14

目前为 2023-05-16 提交的版本。查看 最新版本

// ==UserScript==
// @name         硕鼠一键视频解析
// @version      1.0
// @author       猫不理
// @namespace    https://www.flvcd.com/index.htm
// @license      MIT
// @description  使用硕鼠网站解析网页中的视频,match截至2023.05.14
// @match        *://tv.sohu.com/*
// @match        *://www.letv.com/*
// @match        *://www.ku6.com/*
// @match        *://www.56.com/*
// @match        *://sports.sina.com.cn/*
// @match        *://c.m.163.com/*
// @match        *://share.tangdou.com/*
// @match        *://weibo.com/*
// @match        *://www.miaopai.com/*
// @match        *://www.meipai.com/*
// @match        *://m.eyepetizer.net/*
// @match        *://www.ixigua.com/*
// @match        *://www.bilibili.com/*
// @match        *://haokan.baidu.com/*
// @match        *://krcom.cn/*
// @match        *://www.pearvideo.com/*
// @match        *://v.douyin.com/*
// @match        *://www.365yg.com/*
// @match        *://video.mtime.com/*
// @match        *://www.boosj.com/*
// @match        *://movie.douban.com/*
// @match        *://www.news.cn/*
// @match        *://www.v1.cn/*
// @match        *://v.tom.com/*
// @match        *://video.baomihua.com/*
// @match        *://www.ouou.com/*
// @match        *://finance.ce.cn/*
// @match        *://www.cuctv.com/*
// @match        *://art.china.cn/*
// @match        *://www.kankanews.com/*
// @match        *://www.pinshan.com/*
// @match        *://apiapp.people.cn/*
// @match        *://www.yicai.com/*
// @match        *://www.jiemian.com/*
// @match        *://www.huxiu.com/*
// @match        *://www.yizhibo.com/*
// @match        *://www.zhihu.com/*
// @match        *://www.zhanqi.tv/*
// @match        *://v.autohome.com.cn/*
// @match        *://wx.vzan.com/*
// @match        *://live.ddeliveu.com/*
// @match        *://zj.cztv.live/*
// @match        *://www.huajiao.com/*
// @match        *://mparticle.uc.cn/*
// @match        *://www.skypixel.com/*
// @match        *://bbs.mihoyo.com/*
// @match        *://www.yy.com/*
// @match        *://www.koushare.com/*
// @match        *://www.wasu.cn/*
// @match        *://art.sclsje.com/*
// @match        *://mp.weixin.qq.com/*
// @match        *://roadshow.eastmoney.com/*
// @match        *://www.docuchina.cn/*
// @match        *://video.mct.gov.cn/*
// @match        *://tieba.baidu.com/*
// @match        *://yidumen.cn/*
// @match        *://www.360kuai.com/*
// @match        *://tv.81.cn/*
// @match        *://baike.baidu.com/*
// @match        *://wap.che.360.cn/*
// @match        *://www.ntv.cn/*
// @match        *://video.caixin.com/*
// @match        *://roadshow.sseinfo.com/*
// @match        *://live.baidu.com/*
// @match        *://www.fuyinfm.com/*
// @match        *://rs.p5w.net/*
// @match        *://www.pdnews.cn/*
// @match        *://www.cantonfair.org.cn/*
// @match        *://www.zaobao.com/*
// @match        *://www.chinanews.com.cn/*
// @match        *://www.yangtse.com/*
// @match        *://www.lontv.cn/*
// @match        *://www.dongchedi.com/*
// @match        *://tv.southcn.com/*
// @match        *://yn.chinadaily.com.cn/*
// @match        *://www.qlwb.com.cn/*
// @match        *://www.jingju.com/*
// @match        *://baijiahao.baidu.com/*
// @match        *://m.dianping.com/smallvideo/*
// @match        *://v.ccdi.gov.cn/*
// @match        *://open.163.com/*
// @match        *://www.zxx.edu.cn/*
// @match        *://new.hbeducloud.com/*
// @match        *://v.ucas.ac.cn/*
// @match        *://www.centv.cn/*
// @match        *://www.xuexi.cn/*
// @match        *://lv.ulikecam.com/*
// @match        *://www.wkzj.com/*
// @match        *://zy.szedu.cn/*
// @match        *://mskzkt.jse.edu.cn/*
// @match        *://www.ahedu.cn/*
// @match        *://e.dxy.cn/*
// @match        *://v.91360.com/*
// @match        *://www.houdask.com/*
// @match        *://www.dangjian.cn/*
// @match        *://hezhibo.migucloud.com/*
// @match        *://live.yanxiu.com/*
// @match        *://www.scedu.com.cn/*
// @match        *://mooc1.chaoxing.com/*
// @match        *://yun.ercmedia.cn/*
// @match        *://youzy.cn/*
// @match        *://h5.dingtalk.com/*
// @match        *://meeting.tencent.com/*
// @match        *://zhibo.chaoxing.com/*
// @match        *://www.wookey.cn/*
// @match        *://www.wupen.org/*
// @match        *://web.guangdianyun.tv/*
// @match        *://www.leleketang.com/*
// @match        *://www.manamana.net/*
// @match        *://video.pku.edu.cn/*
// @match        *://m.inmuu.com/*
// @match        *://www.yinyuetai.com/*
// @match        *://www.1ting.com/*
// @match        *://y.qq.com/*
// @match        *://www.kugou.com/*
// @match        *://music.163.com/*
// @match        *://www.beva.com/*
// @match        *://www.ximalaya.com/*
// @match        *://kuwo.cn/*
// @match        *://www.hqgq.com/*
// @match        *://qishui.douyin.com/*
// @match        *://www.qtfm.cn/*
// @match        *://tv.cctv.com/*
// @match        *://www.cutv.com/*
// @match        *://v.ifeng.com/*
// @match        *://v.jstv.com/*
// @match        *://www.zjstv.com/*
// @match        *://v.iqilu.com/*
// @match        *://item.btime.com/*
// @match        *://tv.cztv.com/*
// @match        *://www.gztv.com/*
// @match        *://2020.xmtv.cn/*
// @match        *://pc.yun.jxntv.cn/*
// @match        *://headline.fjtv.net/*
// @match        *://gdtv.cn/*
// @match        *://www.sjzjx.gov.cn/*
// @match        *://live.ipanda.com/*
// @match        *://tv.hoolo.tv/*
// @match        *://news.cgtn.com/*
// @match        *://www.hebtv.com/*
// @match        *://live.nbwbwx.com/*
// @match        *://www.gzstv.com/*
// @match        *://www.csztv.com/*
// @match        *://vod.gxtv.cn/*
// @match        *://www.cnr.cn/*
// @match        *://www.js7tv.cn/*
// @match        *://www.sxrtv.com/*
// @match        *://zmt-m.hljtv.com/*
// @match        *://www.hljtv.com/*
// @match        *://news.hbtv.com.cn/*
// @match        *://kscgc.sctv-tf.com/*
// @match        *://17173.tv.sohu.com/*
// @match        *://v.4399pk.com/*
// @match        *://v.huya.com/*
// @match        *://v.douyu.com/*
// @match        *://m.dongqiudi.com/*
// @match        *://v.zhibo.tv/*
// @match        *://www.zhibo8.cc/*
// @match        *://www.formula1.com/*
// @match        *://www3.nhk.or.jp/*
// @icon           https://www.flvcd.com/b30.gif
// @grant        GM_openInTab
// @run-at            document-idle
// ==/UserScript==

(function() {
    'use strict';

    var isMenuOpen = false;
    var currentUrl = encodeURIComponent(window.location.href);
    var searchUrl = 'https://www.flvcd.com/parse.php?kw=' + currentUrl;
    var updateUrl = GM_info.scriptUpdateURL || GM_info.script.updateURL || GM_info.script.downloadURL;

    function setButtonStyle(button) {
        button.style.position = 'fixed';
        button.style.left = '10px';
        button.style.transform = 'translateY(-50%)';
        button.style.zIndex = '9999';
        button.style.opacity = '0.7';
        button.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
        button.style.borderRadius = '15px';
        button.style.color = 'white';
        button.style.padding = '5px';
    }

    function toggleMenu() {
        if (!isMenuOpen) {
            openMenu();
        } else {
            closeMenu();
        }
    }

    function openMenu() {
        if (!isMenuOpen) {
            isMenuOpen = true;
            document.body.appendChild(updateButton);
        }
    }

    function closeMenu() {
        if (isMenuOpen) {
            isMenuOpen = false;
            if (updateButton && updateButton.parentNode) {
                updateButton.parentNode.removeChild(updateButton);
            }
        }
    }

    var button = document.createElement('button');
    button.textContent = '一键解析';
    button.style.top = '50%';
    setButtonStyle(button);

    button.addEventListener('click', function() {
        var currentUrl = encodeURIComponent(window.location.href);
        var searchUrl = 'https://www.flvcd.com/parse.php?kw=' + currentUrl;
        GM_openInTab(searchUrl, { active: true });
    });

    button.addEventListener('contextmenu', function(event) {
        event.preventDefault();
        toggleMenu();
    });

    var updateButton = document.createElement('button');
    updateButton.textContent = '检查更新';
    updateButton.style.top = 'calc(50% + 40px)';
    setButtonStyle(updateButton);

    updateButton.addEventListener('click', function() {
        GM_openInTab(updateUrl, { active: true });
    });

    updateButton.addEventListener('contextmenu', function(event) {
        event.preventDefault();
        closeMenu();
    });

    document.addEventListener('click', function() {
        closeMenu();
    });

    document.body.appendChild(button);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址