Skip to content

Commit 40f83e7

Browse files
authored
:has selector support for Firefox (#125)
1 parent c326405 commit 40f83e7

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
<a href="https://chrome.google.com/webstore/detail/github-red-issues/kjbbjibfgnnfdeabgmbieapkhpojikpc"><img alt="Opera" width="48" valign="middle" src="https://raw.githubusercontent.com/KatsuteDev/GitHub-Red-Issues/main/assets/opera.svg"></a>
3030
<a href="https://chrome.google.com/webstore/detail/github-red-issues/kjbbjibfgnnfdeabgmbieapkhpojikpc"><img alt="Chrome Web Store" valign="middle" src="https://img.shields.io/chrome-web-store/v/kjbbjibfgnnfdeabgmbieapkhpojikpc?label=%20&style=flat-square&color=4285F4"></a>
3131

32-
#### Firefox*
32+
#### Firefox
33+
34+
<sup><i>requires Firefox 121 or higher</i></sup>
3335

3436
<a href="https://addons.mozilla.org/firefox/addon/github-red-issues"><img alt="Mozilla Firefox" width="48" valign="middle" src="https://raw.githubusercontent.com/KatsuteDev/GitHub-Red-Issues/main/assets/firefox.svg"></a>
3537
<a href="https://addons.mozilla.org/firefox/addon/github-red-issues"><img alt="Mozilla Add-on" valign="middle" src="https://img.shields.io/amo/v/github-red-issues?label=%20&style=flat-square&color=FF7139"></a>
3638

37-
<small>* <code>layout.css.has-selector.enabled</code> must be enabled in <code>about:config</code></small>
38-
3939
### Changes
4040

4141
Reverts closed issues from purple to red on:

src/manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "GitHub Red Issues",
55
"author": "Katsute",
66
"description": "Revert closed GitHub issues from purple back to red.",
7-
"version": "7.4",
7+
"version": "8.0",
88
"homepage_url": "https://github.com/KatsuteDev/GitHub-Red-Issues",
99
"icons": {
1010
"16": "icon16.png",
@@ -15,7 +15,8 @@
1515
"minimum_chrome_version": "105",
1616
"browser_specific_settings": {
1717
"gecko": {
18-
"id": "{3e7882e9-4411-4136-9c76-8fddc57c8d87}"
18+
"id": "{3e7882e9-4411-4136-9c76-8fddc57c8d87}",
19+
"strict_min_version": "121.0"
1920
}
2021
},
2122

src/style.css

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,6 @@
66
--rissue-issue-closed-bg : var(--color-danger-subtle, rgba(248, 81, 73, 0.1));
77
}
88

9-
@supports not selector(:has(+ *)) {
10-
11-
body::before {
12-
13-
width: 100%;
14-
z-index: 1000;
15-
display: block;
16-
position: fixed;
17-
18-
color: white;
19-
background-color: var(--rissue-issue-closed-fg);
20-
21-
padding: .1rem;
22-
content: "⚠️ Firefox does not yet support the :𝚑𝚊𝚜 CSS selector, enable it using the 𝚕𝚊𝚢𝚘𝚞𝚝.𝚌𝚜𝚜.𝚑𝚊𝚜-𝚜𝚎𝚕𝚎𝚌𝚝𝚘𝚛.𝚎𝚗𝚊𝚋𝚕𝚎𝚍 flag in 𝚊𝚋𝚘𝚞𝚝:𝚌𝚘𝚗𝚏𝚒𝚐 and restart Firefox.";
23-
24-
}
25-
26-
}
27-
289
:not(react-app[app-name="repo-deployments"] div) > :not(span.State--merged, projects-v2 span[class^="StateLabel__StateLabelBase"], projects-v2 .TimelineItem-Badge, .TimelineItem-badge, a[href*="/discussions"], .hx_anim-fade-out) > :is(
2910
/* issue icon */
3011
svg.octicon-issue-closed,

0 commit comments

Comments
 (0)