您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
hello?
// ==UserScript== // @name speedrun parse table // @namespace test // @version 0.1 // @description hello? // @author me // @include https://www.speedrun.com/* // ==/UserScript== document.onkeydown = function(e) { if (e.key === 'q') { var data = []; $("#leaderboarddiv").children('table').children('tbody').children().slice(1).each(function(){ var output = []; output.push({ "rank": $(this).children('td:eq(0)').text().trim(), "player": $(this).children('td:eq(1)').text(), "real_time": $(this).children('td:eq(3)').text(), "game_time": $(this).children('td:eq(3)').text(), "version": $(this).children('td:eq(5)').text(), "link": "https://www.speedrun.com" + $(this).data("target") }); data.push(output); }); alert(JSON.stringify(data)); } };