Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.0.0 #9

Merged
merged 420 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
420 commits
Select commit Hold shift + click to select a range
e55f353
docs: update discoveries
Sv443 Jul 9, 2023
b6ab696
ref: clean up stuff
Sv443 Jul 9, 2023
6a79873
feat: dummy remove from queue btn
Sv443 Jul 9, 2023
f522232
fix: catch in openInNewTab
Sv443 Jul 9, 2023
ed858b0
fix: cursor
Sv443 Jul 9, 2023
9c4b7c5
fix: remove unnecessary DOM pollution
Sv443 Jul 9, 2023
dc172cc
feat: add errors when lyrics couldnt be fetched
Sv443 Jul 9, 2023
9762a52
fix: wrong threshold clamping
Sv443 Jul 12, 2023
ad7c9c4
fix: prevent double request if geniURL gives 400
Sv443 Jul 12, 2023
049bc75
feat: finished remove from queue btn
Sv443 Jul 12, 2023
57129c1
chore: build
Sv443 Jul 12, 2023
dadbd45
fix: add title attrib for remove from queue btn
Sv443 Jul 12, 2023
55c43a2
ref: comments
Sv443 Jul 12, 2023
7cf476f
ref: fix property assigning
Sv443 Jul 14, 2023
770496b
fix: watermark position for new page design
Sv443 Jul 16, 2023
fae706c
ref: consolidate menu bg col
Sv443 Jul 16, 2023
9360180
ref: postbuild; remove extra @connects
Sv443 Jul 16, 2023
f9c801b
ref: postbuild
Sv443 Jul 16, 2023
46e21fb
fix: upgrade tab selector for new design
Sv443 Jul 16, 2023
ca8034f
feat: onSelectorExists & begin bytm cfg menu btn
Sv443 Jul 16, 2023
8b668b0
fix: beforeunload was not negated
Sv443 Jul 16, 2023
617820b
feat: console watermark: now with gradient™
Sv443 Jul 16, 2023
8c0c6c8
fix: wrong default log level
Sv443 Jul 16, 2023
b06c705
chore: build
Sv443 Jul 16, 2023
772185d
fix: missing flags in regex
Sv443 Jul 17, 2023
3c73dd2
ref: comment
Sv443 Jul 17, 2023
e58f3eb
ref: comments again
Sv443 Jul 17, 2023
dd4f803
feat: add svg spinner
Sv443 Jul 17, 2023
29d06b0
feat: larger spinner
Sv443 Jul 17, 2023
fc63f52
feat: SVG spinner
Sv443 Jul 17, 2023
23af06f
docs: discoveries
Sv443 Jul 17, 2023
06c0b2e
chore: build
Sv443 Jul 17, 2023
152bbf3
feat: remove old spinner
Sv443 Jul 17, 2023
8a7918b
feat: log level tied to build mode
Sv443 Jul 17, 2023
6cf497e
fix: loading class only applied if no cache entry
Sv443 Jul 17, 2023
e38694c
feat: stop menu close evt propagation
Sv443 Jul 17, 2023
2f7ca98
ref: remove todo comments
Sv443 Jul 17, 2023
79951c7
feat: add menu option to open bytm config
Sv443 Jul 17, 2023
3db6e17
ref: remove timer-based DOM operations
Sv443 Jul 17, 2023
afe4ca5
chore: build
Sv443 Jul 17, 2023
069aba5
fix: pointer cursor on the wrong element
Sv443 Jul 17, 2023
b2e3e69
fix: evt listener on the wrong element too
Sv443 Jul 17, 2023
0c416d4
fix: add stopPropagation to more click evts
Sv443 Jul 17, 2023
fe2e091
ci: update setup-node to v3
Sv443 Jul 17, 2023
a98c0f6
docs: indent
Sv443 Jul 17, 2023
d2eee28
ref: extract menu css into own file
Sv443 Jul 17, 2023
8ee30ac
feat: image pre-caching
Sv443 Jul 18, 2023
1d36fe9
feat: add vsc extension settings
Sv443 Jul 18, 2023
4cda3d6
feat: anchor improvements
Sv443 Jul 18, 2023
3bbf438
chore: build
Sv443 Jul 18, 2023
bdafbdf
fix: domain guard for img preload
Sv443 Jul 18, 2023
1737156
ref: comments
Sv443 Jul 18, 2023
0de7c51
feat: delete icon
Sv443 Jul 18, 2023
1b09e24
feat: add issue templates
Sv443 Jul 18, 2023
aad8bb5
docs: tiny readme refactor
Sv443 Jul 18, 2023
22ab760
feat: change fill color of delete icon
Sv443 Jul 18, 2023
1352958
feat: new delete icon
Sv443 Jul 18, 2023
0e73b92
fix: smaller genius icon
Sv443 Jul 18, 2023
402f7b0
feat: way better icons
Sv443 Jul 18, 2023
c55cbc1
fix: image preload list
Sv443 Jul 18, 2023
a9eaf50
fix: delete icon stroke width
Sv443 Jul 18, 2023
5f4f423
fix: old icon was better lol
Sv443 Jul 18, 2023
20d21a6
i made icon lorger :)
Sv443 Jul 18, 2023
610568c
chore: build
Sv443 Jul 18, 2023
b81ac69
ref: better feature descriptions
Sv443 Jul 18, 2023
2af9133
ref: change feature description again
Sv443 Jul 18, 2023
5390c55
ref: modify console watermark gradient
Sv443 Jul 18, 2023
f6d21e7
feat: sourcemap support for local dev
Sv443 Jul 18, 2023
26fbbd3
feat: add sidebar anchors
Sv443 Jul 19, 2023
eb0155f
ref: bit o cleanup innt luv
Sv443 Jul 19, 2023
29dfd74
ref: remove script
Sv443 Jul 19, 2023
fefd085
feat: spinner for media ctrl lyrics btn
Sv443 Jul 20, 2023
14a7c00
fix: background for queue cont.
Sv443 Jul 20, 2023
51936fb
feat: fetch timeout
Sv443 Jul 20, 2023
824d9dd
chore: build
Sv443 Jul 20, 2023
c9491da
fix: keep video time on site switch now on YT too!
Sv443 Jul 20, 2023
4903193
ref: smol stuffs
Sv443 Jul 20, 2023
402b99a
docs: update feature list
Sv443 Jul 20, 2023
7a6cb39
chore: build
Sv443 Jul 20, 2023
f0c3a86
feat: add gradient to queue btn container
Sv443 Jul 20, 2023
68d786d
fix: spinner not beimg removed on geniurl 4xx
Sv443 Jul 20, 2023
267cbfb
feat: add error icon for when lyrics fetch fails
Sv443 Jul 20, 2023
f7ca17b
chore: build
Sv443 Jul 20, 2023
b7f9951
feat: one total reset btn, not one per feature
Sv443 Jul 21, 2023
6342999
fix: site switch only on /watch
Sv443 Jul 21, 2023
f902649
chore: build
Sv443 Jul 21, 2023
9c0980d
feat: add title to reset btn
Sv443 Jul 21, 2023
cc533ad
ref: remove dbg
Sv443 Jul 22, 2023
d76e16e
chore: build
Sv443 Jul 22, 2023
c7e4f04
chore: update deps
Sv443 Jul 25, 2023
a4b5ecf
fix: padding in menu title
Sv443 Jul 27, 2023
9c65587
feat: anchor improvements for related tab
Sv443 Jul 27, 2023
dda8ef7
feat: silent mode for webpack
Sv443 Jul 29, 2023
12946d5
ref: improve addGlobalStyle reference id
Sv443 Jul 29, 2023
ceec092
feat: semi-finished related tab carousel anchors
Sv443 Jul 29, 2023
3694dae
chore: clean comments & build
Sv443 Jul 29, 2023
577e44a
ref: logging stuff
Sv443 Jul 31, 2023
21793c7
docs: update dev steps & add table of contents
Sv443 Jul 31, 2023
887bb1b
fix: reduce reading from config
Sv443 Jul 31, 2023
ad72937
feat: add generic lyrics icon
Sv443 Jul 31, 2023
a4fd52e
chore: build
Sv443 Jul 31, 2023
5d29f7a
fix: queue btn container size
Sv443 Aug 1, 2023
90a7734
feat: alternative lyrics icon
Sv443 Aug 1, 2023
816715e
feat: different lyrics icon
Sv443 Aug 1, 2023
1024db8
feat: begin new onSelectorExists()
Sv443 Aug 1, 2023
edd2b4c
ref: comments
Sv443 Aug 1, 2023
a108866
feat: new lyrics icon
Sv443 Aug 1, 2023
6bef051
fix: remove lyrics alt icon
Sv443 Aug 1, 2023
bb5e569
feat: import svg as html
Sv443 Aug 2, 2023
257e802
feat: persistent build stats
Sv443 Aug 2, 2023
e7a2c9f
feat: logo easter egg :)
Sv443 Aug 2, 2023
df6a5c7
chore: build
Sv443 Aug 2, 2023
8f23acf
feat: replace favicon too
Sv443 Aug 2, 2023
5ca5631
feat: more build info
Sv443 Aug 2, 2023
1040f57
feat: menu save debounce
Sv443 Aug 3, 2023
bc1ce1b
feat: disable text selection
Sv443 Aug 3, 2023
cae8613
ref: move code to new userutils lib
Sv443 Aug 3, 2023
99f8037
ref!: use new onSelector
Sv443 Aug 3, 2023
a186a5c
fix: better watermark
Sv443 Aug 3, 2023
b1c8007
chore: update userutils dep
Sv443 Aug 3, 2023
c277312
chore: build
Sv443 Aug 3, 2023
6e85b07
ref: img preloading
Sv443 Aug 3, 2023
05b3f51
feat: add funding
Sv443 Aug 3, 2023
e4c6541
feat: begin volume label feature
Sv443 Aug 5, 2023
7c50a81
comment
Sv443 Aug 6, 2023
ee2494a
ref: build tools improvements
Sv443 Aug 6, 2023
bc7e2ef
ref: volume features
Sv443 Aug 6, 2023
caa989c
fix: default feature cfg not being applied
Sv443 Aug 6, 2023
47560ff
fix: dev server cache control
Sv443 Aug 6, 2023
e4b2420
chore: build
Sv443 Aug 6, 2023
175406c
ref: comment
Sv443 Aug 6, 2023
91284da
fix: r&w flags for exists()
Sv443 Aug 12, 2023
6e71bda
chore: update userutils
Sv443 Aug 12, 2023
bcb5ef8
fix: selector for small upgrade tab
Sv443 Aug 12, 2023
a48856c
chore: update userutils
Sv443 Aug 14, 2023
92012cd
chore: build
Sv443 Aug 14, 2023
7c75520
chore: build in dev mode
Sv443 Aug 14, 2023
d5f6b7b
ref: make icons smaller
Sv443 Aug 15, 2023
992dadb
fix: remove genius icon
Sv443 Aug 15, 2023
fe250f1
ref: use @resource instead of fetching from GH
Sv443 Aug 15, 2023
b730aff
fix: header indents
Sv443 Aug 15, 2023
16f0145
ref: change external images size
Sv443 Aug 15, 2023
bc43991
chore: build
Sv443 Aug 15, 2023
df4005b
feat: support abs. URLs in resources.json
Sv443 Aug 15, 2023
4d2854c
fix: remove unnecessary env var
Sv443 Aug 16, 2023
fb62267
fix: menu options label vertical align
Sv443 Aug 18, 2023
f8b4bdf
fix: make console watermark text bigger
Sv443 Aug 18, 2023
2c38a14
feat: site switch video time threshold
Sv443 Aug 29, 2023
e5241a6
fix: menu style
Sv443 Aug 29, 2023
bb9d6d6
ref: update post-build & ext. assets readme
Sv443 Aug 29, 2023
e172a74
fix: menu item style
Sv443 Aug 29, 2023
a9dac87
feat: finish volume label & fix recursion problem
Sv443 Aug 29, 2023
02f9b52
chore: build
Sv443 Aug 29, 2023
4e36d34
fix: better vol label style
Sv443 Aug 29, 2023
95a87cc
chore: build
Sv443 Aug 29, 2023
f7c8ce2
feat: beforeunload toggling works after attaching
Sv443 Aug 29, 2023
a60ce94
fix: min and max not being set correctly
Sv443 Aug 29, 2023
88d1750
feat: auto-close permanent toasts
Sv443 Aug 29, 2023
5d2d729
chore: build
Sv443 Aug 29, 2023
b11b7ec
ref: change feature descriptions
Sv443 Sep 9, 2023
4d43da8
chore: update userutils
Sv443 Sep 9, 2023
31a2cbc
ref: implement UserUtils' ConfigManager
Sv443 Sep 9, 2023
779f5d0
ref: logging
Sv443 Sep 9, 2023
291b209
fix: cfg funcs
Sv443 Sep 9, 2023
fd2b5fc
chore: build
Sv443 Sep 9, 2023
152a804
docs: update readme + larger icon
Sv443 Sep 12, 2023
d64d04c
fix: better menu size
Sv443 Sep 12, 2023
b45abdc
fix: beforeunload not using GM storage data
Sv443 Sep 12, 2023
24bd22b
ref: random stuff
Sv443 Sep 12, 2023
58c0900
ref: consolidate icon file names
Sv443 Sep 12, 2023
cc61ed0
feat: arrow_down icon
Sv443 Sep 12, 2023
59434ac
feat: add menu categories, scroll indicator & more
Sv443 Sep 12, 2023
737adc9
chore: build
Sv443 Sep 12, 2023
359c2e7
ref: small improvements
Sv443 Sep 12, 2023
c5345cd
fix: resolve song names with hyphens better
Sv443 Sep 12, 2023
06cb0e3
chore: build
Sv443 Sep 12, 2023
3aeff59
fix: stuff
Sv443 Sep 12, 2023
4ee4ebf
fix: queuebtn lyrics & delete inconsistencies
Sv443 Sep 12, 2023
1ab7edb
chore: build
Sv443 Sep 12, 2023
2b30999
fix: lint error
Sv443 Sep 12, 2023
7c50727
chore: update userutils
Sv443 Sep 12, 2023
8260317
chore: build
Sv443 Sep 12, 2023
6bf48d3
fix: vol label text size
Sv443 Sep 12, 2023
1251d91
chore: build
Sv443 Sep 12, 2023
93b9b14
feat: separate config options for queue btns
Sv443 Sep 14, 2023
90bf0c1
chore: build
Sv443 Sep 14, 2023
a42e210
chore: update userutils
Sv443 Sep 14, 2023
0917a84
fix: speed up spinner rotation
Sv443 Sep 14, 2023
66278d1
chore: build
Sv443 Sep 14, 2023
51b44ff
ref: minor refactors all over the place
Sv443 Sep 14, 2023
bbde264
fix: video time improvements
Sv443 Sep 14, 2023
343fe7a
fix: improve menu style
Sv443 Sep 14, 2023
2cb293b
ref: massively improved menu style & UX
Sv443 Sep 14, 2023
9bc4c04
chore: build
Sv443 Sep 14, 2023
0493634
fix: comment
Sv443 Sep 14, 2023
b51480b
fix: close menu before reload
Sv443 Sep 14, 2023
4ca5336
fix: scroll indicator offset
Sv443 Sep 14, 2023
53f8631
fix: remove log level check from warn
Sv443 Sep 16, 2023
bd1bb0c
chore: build
Sv443 Sep 16, 2023
2347e34
ref: migrate to nanoevents lib
Sv443 Sep 16, 2023
7fac054
feat: remove share url tracking parameter
Sv443 Sep 16, 2023
1c7a9d2
fix: update discoveries
Sv443 Sep 16, 2023
8b19e03
chore: build
Sv443 Sep 16, 2023
396929a
fix: update numKeysJumpTo script
Sv443 Sep 16, 2023
a7781d0
feat: skip to time with number keys
Sv443 Sep 16, 2023
41a5a2c
feat: dev mode menu commands & directives
Sv443 Sep 16, 2023
000b6ae
chore: build
Sv443 Sep 16, 2023
c0688d1
fix: remove unnecessary svg params
Sv443 Sep 16, 2023
6dad6fb
docs: improve readme a lot & add contrib guide
Sv443 Sep 17, 2023
7a81767
ref: move menu folder
Sv443 Sep 17, 2023
c433064
feat: added config export and import menus
Sv443 Sep 17, 2023
da4c3bd
chore: build
Sv443 Sep 17, 2023
ae03009
feat: export copy button
Sv443 Sep 17, 2023
f5920e8
docs: improve readme
Sv443 Sep 17, 2023
592255c
feat: add changelog menu
Sv443 Sep 17, 2023
6f50334
ref: reorder num keys to skip code
Sv443 Sep 17, 2023
6a8b678
chore: update changelog
Sv443 Sep 17, 2023
73fdf46
chore: build
Sv443 Sep 17, 2023
086be19
fix: all carousel anchors work now
Sv443 Sep 17, 2023
601f968
ref: remove todos
Sv443 Sep 17, 2023
bb639b2
feat: lyrics btn error icon on fail
Sv443 Sep 17, 2023
cd275d8
feat: better markdown style
Sv443 Sep 17, 2023
49fdd28
fix: markdown anchor target
Sv443 Sep 17, 2023
695f757
chore: build
Sv443 Sep 17, 2023
625b6e8
fix: changelog close btn evt wrog
Sv443 Sep 17, 2023
9e17b58
feat: better style for markdown kbd elements
Sv443 Sep 17, 2023
582aacc
chore: build
Sv443 Sep 17, 2023
3106b2b
feat: add <select> to menu & logLevel setting
Sv443 Sep 17, 2023
9aca99d
chore: build
Sv443 Sep 17, 2023
c039b4c
ref: minor stuff
Sv443 Sep 17, 2023
edaa7b7
ref: move inline css to file
Sv443 Sep 18, 2023
901cf2e
ref: minor stuff
Sv443 Sep 18, 2023
a3c2073
ref: remove type assertions from querySelector
Sv443 Sep 18, 2023
cdb7967
i forgor one 💀
Sv443 Sep 18, 2023
785f07b
feat: fix spacing issues
Sv443 Sep 18, 2023
e257b20
i forgor
Sv443 Sep 18, 2023
0d3a950
fix: spacing for unplayable list items
Sv443 Sep 18, 2023
bce23ee
docs: improve features list
Sv443 Sep 18, 2023
8dcdde1
fix: disable minification in prod build
Sv443 Sep 18, 2023
dbeb83b
fix: improve lyrics error btn
Sv443 Sep 18, 2023
79adee8
feat: scroll to active song button
Sv443 Sep 18, 2023
e0d58c6
chore: build prod
Sv443 Sep 18, 2023
9c63a16
fix: changelog
Sv443 Sep 18, 2023
7b9d2d2
fix: remove anchor from homepageURL
Sv443 Sep 18, 2023
dec8ac4
fix: userscript header urls
Sv443 Sep 18, 2023
cdf4e48
fix: issue templates
Sv443 Sep 19, 2023
5d631c1
feat: temp. disable geniURL fuzzy filtering
Sv443 Sep 19, 2023
8d02f2a
docs: update readme & add greasyfork readme
Sv443 Sep 19, 2023
b7e01d5
chore: final v1.0.0 build :)
Sv443 Sep 19, 2023
0d0a6a8
ci: update lint trigger
Sv443 Sep 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# HTTP port of the dev server where the userscript will be served (when using `npm run watch`) - defaults to 8710 if empty
DEV_SERVER_PORT=

# Whether to trigger the bell sound in some terminals when the code has finished (re)compiling - default is false
RING_BELL=false

# optional suffix to add just before the .user.js of the output file (for use with CI or build scripts to build the file as BetterYTM.min.user.js)
# OUTFILE_SUFFIX=".min"
58 changes: 58 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
ignorePatterns: [
"*.min.*",
"webpack.config.js",
"*.user.js",
"*.map",
"dist/**",
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
GM: "readonly",
unsafeWindow: "writable",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
},
plugins: [
"@typescript-eslint",
],
rules: {
"no-unreachable": "off",
"quotes": [ "error", "double" ],
"semi": [ "error", "always" ],
"eol-last": [ "error", "always" ],
"no-async-promise-executor": "off",
"indent": ["error", 2, { "ignoredNodes": ["VariableDeclaration[declarations.length=0]"] }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_" }],
"@typescript-eslint/ban-ts-comment": "off",
"comma-dangle": ["error", "only-multiline"],
"no-misleading-character-class": "off",
},
overrides: [
{
files: ["**.js"],
rules: {
"@typescript-eslint/no-var-requires": "off",
"quotes": [ "error", "double" ],
"semi": [ "error", "always" ],
"eol-last": [ "error", "always" ],
"no-async-promise-executor": "off",
"indent": ["error", 2, { "ignoredNodes": ["VariableDeclaration[declarations.length=0]"] }],
"comma-dangle": ["error", "only-multiline"],
},
},
],
};
20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github: Sv443
patreon: Sv443
ko_fi: Sv443
custom: ['paypal.me/Sv443']
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/1_bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a bug report to help improve BetterYTM
title: ''
labels: bug
assignees: Sv443

---


### Description of the bug and steps to reproduce:
<!-- A clear and concise description of what the bug is -->
<!-- Also include steps to reproduce it -->


### Environment:
- Browser name & version:
- Userscript version & build number: x.x.x (xxxxxxx)
<!--
To view the userscript version and build number, either open the configuration menu and copy the numbers and letters at the bottom,
or open the JavaScript console of your browser (usually with F12). It should be near the very top.
-->


### Other info / screenshots:
<!-- If applicable and possible, add other information or screenshots to help explain your problem. -->
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/2_feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Feature request
about: Suggest a new or improved feature for BetterYTM
title: ''
labels: enhancement
assignees: Sv443

---


### Description of the feature:
<!-- A clear and concise description of what feature you want to be added to BetterYTM -->


### Other info / sketches:
<!-- If applicable and possible, add other information or sketches to help explain your suggestion -->
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: "Discussions"
about: "Open a new thread on the discussion board if you have a question, want to show off your project, etc."
url: "https://github.com/Sv443/BetterYTM/discussions"
- name: "Chat on Discord"
about: "If you want, you can also join my Discord server"
url: "https://dc.sv443.net"
34 changes: 0 additions & 34 deletions .github/workflows/betterytm.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
branches: [main]
# schedule:
# - cron: '23 12 * * 4'

jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
matrix:
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Lint BetterYTM"

on:
push:
branches: [develop]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

timeout-minutes: 10

strategy:
matrix:
node-version: [18.x]

env:
CI: "true"

steps:
- uses: actions/checkout@v3
- name: Set up Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies # runs the npm ci command to install from package-lock.json
run: npm ci
- name: Build with tsc & lint
run: npm run lint
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
.env
test.js
test.ts

node_modules/
test.js
dist/*.map
dist/out/
dist/*.css
.build.json
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"adpyke.vscode-userscript",
"dbaeumer.vscode-eslint",
"fabiospampinato.vscode-highlight"
]
}
44 changes: 44 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"javascript.preferences.importModuleSpecifier": "relative",
"search.exclude": {
"**/BetterYTM.user.js": true,
},
"files.associations": {
"*.env": "dotenv",
"*.env.template": "dotenv",
},

// requires extension: fabiospampinato.vscode-highlight
"highlight.regexes": {
"(TODO(\\((\\s|\\d|\\w|[,.-_+*&])+\\))?:?)": { // TODO: or TODO or TODO(xy): but not todo or todo:
"backgroundColor": "#ed0",
"color": "black",
"overviewRulerColor": "#ed0"
},
"(#MARKER)": { // #MARKER test
"backgroundColor": "#c31",
"color": "#fff",
"isWholeLine": true,
"overviewRulerColor": "#c31"
},
"(#SECTION ([^\\S\\r\\n]*[\\w,.\\-_&]+)*[:]*)": { // #SECTION test, 123 & foo
"backgroundColor": "#44f",
"color": "white",
"overviewRulerColor": "#44f"
},
"(#?(DEBUG|DBG)#?)": { // #DEBUG or DEBUG or #DBG or #DBG#
"backgroundColor": "#ff0",
"color": "blue",
"overviewRulerColor": "#ff0"
},
"(IMPORTANT:)": { // IMPORTANT:
"backgroundColor": "#a22",
"color": "#fff"
},
"(FIXME:)": { // FIXME:
"backgroundColor": "#a22",
"color": "#fff",
"overviewRulerColor": "#752020"
}
},
}
Loading