Skip to content

Commit 6ed2c6c

Browse files
authored
feat: use eslint-plugin-userscripts (#169)
1 parent be2b6cb commit 6ed2c6c

File tree

26 files changed

+446
-386
lines changed

26 files changed

+446
-386
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
Userscripts.org_*/

.eslintrc.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
greasemonkey: true,
5+
es2021: true,
6+
},
7+
overrides: [
8+
{
9+
env: {
10+
node: true,
11+
},
12+
files: [".eslintrc.{js,cjs}"],
13+
parserOptions: {
14+
sourceType: "script",
15+
},
16+
},
17+
{
18+
files: ["*.user.js"],
19+
extends: ["plugin:userscripts/recommended"],
20+
rules: {
21+
"userscripts/align-attributes": ["error", 1],
22+
"userscripts/no-invalid-headers": ["error", { allowed: ["id", "browser"] }],
23+
"userscripts/compat-headers": "off",
24+
},
25+
settings: {
26+
userscriptVersions: {
27+
tampermonkey: ">=4",
28+
violentmonkey: ">=2",
29+
greasemonkey: "*",
30+
},
31+
},
32+
},
33+
],
34+
parserOptions: {
35+
ecmaVersion: "latest",
36+
},
37+
rules: {},
38+
};
39+

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
*.suo
33
*.bak
44
*.vs
5+
6+
.DS_Store
7+
node_modules/
8+
pnpm-lock.yaml

April_Fools_CSS/April_Fools_CSS.user.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// ==UserScript==
2-
// @name April Fools CSS
3-
// @description Some CSS april fools
4-
// @author jerone
5-
// @namespace https://github.com/jerone/UserScripts/tree/master/April_Fools_CSS
6-
// @copyright 2014+, jerone (https://github.com/jerone)
7-
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8-
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9-
// @supportURL https://github.com/jerone/UserScripts/issues
2+
// @name April Fools CSS
3+
// @description Some CSS april fools
4+
// @author jerone
5+
// @namespace https://github.com/jerone/UserScripts/tree/master/April_Fools_CSS
6+
// @copyright 2014+, jerone (https://github.com/jerone)
7+
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8+
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9+
// @supportURL https://github.com/jerone/UserScripts/issues
1010
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
11-
// @include *
12-
// @version 1.0
11+
// @include *
12+
// @version 1.0
1313
// ==/UserScript==
1414

1515
if(window.top===window){

Darts_Data_Enhancer/Darts_Data_Enhancer.user.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
// ==UserScript==
2-
// @id Darts_Data_Enhancer@https://github.com/jerone/UserScripts
3-
// @name Darts Data Enhancer
4-
// @namespace https://github.com/jerone/UserScripts
5-
// @description Enhances Darts Data
6-
// @author jerone
7-
// @copyright 2015+, jerone (https://github.com/jerone)
8-
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
9-
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
10-
// @homepage https://github.com/jerone/UserScripts/tree/master/Darts_Data_Enhancer#readme
11-
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Darts_Data_Enhancer#readme
12-
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Darts_Data_Enhancer/Darts_Data_Enhancer.user.js
13-
// @updateURL https://github.com/jerone/UserScripts/raw/master/Darts_Data_Enhancer/Darts_Data_Enhancer.user.js
14-
// @supportURL https://github.com/jerone/UserScripts/issues
2+
// @name Darts Data Enhancer
3+
// @id Darts_Data_Enhancer@https://github.com/jerone/UserScripts
4+
// @namespace https://github.com/jerone/UserScripts
5+
// @description Enhances Darts Data
6+
// @author jerone
7+
// @copyright 2015+, jerone (https://github.com/jerone)
8+
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
9+
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
10+
// @homepage https://github.com/jerone/UserScripts/tree/master/Darts_Data_Enhancer#readme
11+
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Darts_Data_Enhancer#readme
12+
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Darts_Data_Enhancer/Darts_Data_Enhancer.user.js
13+
// @updateURL https://github.com/jerone/UserScripts/raw/master/Darts_Data_Enhancer/Darts_Data_Enhancer.user.js
14+
// @supportURL https://github.com/jerone/UserScripts/issues
1515
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
16-
// @version 1.0.0
17-
// @grant none
18-
// @run-at document-end
19-
// @include http://live.dartsdata.com/MatchesList.aspx
16+
// @version 1.0.0
17+
// @grant none
18+
// @run-at document-end
19+
// @include http://live.dartsdata.com/MatchesList.aspx
2020
// ==/UserScript==
2121

2222
var playersLeft = document.querySelectorAll("#ctl01 > table:nth-child(9) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(2) > table > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(1) > div > table > tbody > tr > td:nth-child(2)");

GeenStijl_Powned_Dumpert_Comment_Enhancer/GeenStijl_Powned_Dumpert_Comment_Enhancer.user.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
// ==UserScript==
2-
// @name GeenStijl & Powned & Dumpert Comment Enhancer
3-
// @namespace https://github.com/jerone/UserScripts
4-
// @description Add features to enhance comments on GeenStijl & Powned & Dumpert & more.
5-
// @author jerone
6-
// @copyright 2014+, jerone (https://github.com/jerone)
7-
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8-
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9-
// @homepage https://github.com/jerone/UserScripts/tree/master/GeenStijl_Powned_Dumpert_Comment_Enhancer
10-
// @homepageURL https://github.com/jerone/UserScripts/tree/master/GeenStijl_Powned_Dumpert_Comment_Enhancer
11-
// @downloadURL https://github.com/jerone/UserScripts/raw/master/GeenStijl_Powned_Dumpert_Comment_Enhancer/GeenStijl_Powned_Dumpert_Comment_Enhancer.user.js
12-
// @updateURL https://github.com/jerone/UserScripts/raw/master/GeenStijl_Powned_Dumpert_Comment_Enhancer/GeenStijl_Powned_Dumpert_Comment_Enhancer.user.js
13-
// @supportURL https://github.com/jerone/UserScripts/issues
2+
// @name GeenStijl & Powned & Dumpert Comment Enhancer
3+
// @namespace https://github.com/jerone/UserScripts
4+
// @description Add features to enhance comments on GeenStijl & Powned & Dumpert & more.
5+
// @author jerone
6+
// @copyright 2014+, jerone (https://github.com/jerone)
7+
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8+
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9+
// @homepage https://github.com/jerone/UserScripts/tree/master/GeenStijl_Powned_Dumpert_Comment_Enhancer
10+
// @homepageURL https://github.com/jerone/UserScripts/tree/master/GeenStijl_Powned_Dumpert_Comment_Enhancer
11+
// @downloadURL https://github.com/jerone/UserScripts/raw/master/GeenStijl_Powned_Dumpert_Comment_Enhancer/GeenStijl_Powned_Dumpert_Comment_Enhancer.user.js
12+
// @updateURL https://github.com/jerone/UserScripts/raw/master/GeenStijl_Powned_Dumpert_Comment_Enhancer/GeenStijl_Powned_Dumpert_Comment_Enhancer.user.js
13+
// @supportURL https://github.com/jerone/UserScripts/issues
1414
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
15-
// @include http*://*geenstijl.nl/mt/archieven/*
16-
// @include http*://*geenstijl.tv/*
17-
// @include http*://*powned.tv/nieuws/*
18-
// @include http*://*dumpert.nl/mediabase/*
19-
// @include http*://*daskapital.nl/*
20-
// @include http*://*glamora.ma/*
21-
// @version 2.0
22-
// @grant none
15+
// @include http*://*geenstijl.nl/mt/archieven/*
16+
// @include http*://*geenstijl.tv/*
17+
// @include http*://*powned.tv/nieuws/*
18+
// @include http*://*dumpert.nl/mediabase/*
19+
// @include http*://*daskapital.nl/*
20+
// @include http*://*glamora.ma/*
21+
// @version 2.0
22+
// @grant none
2323
// ==/UserScript==
2424

2525
(function() {

GitHub_Commit_Compare/GitHub_Commit_Compare.user.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
// ==UserScript==
2-
// @name GitHub Commit Compare
3-
// @namespace https://github.com/jerone/UserScripts
4-
// @description Add controls to compare commits.
5-
// @author jerone
6-
// @contributor darkred
7-
// @copyright 2017+, jerone (https://github.com/jerone)
8-
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
9-
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
10-
// @homepage https://github.com/jerone/UserScripts/tree/master/GitHub_Commit_Compare
11-
// @homepageURL https://github.com/jerone/UserScripts/tree/master/GitHub_Commit_Compare
12-
// @downloadURL https://github.com/jerone/UserScripts/raw/master/GitHub_Commit_Compare/GitHub_Commit_Compare.user.js
13-
// @updateURL https://github.com/jerone/UserScripts/raw/master/GitHub_Commit_Compare/GitHub_Commit_Compare.user.js
14-
// @supportURL https://github.com/jerone/UserScripts/issues
2+
// @name GitHub Commit Compare
3+
// @namespace https://github.com/jerone/UserScripts
4+
// @description Add controls to compare commits.
5+
// @author jerone
6+
// @contributor darkred
7+
// @copyright 2017+, jerone (https://github.com/jerone)
8+
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
9+
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
10+
// @homepage https://github.com/jerone/UserScripts/tree/master/GitHub_Commit_Compare
11+
// @homepageURL https://github.com/jerone/UserScripts/tree/master/GitHub_Commit_Compare
12+
// @downloadURL https://github.com/jerone/UserScripts/raw/master/GitHub_Commit_Compare/GitHub_Commit_Compare.user.js
13+
// @updateURL https://github.com/jerone/UserScripts/raw/master/GitHub_Commit_Compare/GitHub_Commit_Compare.user.js
14+
// @supportURL https://github.com/jerone/UserScripts/issues
1515
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
16-
// @icon https://github.githubassets.com/pinned-octocat.svg
17-
// @include https://github.com/*/*/commits
18-
// @include https://github.com/*/*/commits/*
19-
// @exclude https://github.com/*/*.diff
20-
// @exclude https://github.com/*/*.patch
21-
// @version 0.0.3
22-
// @grant none
16+
// @icon https://github.githubassets.com/pinned-octocat.svg
17+
// @include https://github.com/*/*/commits
18+
// @include https://github.com/*/*/commits/*
19+
// @exclude https://github.com/*/*.diff
20+
// @exclude https://github.com/*/*.patch
21+
// @version 0.0.3
22+
// @grant none
2323
// ==/UserScript==
2424

2525
(function () {

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
// ==UserScript==
2-
// @id Github_Comment_Enhancer@https://github.com/jerone/UserScripts
3-
// @name Github Comment Enhancer
4-
// @namespace https://github.com/jerone/UserScripts
5-
// @description Enhances Github comments
6-
// @author jerone
7-
// @copyright 2014+, jerone (https://github.com/jerone)
8-
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
9-
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
10-
// @homepage https://github.com/jerone/UserScripts/tree/master/Github_Comment_Enhancer#readme
11-
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_Comment_Enhancer#readme
12-
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_Comment_Enhancer/Github_Comment_Enhancer.user.js
13-
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Comment_Enhancer/Github_Comment_Enhancer.user.js
14-
// @supportURL https://github.com/jerone/UserScripts/issues
2+
// @name Github Comment Enhancer
3+
// @id Github_Comment_Enhancer@https://github.com/jerone/UserScripts
4+
// @namespace https://github.com/jerone/UserScripts
5+
// @description Enhances Github comments
6+
// @author jerone
7+
// @copyright 2014+, jerone (https://github.com/jerone)
8+
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
9+
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
10+
// @homepage https://github.com/jerone/UserScripts/tree/master/Github_Comment_Enhancer#readme
11+
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_Comment_Enhancer#readme
12+
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_Comment_Enhancer/Github_Comment_Enhancer.user.js
13+
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Comment_Enhancer/Github_Comment_Enhancer.user.js
14+
// @supportURL https://github.com/jerone/UserScripts/issues
1515
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
16-
// @version 2.9.0
17-
// @icon https://github.githubassets.com/pinned-octocat.svg
18-
// @grant none
19-
// @run-at document-end
20-
// @include https://github.com/*
21-
// @include https://gist.github.com/*
16+
// @version 2.9.0
17+
// @icon https://github.githubassets.com/pinned-octocat.svg
18+
// @grant none
19+
// @run-at document-end
20+
// @include https://github.com/*
21+
// @include https://gist.github.com/*
2222
// ==/UserScript==
23+
2324
/* global unsafeWindow */
2425

2526
(function(unsafeWindow) {

Github_Commit_Diff/Github_Commit_Diff.user.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
// ==UserScript==
2-
// @name Github Commit Diff
3-
// @namespace https://github.com/jerone/UserScripts
4-
// @description Adds button to show diff (or patch) file for commit
5-
// @author jerone
6-
// @copyright 2014+, jerone (https://github.com/jerone)
7-
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8-
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9-
// @homepage https://github.com/jerone/UserScripts/tree/master/Github_Commit_Diff
10-
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_Commit_Diff
11-
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Diff/Github_Commit_Diff.user.js
12-
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Diff/Github_Commit_Diff.user.js
13-
// @supportURL https://github.com/jerone/UserScripts/issues
2+
// @name Github Commit Diff
3+
// @namespace https://github.com/jerone/UserScripts
4+
// @description Adds button to show diff (or patch) file for commit
5+
// @author jerone
6+
// @copyright 2014+, jerone (https://github.com/jerone)
7+
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8+
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9+
// @homepage https://github.com/jerone/UserScripts/tree/master/Github_Commit_Diff
10+
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_Commit_Diff
11+
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Diff/Github_Commit_Diff.user.js
12+
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Diff/Github_Commit_Diff.user.js
13+
// @supportURL https://github.com/jerone/UserScripts/issues
1414
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
15-
// @icon https://github.githubassets.com/pinned-octocat.svg
16-
// @include https://github.com/*
17-
// @exclude https://github.com/*/*.diff
18-
// @exclude https://github.com/*/*.patch
19-
// @version 1.6.7
20-
// @grant none
15+
// @icon https://github.githubassets.com/pinned-octocat.svg
16+
// @include https://github.com/*
17+
// @exclude https://github.com/*/*.diff
18+
// @exclude https://github.com/*/*.patch
19+
// @version 1.6.7
20+
// @grant none
2121
// ==/UserScript==
2222

2323
(function() {

Github_Commit_Whitespace/Github_Commit_Whitespace.user.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// ==UserScript==
2-
// @name Github Commit Whitespace
3-
// @namespace https://github.com/jerone/UserScripts
4-
// @description Adds button to hide whitespaces from commit
5-
// @author jerone
6-
// @copyright 2014+, jerone (https://github.com/jerone)
7-
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8-
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9-
// @homepage https://github.com/jerone/UserScripts/tree/master/Github_Commit_Whitespace
10-
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_Commit_Whitespace
11-
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Whitespace/Github_Commit_Whitespace.user.js
12-
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Whitespace/Github_Commit_Whitespace.user.js
13-
// @supportURL https://github.com/jerone/UserScripts/issues
2+
// @name Github Commit Whitespace
3+
// @namespace https://github.com/jerone/UserScripts
4+
// @description Adds button to hide whitespaces from commit
5+
// @author jerone
6+
// @copyright 2014+, jerone (https://github.com/jerone)
7+
// @license CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
8+
// @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
9+
// @homepage https://github.com/jerone/UserScripts/tree/master/Github_Commit_Whitespace
10+
// @homepageURL https://github.com/jerone/UserScripts/tree/master/Github_Commit_Whitespace
11+
// @downloadURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Whitespace/Github_Commit_Whitespace.user.js
12+
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Commit_Whitespace/Github_Commit_Whitespace.user.js
13+
// @supportURL https://github.com/jerone/UserScripts/issues
1414
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
15-
// @icon https://github.githubassets.com/pinned-octocat.svg
16-
// @include https://github.com/*
17-
// @version 1.5.4
18-
// @grant none
15+
// @icon https://github.githubassets.com/pinned-octocat.svg
16+
// @include https://github.com/*
17+
// @version 1.5.4
18+
// @grant none
1919
// ==/UserScript==
2020

2121
(function() {

0 commit comments

Comments
 (0)