-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Restore copy-on-y
and enable it on every page
#6252
Conversation
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.
We added the filters at a time when we were trying to limit the features not to run on every page.
const url = location.href; | ||
await navigator.clipboard.writeText(url); | ||
// Log to ensure we're coping the new URL | ||
console.log('Copied URL to the clipboard', url); |
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.
Your keeping this here?
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.
Yes for now:
- could be helpful if suddenly this starts copying the non-permalinked URL
- we're not giving any feedback that this feature is doing anything
- the log only appears in rare situations, i.e. when the user does tap Y
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.
Why not use the logger function?
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.
Laziness to check how that worked 😂
Will do 🚀
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.
We don't seem to use features.log.info
anywhere except "show features that are run on the page", it doesn't seem strictly related to this type of logging. Given this is user feedback, I'd still keep it here unconditionally
Not in this instance, the filter was always here: |
copy-on-y
broken #6210Over the years I've come to expect "copy on y" on any page so I think it wouldn't be too bad to actually enable it site-wide.
Thoughts?

Test URLs
Literally any page, including:
https://github.com/refined-github/refined-github/blob/main/source/features/hide-diff-signs.css