-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add clean-conversation-headers feature
#3408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clean-conversation-headers feature
#3408
Conversation
clean-conversation-headers feature
|
|
|
Your hiding it or removing it? |
Actually remove it I'm thinking about if you |
|
That will break a few features |
|
Actually it's slicing and replacing, it should not affect existing features (except the switch base one I mentioned)
See the screenshot it's still working |
|
Note the PR author is always shown if you are not on the conversation list About the screenshot, there are too many situations to show, maybe just pick some from #3089? |
Use a PR and make a before/after view of the header |
|
I hope to see this merged soon! |
|
😁 Yeah I will finish these PR today (or tomorrow), just submitted 3 PR to different icon extensions fixing compatibility with Refined GitHub. |
fregante
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested it yet, but the rest seems ok
|
|
||
| // Removes: [octocat opened this issue on 1 Jan] · 1 comments | ||
| for (const node of Array.from(childNodes).slice(0, 4)) { | ||
| node.remove(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's best to also hide this
| node.remove(); | |
| node.hidden = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I think that many features using |
fregante
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work great! except waitForDomReady
Can you (always) provide testing links? Especially for rare situations like non-default base branch PRs
|
I get refined-github.js:18097 Uncaught (in promise) TypeError: Cannot read property 'textContent' of null
at getBranches (refined-github.js:18097)
at MutationObserver.addButton (refined-github.js:18152)
getBranches @ refined-github.js:18097
addButton @ refined-github.js:18152
childList (async)
(anonymous) @ updatable-content.ts:79
he @ scroll-anchoring.esm.js:43
me @ scroll-anchoring.esm.js:2
ve @ updatable-content.ts:60
u @ updatable-content.ts:39
async function (async)
u @ updatable-content.ts:24
setTimeout (async)
(anonymous) @ updatable-content-observer.ts:22
cs @ socket-channel.ts:43
receive @ socket-channel.ts:93
AliveSessionProxy.worker.port.onmessage @ socket-channel.ts:61refined-github.js:7305 Uncaught TypeError: Cannot read property 'textContent' of null
at add (refined-github.js:7305)
at runAdd (refined-github.js:3558)
at applyChanges (refined-github.js:3474)
at SelectorObserver.handleRootMutations (refined-github.js:4000)When I open a new pr and I get errors if you switch tabs too quickly |
Late reply: I forgot to include the URL when I uploaded the screenshots 😅 already added them to make future debug easier |
|
Thanks! Especially when adding new features, PRs serve as documentation for the feature, so it's great to be able to open the original PR and instantly see what it was supposed to look like and where exactly |



Resolves #3089
Open issue
Test:
https://github.com/sindresorhus/refined-github/issues/14Note: if someone just created a PR to close the issue or someone edited currently displayed PR, GitHub will update the header and this feature won't reapply
Open issue with pending PR
Test:
https://github.com/sindresorhus/refined-github/issues/343Closed issue
Test:
https://github.com/sindresorhus/refined-github/issues/3370Open PR (to default branch)
Test:
https://github.com/sindresorhus/refined-github/pull/3227Open PR (to non-default branch)
Test:
https://github.com/Kenshin/simpread/pull/698Merged PR (same author, to default branch)
Test:
https://github.com/sindresorhus/refined-github/pull/3402Merged PR (different author, to default branch)
Test:
https://github.com/sindresorhus/refined-github/pull/3033