TrelloLess by zhuhang

Remove unwanted Trello cosmetic stuffs

目前為 2018-08-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name         TrelloLess by zhuhang
// @namespace    https://gf.qytechs.cn/en/users/200777
// @version      1.0
// @description  Remove unwanted Trello cosmetic stuffs
// @author       zhuhang.jasper
// @match        https://trello.com/b/*/*
// @grant        none
// ==/UserScript==

// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
  var script = document.createElement("script");
  script.setAttribute("src", "//code.jquery.com/jquery-1.12.4.min.js");
  script.addEventListener('load', function() {
    var script = document.createElement("script");
    script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
    document.body.appendChild(script);
  }, false);
  document.body.appendChild(script);
}

// Main Logic
function main() {
    // Hide Trello colon symbol from custom field badge
    $('span .badge-text').each(function(){$(this).html($(this).html().replace(":",""))});
}

// Script jQuery Wrapper
(function() {
    'use strict';
    addJQuery(main);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址