您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Display number in the trello card
// ==UserScript== // @name Display Trello Card Number // @namespace http://tampermonkey.net/ // @version 2024-07-18 // @description Display number in the trello card // @author Yuexie // @match https://trello.com/b/* // @license GPL-3.0 License // @grant none // ==/UserScript== (function() { 'use strict'; function showCardNumbers() { var titleElements = Array.from(document.querySelectorAll('[data-testid="card-name"]')); for(var i in titleElements) { var titleNode = titleElements[i] if (titleNode.getAttribute('card-number')) continue; var href = titleNode.href.split('/'); var id = href[href.length - 1].split('-')[0]; var pNode = document.createElement('p'); pNode.textContent = '#' + id; pNode.style.backgrounColor = 'gray'; titleNode.parentElement.insertBefore(pNode, titleNode); titleNode.setAttribute('card-number', id); } } window.setInterval(function() { showCardNumbers(); },2000); })();