File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 9
9
// @run -at document-idle
10
10
// @grant GM_getValue
11
11
// @grant GM_setValue
12
+ // @grant GM_addStyle
12
13
// @require https://greasyfork.org/scripts/28721-mutations/code/mutations.js?version=597950
13
14
// @icon https://assets-cdn.github.com/pinned-octocat.svg
14
15
// @updateURL https://raw.githubusercontent.com/Mottie/GitHub-userscripts/master/github-files-filter.user.js
17
18
( ( ) => {
18
19
"use strict" ;
19
20
21
+ // Emphasize selected buttons, disable hover when all selected and remove
22
+ // animation delay; See #46
23
+ GM_addStyle ( `
24
+ .gff-filter .btn.selected { font-variant: small-caps; }
25
+ .gff-filter .gff-all:not(.selected):hover,
26
+ .gff-filter .gff-all:not(.selected) ~ .btn:hover,
27
+ .gff-filter .gff-all:not(.selected) ~ .btn.selected:hover {
28
+ border-color: #777 !important;
29
+ }
30
+ .gff-filter .btn:before, .gff-filter .btn:after {
31
+ animation-delay: unset !important;
32
+ filter: invert(10%);
33
+ }
34
+ ` ) ;
35
+
20
36
let settings ,
21
37
list = { } ;
22
38
const types = {
You can’t perform that action at this time.
0 commit comments