This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "bugzillathis", | |
icon:"http://www.geckozone.org/favicon.ico", | |
takes: {"input": noun_arb_text}, | |
homepage: "http://gist.github.com/61813", | |
author: { name: "A.BLANC", email: "amau96@gmail.com"}, | |
license: "MPL", | |
description: "quick link to bugzilla", | |
preview: function(previewBlock,input) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//fonction to transform link | |
function processNode() { | |
var href = jQuery(this).attr("href"); | |
if(/[a-z]\:\/\//.exec(href) === null) { | |
if(href[0] == "/") | |
jQuery(this).attr("href", "http://www.imdb.com" + href); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//fonction to transform link | |
function processNode() { | |
var href = jQuery(this).attr("href"); | |
if(/[a-z]\:\/\//.exec(href) === null) { | |
if(href[0] == "/") | |
jQuery(this).attr("href", "http://thepiratebay.org" + href); | |
} | |
} | |