diff --git a/README.md b/README.md index 7c05fab..ebc0bbd 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ ## Jira Hot Linker -A simple Chrome plugin that will show Jira metadata when hovering over a Jira issue key on github. +A Chrome plugin that will show Jira metadata when hovering over a Jira issue key on github. Now available trough the Chrome Store ! https://chrome.google.com/webstore/detail/jira-hotlinker/lbifpcpomdegljfpfhgfcjdabbeallhk -Make sure to configure your Jira instance url in the options page after installing. +Make sure to configure your Jira instance url in the options page after installing. +You can find the settings by clicking on the extensions icon and selecting options ! -[Click here to open the options page after installing the plugin !](https://chrome.google.com/webstore/detail/jira-hotlinker/lbifpcpomdegljfpfhgfcjdabbeallhk) - -You can also find the settings by clicking on the extensions icon and selecting options ! +The tooltip is enabled on github.com by default, +you can add new domains by clicking on the extension icon or in the option menu. ### Features - Title and link to Jira @@ -18,3 +18,4 @@ You can also find the settings by clicking on the extensions icon and selecting - Attachments - Ticket Type / Status / Priority - Comments +- Pin a ticket on the screen by dragging the title diff --git a/jira-plugin/manifest.json b/jira-plugin/manifest.json index dc57deb..a75b380 100644 --- a/jira-plugin/manifest.json +++ b/jira-plugin/manifest.json @@ -1,7 +1,7 @@ { "name": "Jira HotLinker", "description": "Jira HotLinker, quick access to Jira metadata when hovering over ticket numbers!", - "version": "1.4.6", + "version": "1.5.0", "manifest_version": 2, "icons": { "128": "resources/jiralink128.png" diff --git a/jira-plugin/src/background.js b/jira-plugin/src/background.js index d72586f..0c1e15a 100644 --- a/jira-plugin/src/background.js +++ b/jira-plugin/src/background.js @@ -15,12 +15,6 @@ const executeScript = promisifyChrome(chrome.tabs, 'executeScript'); resetDeclarativeMapping(); }); - chrome.runtime.onMessage.addListener(function (request) { - if (request.type === 'open_settings') { - chrome.runtime.openOptionsPage(); - } - }); - chrome.browserAction.onClicked.addListener(async function (tab) { const config = await storageGet(defaultConfig); if (!config.instanceUrl) { diff --git a/jira-plugin/src/content.jsx b/jira-plugin/src/content.jsx index 77dadba..9f2eab3 100644 --- a/jira-plugin/src/content.jsx +++ b/jira-plugin/src/content.jsx @@ -47,12 +47,6 @@ async function mainAsyncLocal() { const draggable = require('jquery-ui/ui/widgets/draggable'); const config = await getConfig(); - if (document.location.href.startsWith('https://github.com/helmus/Jira-Hot-Linker')) { - $('#readme').find('a:contains(Click here to open)').on('click', (e) => { - e.preventDefault(); - chrome.runtime.sendMessage({type: 'open_settings'}); - }); - } const INSTANCE_URL = config.instanceUrl; const jiraProjects = await $.get(await getInstanceUrl() + 'rest/api/2/project');