diff options
author | 2020-01-05 08:30:46 +0100 | |
---|---|---|
committer | 2020-01-05 14:30:46 +0700 | |
commit | 2da1e9c8b381cb2c872c7cda3cabf086c9f50b22 (patch) | |
tree | 532dc46ca3cdf6c60807ff515d5f53b822c1d631 | |
parent | 3a147d93426f4ed41183434e7eff4e90b2cee1c7 (diff) | |
download | refined-github-2da1e9c8b381cb2c872c7cda3cabf086c9f50b22.tar.gz refined-github-2da1e9c8b381cb2c872c7cda3cabf086c9f50b22.tar.zst refined-github-2da1e9c8b381cb2c872c7cda3cabf086c9f50b22.zip |
Fix `filter-comments-by-you` link on PR list page (#2655)
-rw-r--r-- | source/features/filter-comments-by-you.tsx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/source/features/filter-comments-by-you.tsx b/source/features/filter-comments-by-you.tsx index 51d7bb0c..31527203 100644 --- a/source/features/filter-comments-by-you.tsx +++ b/source/features/filter-comments-by-you.tsx @@ -6,16 +6,14 @@ import {getUsername, getRepoURL} from '../libs/utils'; const repoUrl = getRepoURL(); function init(): void { - select('.subnav-search-context li:last-child')! + select('.subnav-search-context .SelectMenu-list a:last-child')! .before( - <li> - <a - href={`/${repoUrl}/issues?q=is%3Aopen+commenter:${getUsername()}`} - className="select-menu-item" - role="menuitem"> - Everything commented by you - </a> - </li> + <a + href={`/${repoUrl}/issues?q=is%3Aopen+commenter:${getUsername()}`} + className="SelectMenu-item" + role="menuitem"> + Everything commented by you + </a> ); } |