Skip to content

Commit

Permalink
feat: Freedcamp integration
Browse files Browse the repository at this point in the history
  • Loading branch information
lewebsimple authored and with-shrey committed Mar 18, 2024
1 parent 291f01c commit 6049d14
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/content/freedcamp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';

togglbutton.render(
'.todo_wrapper',
{ observe: false },
function (elem) {
const projectElem =
$('.task_project_link', elem.parentElement.previousElementSibling) ||
$('.fc_header .project_name');
const descriptionElem = $('.td_description', elem);
const contentElem = $('.td_content', elem);
const link = togglbutton.createTimerLink({
buttonType: 'minimal',
className: 'freedcamp',
projectName: projectElem.textContent,
description: descriptionElem.textContent
});
contentElem.appendChild(link);
}
);
4 changes: 4 additions & 0 deletions src/origins.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ export default {
url: '*://*.fogbugz.com/*',
name: 'Fogbugz'
},
'freedcamp.com': {
url: '*://*.freedcamp.com/*',
name: 'Freedcamp'
},
'freshdesk.com': {
url: '*://*.freshdesk.com/*',
name: 'Freshdesk'
Expand Down

0 comments on commit 6049d14

Please sign in to comment.