From b21579bff92780223967b01800103e4d3523fe0a Mon Sep 17 00:00:00 2001 From: Milos Date: Sun, 5 Apr 2015 22:47:43 +0200 Subject: [PATCH 1/5] Added Drupal.org --- README.md | 1 + trello_bookmarklet.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index efbbf4e..42fcc2b 100755 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ This is a bookmarklet you - FogBugz cases - JIRA issues - GitHub issues and commits + - Drupal.org issues - The selected text from an arbitrary URL - ... more? I'm happy to take pull requests that add support for other websites! diff --git a/trello_bookmarklet.js b/trello_bookmarklet.js index 781df94..3dd0955 100755 --- a/trello_bookmarklet.js +++ b/trello_bookmarklet.js @@ -43,6 +43,12 @@ // We're looking at a GitHub commit name = $(".js-current-repository").text().trim() + ": " + $(".commit .commit-title").text().trim(); + } else if ($("#block-project-issue-issue-metadata").length) { + + // We're looking at a Drupal.org issue + name = "[" + $(".field-name-field-project .field-item").text().trim() + "] " + $("#page-subtitle").text().trim(); + desc = "Issue: " + location.href; + } else if (jQuery('head meta[content=Redmine]').length) { // We're looking at a redmine issue From 84cb65cd51c8817c34dbba9503af2a99307654c1 Mon Sep 17 00:00:00 2001 From: Milos Date: Sun, 5 Apr 2015 23:08:06 +0200 Subject: [PATCH 2/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 42fcc2b..8257ea0 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ```javascript -javascript:(function(a){window.trelloAppKey="optional";window.trelloIdList="optional";var b=a.createElement("script");b.src="https://raw.github.com/danlec/Trello-Bookmarklet/master/trello_bookmarklet.js";a.getElementsByTagName("head")[0].appendChild(b)})(document); +javascript:(function(a){window.trelloAppKey="optional";window.trelloIdList="optional";var b=a.createElement("script");b.src="https://cdn.rawgit.com/fantastic91/Trello-Bookmarklet/master/trello_bookmarklet.js";a.getElementsByTagName("head")[0].appendChild(b)})(document); ``` This is a bookmarklet you can use to create a card in Trello from ... @@ -32,4 +32,4 @@ and prepending `javascript:` to the front. If you'd rather not add your appKey and idList for every new domain, you can modify the bookmarklet and include values for `window.trelloAppKey` and `window.trelloIdList` (currently both have the value `"optional"`) -**Note:** This basic concept originated with https://github.com/markdrago/cardorizer; this approach doesn't require you to run a server \ No newline at end of file +**Note:** This basic concept originated with https://github.com/markdrago/cardorizer; this approach doesn't require you to run a server From fc2b3bf26aec7528501c0c6971c833bdc3955a1c Mon Sep 17 00:00:00 2001 From: Milos Date: Mon, 6 Apr 2015 12:47:19 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8257ea0..489a65e 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ```javascript -javascript:(function(a){window.trelloAppKey="optional";window.trelloIdList="optional";var b=a.createElement("script");b.src="https://cdn.rawgit.com/fantastic91/Trello-Bookmarklet/master/trello_bookmarklet.js";a.getElementsByTagName("head")[0].appendChild(b)})(document); +javascript:(function(a){window.trelloAppKey="optional";window.trelloIdList="optional";var b=a.createElement("script");b.src="https://raw.github.com/danlec/Trello-Bookmarklet/master/trello_bookmarklet.js";a.getElementsByTagName("head")[0].appendChild(b)})(document); ``` This is a bookmarklet you can use to create a card in Trello from ... @@ -22,7 +22,7 @@ issues/cases/whatever directly to Trello in a single click. The card created in Trello will -- attempt to use the name of the FogBugz/JIRA/GitHub/etc case +- attempt to use the name of the FogBugz/JIRA/GitHub/Drupal/etc case - include a link to the case in the card description - (optionally) include any selected text in the description From f18a92a5d289395a21dc023c4e60e523bd464541 Mon Sep 17 00:00:00 2001 From: Milos Date: Mon, 6 Apr 2015 12:48:21 +0200 Subject: [PATCH 4/5] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 489a65e..2cf9601 100755 --- a/README.md +++ b/README.md @@ -32,4 +32,3 @@ and prepending `javascript:` to the front. If you'd rather not add your appKey and idList for every new domain, you can modify the bookmarklet and include values for `window.trelloAppKey` and `window.trelloIdList` (currently both have the value `"optional"`) -**Note:** This basic concept originated with https://github.com/markdrago/cardorizer; this approach doesn't require you to run a server From 1b586591482ead137eee288ee919ba243db4ab8c Mon Sep 17 00:00:00 2001 From: Milos Date: Mon, 6 Apr 2015 12:49:42 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2cf9601..489a65e 100755 --- a/README.md +++ b/README.md @@ -32,3 +32,4 @@ and prepending `javascript:` to the front. If you'd rather not add your appKey and idList for every new domain, you can modify the bookmarklet and include values for `window.trelloAppKey` and `window.trelloIdList` (currently both have the value `"optional"`) +**Note:** This basic concept originated with https://github.com/markdrago/cardorizer; this approach doesn't require you to run a server