Greasy Fork

Greasy Fork is available in English.

Everything视频时间戳

需开启everthing的http服务,默认端口80。在视频链接后面加上后缀 ?t=30 ,那么进入视频链接就会自动跳转到30秒。

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

// ==UserScript==
// @name         Everything视频时间戳
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  需开启everthing的http服务,默认端口80。在视频链接后面加上后缀 ?t=30 ,那么进入视频链接就会自动跳转到30秒。
// @author       openAI
// @match        http://localhost/*
// @match        http://127.0.0.1/*
// @icon         https://www.voidtools.com/e2.png
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    //获取url参数
    const paramsStr = window.location.search
    const params = new URLSearchParams(paramsStr)
    const seconds = parseInt(params.get('t'))

    //进度条跳转
    let myVideo = document.getElementsByTagName("video")[0]
    myVideo.currentTime = seconds;
})();