Skip to content

Add unhide-reactions-on-mobile feature - #6182

Merged
fregante merged 1 commit into
refined-github:mainfrom
jtagcat:unhide-reactions-on-mobile
Dec 11, 2022
Merged

fregante merged 1 commit into
refined-github:mainfrom
jtagcat:unhide-reactions-on-mobile

Conversation

@jtagcat

@jtagcat jtagcat commented Dec 4, 2022 •

Copy link
Copy Markdown

Closes #6161

Test URLs

#6161

Firefox users have to set layout.css.has-selector.enabled to true in about:config (https://developer.mozilla.org/en-US/docs/Web/CSS/:has#browser_compatibility).

Screenshot

demo

Tested

On Google Play Store version of Firefox Nightly for Developers, version 109.0a1.
With npx web-ext run -t firefox-android --adb-device <use adb devices> --firefox-apk org.mozilla.fenix

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 💚

Comment thread readme.md Resolved
@jtagcat
jtagcat requested a review from fregante December 4, 2022 14:11
@jtagcat jtagcat mentioned this pull request Dec 4, 2022
3 tasks
@yakov116 yakov116 changed the title Add unhide-reactions-on-mobile Add unhide-reactions-on-mobile feature Dec 4, 2022

@fregante fregante left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a h4 { color red; } as an initial test. With isIssueOrPRList, it should not affect the login page..?

I just remembered why. All CSS is always imported. For addCssFeature to work, you have to use .rgh-* in every selector. Refer to other features that use addCssFeature

But in this case we don't need this at all, it's a small CSS bugfix that does not need to be "disableable".

Changes required:

  • Delete .tsx file
  • Import .css in refined-github.ts and move it to the right place
  • Probably revert the changes to the readme as well if CI fails

@jtagcat

jtagcat commented Dec 4, 2022 •

Copy link
Copy Markdown
Author

Tested (again) working on a mobile device.

@fregante
fregante merged commit e22963a into refined-github:main Dec 11, 2022
@jtagcat
jtagcat deleted the unhide-reactions-on-mobile branch December 11, 2022 10:44
@fregante

fregante commented Feb 2, 2023

Copy link
Copy Markdown
Member

Love your screenshot by the way.

Are there other features hidden on mobile that you find useful? I think I always need something else but never open an issue when I do 😳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Mobile reactions / emoji button in comments

3 participants