91porny|九色视频助手

jiuse|91PORNY|九色视频|自动跳转HD高清视频|获取视频下载链接

Устаревшая версия на 27.12.2021. Перейти к последней версии.

// ==UserScript==
// @name         91porny|九色视频助手
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  jiuse|91PORNY|九色视频|自动跳转HD高清视频|获取视频下载链接
// @author       moeote
// @match        https://91porny.com/video/view/*
// @match        https://jiuse*.com/video/view/*
// @match        https://jiuse.vip/video/view/*
// @match        https://91porny.com/video/viewhd/*
// @match        https://jiuse*.com/video/viewhd/*
// @match        https://jiuse.vip/video/viewhd/*
// @icon         https://www.google.com/s2/favicons?domain=91porny.com
// @home-url     https://greasyfork.org/zh-CN/scripts/437662-91porny-%E4%B9%9D%E8%89%B2%E8%A7%86%E9%A2%91%E5%8A%A9%E6%89%8B
// @license      MIT
// @grant        none
// ==/UserScript==
(function() {
    'use strict';

    // 自动跳转HD高清视频
    var url = window.location.href;
    if(url.search("/view/") != -1) {
        var replaceUrl = url.replace("/view/", "/viewhd/");
        console.log(replaceUrl)
        window.location.href = replaceUrl;
    }

    // 获取视频下载链接
    var u = document.querySelector("#video-play").dataset.src;
    var n = document.querySelector("#videoShowPage > div:nth-child(1) > div > h4").innerText;
    var l = "C:\\Apps\\N_m3u8DL-CLI_v2.9.7_with_ffmpeg_and_SimpleG\\N_m3u8DL-CLI_v2.9.7.exe \"" + u + "\" --workDir \"C:\\Apps\\N_m3u8DL-CLI_v2.9.7_with_ffmpeg_and_SimpleG\\Downloads\" --saveName \"" + n + "\" --enableDelAfterDone --disableDateInfo --noProxy";
    console.log(u)
    var a=document.createElement("input");
    a.value = l;
    document.querySelector("div.videoInfos.d-flex.text-normal.justify-content-between.align-items-center").appendChild(a);
})();