Greasy Fork is available in English.
需开启everthing的http服务,默认端口80。在视频链接后面加上后缀 ?t=30 ,那么进入视频链接就会自动跳转到30秒。
当前为
// ==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;
})();