您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
先把评论加载出来,按t就能在评论区插入时间戳,并接着输入内容了。
当前为
// ==UserScript== // @name bilibili 评论时间戳 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 先把评论加载出来,按t就能在评论区插入时间戳,并接着输入内容了。 // @author You // @match https://www.bilibili.com/video/* // @icon https://www.google.com/s2/favicons?domain=bilibili.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; document.addEventListener('keypress', function(e){ console.log(e); if(e.keyCode === 116) { e.preventDefault(); console.log(e.target.value); var time = document.querySelectorAll('.bilibili-player-video-time-now')[0].innerHTML; var comment = document.querySelectorAll('.ipt-txt')[0]; comment.value = time + ' '; comment.focus(); } }) // Your code here... })();