gokhanmeteerturk / fix-jira-ctrl-c-on-linux

On some linux distros, copy function doesn't work on Jira. This script is an equally nasty solutions to Jira's nasty navigator.clipBoard override.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix "Copy doesn't work on Jira" issue

On some linux machines, copy function doesn't work on Jira.

This script is an equally nasty solutions to Jira's nasty navigator.clipBoard override.

You can inject the js code from solution.js to Jira web pages with the help of an extension like JS Injector or Resource Override for Chrome.

Script basically overrides document.oncopy so when you use ctrl+c or Copy command from the context menu, it memorizes selected text, opens a new window, runs navigator's writeText method with the memorized text and closes the window.

Only tested in Chrome v102 to v109 on Ubuntu machine.

If you use Resource Override extension, https://companyname.atlassian.net/browse/* should be sufficient as the Tab Url (Don't forget the asterix).

About

On some linux distros, copy function doesn't work on Jira. This script is an equally nasty solutions to Jira's nasty navigator.clipBoard override.

License:MIT License


Languages

Language:JavaScript 100.0%