Skip to content

Commit e1e79ce

Browse files
committed
feat(gitlab-mark-viewed): scope @match to gitlab.com and git.vs-point.cz
Previously matched any host with the GitLab MR diff URL shape. Narrow to the two instances actually in use to reduce surface area.
1 parent 228a722 commit e1e79ce

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ the `==UserScript==` header and prompts to install.
1212

1313
| Script | Install | Description |
1414
|---|---|---|
15-
| `gitlab-mark-viewed.user.js` | [install](https://raw.githubusercontent.com/solcik/userscripts/main/gitlab-mark-viewed.user.js) | Press `v` on a GitLab MR diff to toggle the focused file's "Viewed" checkbox. Works on any GitLab instance (gitlab.com, self-hosted). |
15+
| `gitlab-mark-viewed.user.js` | [install](https://raw.githubusercontent.com/solcik/userscripts/main/gitlab-mark-viewed.user.js) | Press `v` on a GitLab MR diff to toggle the focused file's "Viewed" checkbox. Matches `gitlab.com` and `git.vs-point.cz`. |
1616

1717
## Authoring
1818

gitlab-mark-viewed.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// ==UserScript==
22
// @name GitLab — mark file as Viewed with "v"
33
// @namespace https://github.com/solcik/userscripts
4-
// @version 0.2.0
4+
// @version 0.2.1
55
// @description In a GitLab merge request diff, press "v" to toggle the focused file's "Viewed" checkbox.
66
// @author David Solc
7-
// @match *://*/-/merge_requests/*/diffs
7+
// @match https://gitlab.com/*/-/merge_requests/*/diffs
8+
// @match https://git.vs-point.cz/*/-/merge_requests/*/diffs
89
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitlab.com
910
// @homepageURL https://github.com/solcik/userscripts
1011
// @supportURL https://github.com/solcik/userscripts/issues

0 commit comments

Comments
 (0)