您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes all the tables sortable
// ==UserScript== // @name Reddit Table Sort // @author sharadcodes // @version 1.0.3 // @namespace https://sharadcodes.github.io // @supportURL https://github.com/sharadcodes/UserScripts/issues // @match *://*reddit.com/* // @include https://*.reddit.com/* // @include https://reddit.com/* // @description Makes all the tables sortable // @license MIT // @grant GM_xmlhttpRequest // ==/UserScript== window.onload = function() { var JS_SCRIPTS = [ 'https://sharadcodes.github.io/UserScripts/COMMON/js/libs/sortable.js' ] JS_SCRIPTS.forEach(function(js_script) { GM_xmlhttpRequest( { method: 'GET', url: js_script + '?time=' + Date.now(), onload: function(response) { var custom_js_script = document.createElement('script'); custom_js_script.textContent = response.responseText document.head.appendChild(custom_js_script); document.querySelectorAll('table').forEach(function(table) { table.setAttribute('data-sortable',''); table.querySelector('thead').style.cursor = 'pointer'; Sortable.init(); }) } } ); }) }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址