Skip to content

Commit 447de7e

Browse files
committed
feat: hide comments from codeflow bot
1 parent 3145656 commit 447de7e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818

1919
const id = 'open-in-codeflow'
2020

21+
const css = [
22+
// Hide comments from codeflow bot
23+
'.js-timeline-item:has(* > .author[href="/apps/codeflowapp"]) { display: none; }',
24+
].join('')
25+
26+
const style = document.createElement('style')
27+
style.innerHTML = css
28+
document.head.appendChild(style)
29+
2130
function createButton() {
2231
const a = document.createElement('a')
2332
a.href = location.href.replace('https://github.com/', 'https://pr.new/')

0 commit comments

Comments
 (0)