2014-03-05 68 views

回答

0

我還沒有得到這一個「正確」的答案,但我已經創建了一個腳本的GreaseMonkey躲我不需要在意此刻的模塊。

// ==UserScript== 
// @name  My Fancy New Userscript 
// @namespace http://use.i.E.your.homepage/ 
// @version 0.1 
// @description enter something useful 
// @match  http://10.187.72.999:9000/measures/filter/4?display=list 
// @copyright 2012+, You 
// ==/UserScript== 
function addJQuery(callback) { 
    var script = document.createElement("script"); 
    script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.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); 
} 

// the guts of this userscript 
function main() { 
    // Note, jQ replaces $ to avoid conflicts. 
    jQ('a[href$="28555"]').parent().parent().remove(); //projectA 
    jQ('a[href$="20094"]').parent().parent().remove(); //projectB 
    jQ('a[href$="21139"]').parent().parent().remove(); //projectC 

// alert("There are " + jQ('a').length + " links on this page."); 
} 

// load jQuery and execute the main function 
addJQuery(main); 
0

不,這是不可能的。順便說一句,只有一個獨特版本的SonarQube是開源的。

相關問題