File tree 3 files changed +26
-13
lines changed
3 files changed +26
-13
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * @name Hubspot
3
+ * @urlAlias hubspot.com
4
+ * @urlRegex *://*.atlassian.com/*
5
+ */
1
6
'use strict' ;
2
- /* global togglbutton, $ */
3
7
4
8
togglbutton . render (
5
9
'div[data-selenium-test="ticket-highlight-details"]:not(.toggl)' ,
6
10
{ observe : true } ,
7
11
$container => {
12
+ function descriptionSelector ( ) {
13
+ const $description = $ ( 'div[data-selenium-test="ticket-highlight-details"] h3' ) ;
14
+ return $description . textContent . trim ( ) ;
15
+ }
16
+
17
+ function tagsSelector ( ) {
18
+ const pipeline = $ ( 'div#pipeline-select' ) ? $ ( 'div#pipeline-select' ) . textContent . trim ( ) : '' ;
19
+ const stage = $ ( 'div#stage-select' ) ? $ ( 'div#stage-select' ) . textContent . trim ( ) : '' ;
20
+
21
+ return [ pipeline , stage ] ;
22
+ }
8
23
const link = togglbutton . createTimerLink ( {
9
24
className : 'hubspot' ,
10
25
project : 'Hubspot' ,
@@ -17,15 +32,3 @@ togglbutton.render(
17
32
$container . appendChild ( rowContainer ) ;
18
33
}
19
34
) ;
20
-
21
- function descriptionSelector ( ) {
22
- const $description = $ ( 'div[data-selenium-test="ticket-highlight-details"] h3' ) ;
23
- return $description . textContent . trim ( ) ;
24
- }
25
-
26
- function tagsSelector ( ) {
27
- const pipeline = $ ( 'div#pipeline-select' ) . textContent . trim ( ) ;
28
- const stage = $ ( 'div#stage-select' ) . textContent . trim ( ) ;
29
-
30
- return [ pipeline , stage ] ;
31
- }
Original file line number Diff line number Diff line change @@ -260,6 +260,11 @@ export default {
260
260
url : '*://habitica.com/*' ,
261
261
name : 'Habitica'
262
262
} ,
263
+ 'hubspot.com' : {
264
+ url : '*://app.hubspot.com/*' ,
265
+ name : 'Hubspot' ,
266
+ file : 'hubspot.js'
267
+ } ,
263
268
'app.heflo.com' : {
264
269
url : '*://app.heflo.com/*' ,
265
270
name : 'HEFLO'
Original file line number Diff line number Diff line change @@ -1429,6 +1429,11 @@ body.notion-body.dark .toggl-button.notion {
1429
1429
margin-top : -7px ;
1430
1430
}
1431
1431
1432
+ /******** HUBSPOT ********/
1433
+ .toggl-button .hubspot {
1434
+ margin-top : 10px ;
1435
+ }
1436
+
1432
1437
/********* ZENHUB *********/
1433
1438
.toggl-button .zenhub {
1434
1439
padding-left : 25px ;
You can’t perform that action at this time.
0 commit comments