@@ -232,40 +232,27 @@ export const buttonContributions: ButtonContributionParams[] = [
232
232
id : "gl-merge-request" ,
233
233
exampleUrls : [ "https://gitlab.com/svenefftinge/browser-extension-test/-/merge_requests/1" ] ,
234
234
match : / \/ m e r g e _ r e q u e s t s \/ / ,
235
- selector : "body[data-project-id] div.detail-page-header-actions.is- merge-request > div " ,
236
- containerElement : createElement ( "div" , { marginLeft : "8px" , marginRight : "-8px" } ) ,
235
+ selector : "#content-body > div.merge-request .js-issuable-actions " ,
236
+ containerElement : createElement ( "div" , { } ) ,
237
237
application : "gitlab" ,
238
- insertBefore : "body[data-project-id] div.detail-page-header-actions.is-merge-request > div > div " ,
238
+ insertBefore : "#content-body > div.merge-request .js-issuable-actions > div.dropdown.gl-dropdown " ,
239
239
manipulations : [
240
240
{
241
241
// make the clone button secondary
242
242
element :
243
- "#content-body > div.merge-request > div.detail-page-header.border-bottom-0.gl-display-block.gl-pt-5.gl-sm-display-flex\\!.is-merge-request > div.detail-page-header-actions.gl-align-self-start.is-merge-request. js-issuable-actions.gl-display-flex > div > div.gl-sm-ml-3 .dropdown.gl-dropdown > button" ,
243
+ "#content-body > div.merge-request . js-issuable-actions > div.dropdown.gl-dropdown > button" ,
244
244
remove : "btn-confirm" ,
245
245
} ,
246
246
] ,
247
247
} ,
248
248
{
249
249
id : "gl-issue" ,
250
250
exampleUrls : [ "https://gitlab.com/svenefftinge/browser-extension-test/-/issues/1" ] ,
251
- match : / \/ i s s u e s \/ / ,
252
- selector :
253
- "#content-body > div.issue-details.issuable-details.js-issue-details > div.detail-page-description.content-block.js-detail-page-description.gl-pt-3.gl-pb-0.gl-border-none > div:nth-child(1) > div > div.gl-flex.gl-items-start.gl-flex-col.md\\:gl-flex-row.gl-gap-3.gl-pt-3 > div" ,
251
+ match : / \/ i s s u e s (?: \/ \d + | \? ) / ,
252
+ selector : "#content-body [data-testid='detail-wrapper'] > div > div:has(div > [data-testid='work-item-actions-dropdown'])" ,
254
253
containerElement : createElement ( "div" , { marginLeft : "0" , marginRight : "0px" } ) ,
255
254
application : "gitlab" ,
256
- insertBefore : "#new-actions-header-dropdown" ,
257
- manipulations : [
258
- {
259
- element :
260
- "#content-body > div.issue-details.issuable-details.js-issue-details > div.detail-page-description.content-block.js-detail-page-description.gl-pt-3.gl-pb-0.gl-border-none > div.js-issue-widgets > div > div > div.new-branch-col.gl-font-size-0.gl-my-2 > div > div.btn-group.available > button.gl-button.btn.btn-md.btn-confirm.js-create-merge-request" ,
261
- remove : "btn-confirm" ,
262
- } ,
263
- {
264
- element :
265
- "#content-body > div.issue-details.issuable-details.js-issue-details > div.detail-page-description.content-block.js-detail-page-description.gl-pt-3.gl-pb-0.gl-border-none > div.js-issue-widgets > div > div > div.new-branch-col.gl-font-size-0.gl-my-2 > div > div.btn-group.available > button.gl-button.btn.btn-icon.btn-md.btn-confirm.js-dropdown-toggle.dropdown-toggle.create-merge-request-dropdown-toggle" ,
266
- remove : "btn-confirm" ,
267
- } ,
268
- ] ,
255
+ insertBefore : "#content-body [data-testid='detail-wrapper'] > div > div:has(div > [data-testid='work-item-actions-dropdown']) > div" ,
269
256
} ,
270
257
271
258
// GitHub
0 commit comments