There is a wonderful service called Toggl that lets you track time across different issue trackers, or without any trackers at all. Unfortunately, the Google Chrome extension that adds automatic buttons to tracker issues does not work everywhere you would like. For example, it will work if you buy Jira in the cloud (.atlassian.net), but it will not lift a finger if you have Jira on your own server (jira..com). No matter, there is a way out, and it is quite simple.
git clone https://github.com/toggl/toggl-button
cd toggl-button
nano src/manifest.json
You need to add lines to permissions and content_scripts:
...
"permissions": [
"tabs",
...
"*://myawesomeredmine.com/*",
"*://jira.myawesomesite.com/*"
],
...
"content_scripts": [
{
"matches": [
...
"*://myawesomeredmine.com/*",
"*://jira.myawesomesite.com/*"
],
...
{
"matches": ["*://myawesomeredmine.com/*"],
"js": ["scripts/content/redmine.js"]
},
{
"matches": ["*://jira.myawesomesite.com/*"],
"js": ["scripts/content/jira.js"]
}
]
...
That is enough. The resulting version can be installed directly unpacked, in developer mode, or packed and installed in the usual way.