您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Move TFOOT above TBODY on filter edit pages
当前为
// ==UserScript== // @name Mastodon Filter TFOOT Fixer // @description Move TFOOT above TBODY on filter edit pages // @match https://mastodon.social/filters/*/edit // @version 0.0.1.20250521112838 // @namespace https://gf.qytechs.cn/users/1435046 // ==/UserScript== function runTableFix() { if (!/^\/filters\/\d+\/edit$/.test(location.pathname)) return; const anchor = document.querySelector('a.add_fields'); if (!anchor) return; // Switch to prepend anchor.setAttribute('data-association-insertion-method', 'prepend'); const originalTfoot = anchor.closest('tfoot'); if (!originalTfoot) return; const table = originalTfoot.closest('table'); const thead = table && table.querySelector('thead'); if (!table || !thead) return; // Clone the <tfoot>, remove the original… const clonedTfoot = originalTfoot.cloneNode(true); originalTfoot.remove(); // …but force it to display as a row-group so it appears above the tbody clonedTfoot.style.display = 'table-row-group'; // Insert the cloned footer right after the thead thead.insertAdjacentElement('afterend', clonedTfoot); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址