open link in new window - Trello

Open the link in card description from new window.

目前为 2018-04-13 提交的版本。查看 最新版本

// ==UserScript==
// @name         open link in new window - Trello
// @namespace    
// @version      0.1.0
// @license      MPL-2.0
// @description  Open the link in card description from new window. 
// @author       c4r
// @match        https://trello.com/c/*
// @require      https://code.jquery.com/jquery-latest.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function addTarget() {
        let objContent = $("div.description-content > div.current");


        // console.log(objContent);
    
        let objUrl = $(objContent).find( "a[href^='http']" );
        
        $(objUrl).each(function(index, element){
    
    
            $(element).attr("target",$(element).attr("href"));
    
        })
    }


    $( document ).ready(() =>{

        addTarget();
                    
    });

})();

QingJ © 2025

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