|
16 | 16 | // @include https://github.com/?* |
17 | 17 | // @include https://github.com/orgs/*/dashboard |
18 | 18 | // @include https://github.com/orgs/*/dashboard?* |
19 | | -// @version 8.2.0 |
| 19 | +// @version 8.2.1 |
20 | 20 | // @grant none |
21 | 21 | // ==/UserScript== |
22 | 22 |
|
|
56 | 56 | ] |
57 | 57 | }, |
58 | 58 | { |
59 | | - id: 'repo', text: 'Repo', icon: 'octicon-repo', classNames: ['create', 'public', 'fork', 'branch_create', 'branch_delete', 'tag_add', 'tag_remove', 'release', 'delete'], subFilters: [ |
60 | | - { id: 'repo created', text: 'Created', icon: 'octicon-repo-create', classNames: ['create'] }, |
| 59 | + id: 'repo', text: 'Repo', icon: 'octicon-repo', classNames: ['repo', 'create', 'public', 'fork', 'branch_create', 'branch_delete', 'tag_add', 'tag_remove', 'release', 'delete'], subFilters: [ |
| 60 | + { id: 'repo created', text: 'Created', icon: 'octicon-repo-create', classNames: ['repo', 'create'] }, |
61 | 61 | { id: 'repo public', text: 'Public', icon: 'octicon-repo-push', classNames: ['public'] }, |
62 | 62 | { id: 'repo forked', text: 'Forked', icon: 'octicon-repo-forked', classNames: ['fork'] }, |
63 | 63 | { id: 'repo deleted', text: 'Deleted', icon: 'octicon-repo-delete', classNames: ['delete'] }, |
|
265 | 265 | var show = classNames.every(function(cl) { return cl.some(function(c) { return !!~c.indexOf('*') || alert.classList.contains(c); }); }); |
266 | 266 | anyVisibleAlert = show || anyVisibleAlert; |
267 | 267 | alert.style.display = show ? 'block' : 'none'; |
| 268 | + // DEBUG: uncomment following line and comment previous line to debug all alerts. |
| 269 | + //if(show) alert.style.display = 'none'; |
268 | 270 | }); |
269 | 271 | } |
270 | 272 |
|
|
0 commit comments