author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
675,352
04.04.2021 02:46:12
-10,800
421fe6793022386ef21707e78f56739f5689ecf1
ignore proxy if equal to example
[ { "change_type": "MODIFY", "old_path": "menu.js", "new_path": "menu.js", "diff": "@@ -310,11 +310,12 @@ module.exports.setApplicationMenu = (win) => {\n};\nconst iconPath = path.join(__dirname, \"assets\", \"youtube-music-tray.png\");\n+const example = `Example: \"socks5://127.0.0.1:9999\"`;\nfuncti...
JavaScript
MIT License
th-ch/youtube-music
ignore proxy if equal to example
675,352
04.04.2021 15:06:14
-10,800
d12d16348aff03d6659a0211976d597c50396331
custom dark skin for prompt
[ { "change_type": "ADD", "old_path": null, "new_path": "darkPrompt.css", "diff": "+body {\n+ background-color: rgba(0, 0, 0, 0.3);\n+ background-image: linear-gradient(315deg, #200000 0%, #13253a 74%);\n+ overflow: hidden;\n+ color:whitesmoke;\n+}\n+#container {\n+ background: rgba( 0, 0, 0, 0.7 );\n...
JavaScript
MIT License
th-ch/youtube-music
custom dark skin for prompt
675,352
04.04.2021 19:58:25
-10,800
7c8e946871fba05e5cbedcf9fa5e9b7a33117ccf
implement custom prompt
[ { "change_type": "MODIFY", "old_path": "menu.js", "new_path": "menu.js", "diff": "@@ -6,7 +6,7 @@ const is = require(\"electron-is\");\nconst { getAllPlugins } = require(\"./plugins/utils\");\nconst config = require(\"./config\");\n-const prompt = require('electron-prompt');\n+const prompt = require...
JavaScript
MIT License
th-ch/youtube-music
implement custom prompt
675,352
05.04.2021 03:04:06
-10,800
28d366ab19cdf85fdad4537db9762e40c86d4da6
add back-to-front logger This somehow fix "did-fail-load" being called on song start, with in-app-plugin-activated
[ { "change_type": "MODIFY", "old_path": "index.js", "new_path": "index.js", "diff": "@@ -163,10 +163,29 @@ app.on(\"browser-window-created\", (event, win) => {\ncreatedWindow = true;\nloadPlugins(win);\n- win.webContents.on(\"did-fail-load\", () => {\n+ win.webContents.on(\"did-fail-load\", (\n+ even...
JavaScript
MIT License
th-ch/youtube-music
add back-to-front logger This somehow fix "did-fail-load" being called on song start, with in-app-plugin-activated
675,352
05.04.2021 04:04:29
-10,800
6472002f8a441f21a746b72fc876433698b19190
fix hide-menu timing + minify log function
[ { "change_type": "MODIFY", "old_path": "plugins/in-app-menu/back.js", "new_path": "plugins/in-app-menu/back.js", "diff": "@@ -8,7 +8,9 @@ const { setApplicationMenu } = require(\"../../menu\");\nconst { injectCSS } = require(\"../utils\");\n//check that menu doesn't get created twice\n-let done = fa...
JavaScript
MIT License
th-ch/youtube-music
fix hide-menu timing + minify log function
675,352
05.04.2021 04:21:52
-10,800
6d44a579a44f4420e6ab60e2c6655f7bcf2e429e
move prompt to provide
[ { "change_type": "MODIFY", "old_path": "menu.js", "new_path": "menu.js", "diff": "@@ -6,7 +6,7 @@ const is = require(\"electron-is\");\nconst { getAllPlugins } = require(\"./plugins/utils\");\nconst config = require(\"./config\");\n-const prompt = require('./prompt');\n+const prompt = require('./pro...
JavaScript
MIT License
th-ch/youtube-music
move prompt to provide
675,352
05.04.2021 18:28:27
-10,800
a215035d0792891845eeb625ba140fd3dadfb241
refactor and css fix
[ { "change_type": "MODIFY", "old_path": "providers/prompt/customTitlebar.js", "new_path": "providers/prompt/customTitlebar.js", "diff": "@@ -5,15 +5,10 @@ module.exports = () => {\nbackgroundColor: customTitlebar.Color.fromHex(\"#050505\"),\nminimizable: false,\nmaximizable: false,\n- unfocusEffect: ...
JavaScript
MIT License
th-ch/youtube-music
refactor and css fix
675,352
06.04.2021 01:30:47
-10,800
0e9b15722a02fc1e423fb0d5eec4cd969d397dae
add inline doc
[ { "change_type": "MODIFY", "old_path": "index.js", "new_path": "index.js", "diff": "@@ -156,7 +156,7 @@ function createMainWindow() {\nlet createdWindow = false;\napp.on(\"browser-window-created\", (event, win) => {\n- //Ensure listeners aren't registered when creating input dialog\n+ //Ensures list...
JavaScript
MIT License
th-ch/youtube-music
add inline doc
675,352
27.04.2021 23:52:08
-10,800
395eac26a3dcc66c461babba4cce42ef2df7823f
switch function name to camelCase
[ { "change_type": "MODIFY", "old_path": "plugins/notifications/interactive.js", "new_path": "plugins/notifications/interactive.js", "diff": "@@ -20,7 +20,7 @@ module.exports.setupInteractive = (win, unpauseNotification) => {\n//delete old notification\nlet toDelete;\n-function Delete() {\n+function d...
JavaScript
MIT License
th-ch/youtube-music
switch function name to camelCase Co-authored-by: th-ch <th-ch@users.noreply.github.com>
675,343
29.04.2021 22:57:12
-7,200
c11ecd3323e3781eed00875049e269b825499c3f
Set max file length to 255 in downloader
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/youtube-dl.js", "new_path": "plugins/downloader/youtube-dl.js", "diff": "@@ -126,6 +126,7 @@ const toMP3 = async (\n: videoName;\nconst filename = filenamify(name + \".\" + extension, {\nreplacement: \"_\",\n+ maxLength: 255,\n});\nconst fil...
JavaScript
MIT License
th-ch/youtube-music
Set max file length to 255 in downloader
675,343
29.04.2021 22:57:47
-7,200
dfbda7c10bc1cecb669344f0659a4415628111bb
Set metadata in back (to have cover)
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/back.js", "new_path": "plugins/downloader/back.js", "diff": "+const { writeFileSync } = require(\"fs\");\nconst { join } = require(\"path\");\n-const { dialog } = require(\"electron\");\n+const ID3Writer = require(\"browser-id3-writer\");\n+...
JavaScript
MIT License
th-ch/youtube-music
Set metadata in back (to have cover)
675,343
29.04.2021 23:28:27
-7,200
0468a23c4f0f9a6bbc10c58560dcc3b2dd46096b
Fix getFolder util (main/renderer process)
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/utils.js", "new_path": "plugins/downloader/utils.js", "diff": "-const { app } = require(\"electron\");\n+const electron = require(\"electron\");\n-module.exports.getFolder = (customFolder) => customFolder || app.getPath(\"downloads\");\n+mod...
JavaScript
MIT License
th-ch/youtube-music
Fix getFolder util (main/renderer process)
675,343
02.05.2021 22:30:24
-7,200
f65c6c89aea9713d1302f840cbc230fa1ba08ecb
Fix package.json indent, update yarn.lock
[ { "change_type": "MODIFY", "old_path": "yarn.lock", "new_path": "yarn.lock", "diff": "@@ -6549,11 +6549,6 @@ node-notifier@^9.0.1:\nuuid \"^8.3.0\"\nwhich \"^2.0.2\"\n-noop-logger@^0.1.1:\n- version \"0.1.1\"\n- resolved \"https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f...
JavaScript
MIT License
th-ch/youtube-music
Fix package.json indent, update yarn.lock
675,343
02.05.2021 22:41:38
-7,200
7dbb5fc86dbba39cbe35e4d16eac86bb8d792f20
Update electron to 11.4.4
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"ytpl\": \"^2.1.1\"\n},\n\"devDependencies\": {\n- \"electron\": \"^11.4.2\",\n+ \"electron\": \"^11.4.4\",\n\"electron-builder\": \"^22.10.5\",\n\"electron-devtools-installer\": \"^3.1.1\",\n\"electron-icon...
JavaScript
MIT License
th-ch/youtube-music
Update electron to 11.4.4
675,343
04.05.2021 21:29:39
-7,200
4cb658dacaa59e88ca41d4983e08ef237f7093c2
Remove preload.js in plugin uses and use front plugin injection
[ { "change_type": "MODIFY", "old_path": "plugins/precise-volume/back.js", "new_path": "plugins/precise-volume/back.js", "diff": "@@ -13,7 +13,6 @@ module.exports = (win) => {\n// did-finish-load is called after all elements finished loading, including said listeners\n// Thats the reason the timing is...
JavaScript
MIT License
th-ch/youtube-music
Remove preload.js in plugin uses and use front plugin injection
675,343
04.05.2021 21:30:10
-7,200
bf409967b23dec3eb9241c0ca120919129205d52
Import front logger at top level
[ { "change_type": "MODIFY", "old_path": "preload.js", "new_path": "preload.js", "diff": "@@ -4,6 +4,7 @@ const { remote } = require(\"electron\");\nconst config = require(\"./config\");\nconst { fileExists } = require(\"./plugins/utils\");\n+const setupFrontLogger = require(\"./providers/front-logger...
JavaScript
MIT License
th-ch/youtube-music
Import front logger at top level
675,343
07.05.2021 22:29:21
-7,200
3fb08d27c781960d832bf849e01d5a0c07cd2879
Add `start:debug` command to enable dev with electron debug
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"scripts\": {\n\"test\": \"jest\",\n\"start\": \"electron .\",\n+ \"start:debug\": \"ELECTRON_ENABLE_LOGGING=1 electron .\",\n\"icon\": \"rimraf assets/generated && electron-icon-maker --input=assets/youtube...
JavaScript
MIT License
th-ch/youtube-music
Add `start:debug` command to enable dev with electron debug
675,352
08.05.2021 19:19:11
-10,800
96a74f8955e7b7653fe4763e1023092a9913ec3d
use original metadata only if not already captured from ytpl.getInfo()
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/back.js", "new_path": "plugins/downloader/back.js", "diff": "@@ -49,13 +49,14 @@ function handle(win) {\nipcMain.on(\"add-metadata\", async (event, filePath, songBuffer, currentMetadata) => {\nlet fileBuffer = songBuffer;\n-\n- if (currentMe...
JavaScript
MIT License
th-ch/youtube-music
use original metadata only if not already captured from ytpl.getInfo()
675,343
08.05.2021 22:41:56
-7,200
163dc7e1d147fe04cabb68b3f96031ad251e7390
Downloader: catch error when fetching playlist
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/menu.js", "new_path": "plugins/downloader/menu.js", "diff": "@@ -36,10 +36,16 @@ module.exports = (win, options) => {\nreturn;\n}\n- console.log(\"trying to get playlist ID\" +playlistID);\n- const playlist = await ytpl(playlistID,\n- { limi...
JavaScript
MIT License
th-ch/youtube-music
Downloader: catch error when fetching playlist
675,343
08.05.2021 22:48:18
-7,200
a3778af48a33fb4a4fea9e1186182694c76d14bd
Downloader: rename UrlToJPG to urlToJPG
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/utils.js", "new_path": "plugins/downloader/utils.js", "diff": "@@ -5,7 +5,7 @@ module.exports.getFolder = (customFolder) =>\nmodule.exports.defaultMenuDownloadLabel = \"Download playlist\";\nconst orderedQualityList = [\"maxresdefault\", \"h...
JavaScript
MIT License
th-ch/youtube-music
Downloader: rename UrlToJPG to urlToJPG
675,364
17.05.2021 12:33:43
-7,200
1e2085b99000d5648d5f8ee5bae97b203150bf13
compressor plugin
[ { "change_type": "ADD", "old_path": null, "new_path": "plugins/audio-compressor/front.js", "diff": "+const {\n+ watchDOMElement\n+} = require(\"../../providers/dom-elements\");\n+\n+let videoElement;\n+\n+const applyCompressor = () => {\n+ var audioContext = new AudioContext();\n+\n+ var compressor ...
JavaScript
MIT License
th-ch/youtube-music
compressor plugin
675,364
17.05.2021 13:42:27
-7,200
bae5155e1963062938769d19388d37686cb442a5
use let and const instead of var
[ { "change_type": "MODIFY", "old_path": "plugins/audio-compressor/front.js", "new_path": "plugins/audio-compressor/front.js", "diff": "@@ -5,16 +5,16 @@ const {\nlet videoElement;\nconst applyCompressor = () => {\n- var audioContext = new AudioContext();\n+ const audioContext = new AudioContext();\n-...
JavaScript
MIT License
th-ch/youtube-music
use let and const instead of var
675,364
19.05.2021 21:50:40
-7,200
e99c91ce6ef81fa3ba3d7bba81b5ce17c7e52cc3
get rid of (hopefully) unnecessary watchDOMElement
[ { "change_type": "MODIFY", "old_path": "plugins/audio-compressor/front.js", "new_path": "plugins/audio-compressor/front.js", "diff": "-const {\n- watchDOMElement\n-} = require(\"../../providers/dom-elements\");\n+const applyCompressor = () => {\n+ const videoElement = document.querySelector(\"video\...
JavaScript
MIT License
th-ch/youtube-music
get rid of (hopefully) unnecessary watchDOMElement
675,343
28.05.2021 23:13:07
-7,200
d8f3246e464b98c10dd98abb43782fb45170320a
Bump electron to 12.0.8
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"ytpl\": \"^2.1.1\"\n},\n\"devDependencies\": {\n- \"electron\": \"^12.0.7\",\n+ \"electron\": \"^12.0.8\",\n\"electron-builder\": \"^22.10.5\",\n\"electron-devtools-installer\": \"^3.1.1\",\n\"electron-icon...
JavaScript
MIT License
th-ch/youtube-music
Bump electron to 12.0.8
675,343
03.06.2021 21:43:07
-7,200
b8c6ebfa53ee649b8c86543e8861a24cbb6f85e7
Set test environment per test file
[ { "change_type": "MODIFY", "old_path": "jest.config.js", "new_path": "jest.config.js", "diff": "@@ -2,6 +2,5 @@ module.exports = {\nglobals: {\n__APP__: undefined, // A different app will be launched in each test environment\n},\n- testEnvironment: \"./tests/environment\",\ntestTimeout: 30000, // 30...
JavaScript
MIT License
th-ch/youtube-music
Set test environment per test file
675,343
03.06.2021 21:45:28
-7,200
30e94d1d6f2d15fdfdcd15cf199b781b19fe9745
Refactor videoElement getter into a provider with callback
[ { "change_type": "MODIFY", "old_path": "plugins/disable-autoplay/front.js", "new_path": "plugins/disable-autoplay/front.js", "diff": "-let videoElement = null;\n+const { ontimeupdate } = require(\"../../providers/video-element\");\n-const observer = new MutationObserver((mutations, observer) => {\n-...
JavaScript
MIT License
th-ch/youtube-music
Refactor videoElement getter into a provider with callback
675,343
03.06.2021 21:47:00
-7,200
ca64a77ed0236fd9cfb4b40e450578a186638dc7
Add SponsorBlock plugin
[ { "change_type": "MODIFY", "old_path": "config/defaults.js", "new_path": "config/defaults.js", "diff": "@@ -63,7 +63,19 @@ const defaultConfig = {\nvolumeDown: \"Shift+PageDown\"\n},\nsavedVolume: undefined //plugin save volume between session here\n- }\n+ },\n+ sponsorblock: {\n+ enabled: false,\n+...
JavaScript
MIT License
th-ch/youtube-music
Add SponsorBlock plugin
675,343
03.06.2021 22:15:36
-7,200
4a60aa9f200004ac7319ed93c9c36d5ece540eac
Keep segments when skipping
[ { "change_type": "MODIFY", "old_path": "plugins/sponsorblock/front.js", "new_path": "plugins/sponsorblock/front.js", "diff": "@@ -12,16 +12,16 @@ module.exports = () => {\n});\nontimeupdate((videoElement) => {\n+ currentSegments.forEach((segment) => {\nif (\n- currentSegments.length > 0 &&\n- videoE...
JavaScript
MIT License
th-ch/youtube-music
Keep segments when skipping
675,343
27.06.2021 20:38:08
-7,200
641ae27efd0f88e3f82352fd68dacce4e8e14773
Update ytdl-core and ytpl
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"md5\": \"^2.3.0\",\n\"node-fetch\": \"^2.6.1\",\n\"node-notifier\": \"^9.0.1\",\n- \"ytdl-core\": \"^4.8.2\",\n- \"ytpl\": \"^2.2.0\"\n+ \"ytdl-core\": \"^4.8.3\",\n+ \"ytpl\": \"^2.2.1\"\n},\n\"devDependen...
JavaScript
MIT License
th-ch/youtube-music
Update ytdl-core and ytpl
675,343
27.06.2021 20:46:46
-7,200
e5ab50cebd0a21ba6f96eafd54c766c8eca39879
Override content security policy to allow FFmpeg worker
[ { "change_type": "MODIFY", "old_path": "index.js", "new_path": "index.js", "diff": "const path = require(\"path\");\nconst electron = require(\"electron\");\n+const enhanceWebRequest = require(\"electron-better-web-request\").default;\nconst is = require(\"electron-is\");\nconst unhandled = require(...
JavaScript
MIT License
th-ch/youtube-music
Override content security policy to allow FFmpeg worker
675,343
27.06.2021 20:42:39
-7,200
a9a5d996767abf7cebe35bc62420eca98cb156ea
Do not add network filters in adblocker cache to fix session enhancing
[ { "change_type": "MODIFY", "old_path": "plugins/adblocker/blocker.js", "new_path": "plugins/adblocker/blocker.js", "diff": "@@ -33,7 +33,17 @@ const loadAdBlockerEngine = (\n...additionalBlockLists,\n];\n- ElectronBlocker.fromLists(fetch, lists, {}, cachingOptions)\n+ ElectronBlocker.fromLists(\n+ f...
JavaScript
MIT License
th-ch/youtube-music
Do not add network filters in adblocker cache to fix session enhancing
675,343
27.06.2021 20:43:23
-7,200
38ef4528018d45e26c9a71154f4b60083a3c6d54
Bump ffmpeg version
[ { "change_type": "MODIFY", "old_path": "yarn.lock", "new_path": "yarn.lock", "diff": "integrity sha512-qunWJl5PezpXEm31tb8Qu5z37B5KVA1VYZCpXchMhuAb3X9T7PuE3SlhOwphEoRhzaOa3lpofDfzihAUMFaVPQ==\n\"@ffmpeg/ffmpeg@^0.10.0\":\n- version \"0.10.0\"\n- resolved \"https://registry.yarnpkg.com/@ffmpeg/ffmpeg...
JavaScript
MIT License
th-ch/youtube-music
Bump ffmpeg version
675,343
27.06.2021 21:12:28
-7,200
496836b33b116e06b8d1361ce1f47ab6c9138cae
Bump dependencies to fix vulnerabilities
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"release:win\": \"yarn run clean && electron-builder --win -p always\"\n},\n\"engines\": {\n- \"node\": \">=12.16.1\",\n+ \"node\": \">=12.20\",\n\"npm\": \"Please use yarn and not npm\"\n},\n\"dependencies\...
JavaScript
MIT License
th-ch/youtube-music
Bump dependencies to fix vulnerabilities
675,343
27.06.2021 21:19:33
-7,200
46285a5ed081318a2b40f607381962bb2aca1a48
Bump glob-parent and add lint script (xo)
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"build:linux\": \"yarn run clean && electron-builder --linux\",\n\"build:mac\": \"yarn run clean && electron-builder --mac\",\n\"build:win\": \"yarn run clean && electron-builder --win\",\n+ \"lint\": \"xo\"...
JavaScript
MIT License
th-ch/youtube-music
Bump glob-parent and add lint script (xo)
675,352
20.07.2021 10:57:32
-10,800
52a4608d764a3c81032179ca6e14e00161a20482
create options.global if needed
[ { "change_type": "MODIFY", "old_path": "plugins/shortcuts/menu.js", "new_path": "plugins/shortcuts/menu.js", "diff": "@@ -41,6 +41,9 @@ async function promptKeybind(options, win) {\n}, win);\nif (output) {\n+ if (!options.global) {\n+ options.global = {};\n+ }\nfor (const { value, accelerator } of o...
JavaScript
MIT License
th-ch/youtube-music
create options.global if needed
675,343
06.08.2021 23:12:29
-7,200
c01506dc441bfc538471dc2c552c1a8a2800c611
Bump ytdl/ytpl
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"md5\": \"^2.3.0\",\n\"node-fetch\": \"^2.6.1\",\n\"node-notifier\": \"^9.0.1\",\n- \"ytdl-core\": \"^4.8.3\",\n- \"ytpl\": \"^2.2.1\"\n+ \"ytdl-core\": \"^4.9.1\",\n+ \"ytpl\": \"^2.2.3\"\n},\n\"devDependen...
JavaScript
MIT License
th-ch/youtube-music
Bump ytdl/ytpl
675,340
15.08.2021 12:20:37
-7,200
183bad43f662ffc294be57548720eb09c9fa0cbb
Fix discord clearActivity, menu The callback sends multiple events, in particular two pause when going to the next song, so the timeout wasn't properly cleared. Add menu buttons for the two options
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "@@ -16,6 +16,10 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {\nwin.once(\"ready-to-show\", () => {\nrpc.once(\"ready\", () => {\n// Register the callback\n+...
JavaScript
MIT License
th-ch/youtube-music
Fix discord clearActivity, menu The callback sends multiple events, in particular two pause when going to the next song, so the timeout wasn't properly cleared. Add menu buttons for the two options
675,340
17.08.2021 10:09:11
-7,200
39014572180798772c0a9a464c2bf43fb7d417ce
Discord add menu button for clearing activity
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "@@ -61,3 +61,5 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {\nrpc.login({ clientId }).catch(console.error);\n});\n};\n+\n+module.exports.clear = () => rpc.c...
JavaScript
MIT License
th-ch/youtube-music
Discord add menu button for clearing activity
675,340
18.08.2021 21:39:40
-7,200
36bc9c62b0e964dd8cbc1ad964ae570c0fe7566a
Discord timeout 0 clear activity directly
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "@@ -38,6 +38,12 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {\n// stop the clear activity timout\nclearTimeout(clearActivity);\n+ // clear directly if timeo...
JavaScript
MIT License
th-ch/youtube-music
Discord timeout 0 clear activity directly
675,339
19.08.2021 16:16:49
-7,200
7fa1278b31ec44bdaf8f4d9c7fd3e7ca8f3d738f
Add "Listen Along" button
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "@@ -29,6 +29,9 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {\nsongInfo.uploadDate,\nsongInfo.views.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\") + \...
JavaScript
MIT License
th-ch/youtube-music
Add "Listen Along" button
675,339
19.08.2021 16:49:34
-7,200
f98318e737a01f2dac764730bc34b4a88639d349
Add platform-based user-agent
[ { "change_type": "MODIFY", "old_path": "index.js", "new_path": "index.js", "diff": "@@ -207,8 +207,23 @@ app.once(\"browser-window-created\", (event, win) => {\n// Force user-agent \"Firefox Windows\" for Google OAuth to work\n// From https://github.com/firebase/firebase-js-sdk/issues/2478#issuecomm...
JavaScript
MIT License
th-ch/youtube-music
Add platform-based user-agent
675,339
20.08.2021 12:33:46
-7,200
9df5d921c719f4e0feeced97b18fa6f6e2a6941a
Chrome -> Firefox, simplified using electron-is suggestions by
[ { "change_type": "MODIFY", "old_path": "index.js", "new_path": "index.js", "diff": "@@ -211,19 +211,14 @@ app.once(\"browser-window-created\", (event, win) => {\n// User agents are from https://developers.whatismybrowser.com/useragents/explore/\nconst userAgents = {\nmac: \"Mozilla/5.0 (Macintosh; I...
JavaScript
MIT License
th-ch/youtube-music
Chrome -> Firefox, simplified using electron-is suggestions by @Araxeus
675,343
23.08.2021 00:49:00
-7,200
c66ff2bf0564722b7054db101ca80099318ee07a
Apply clean up util to title + enrich prefixes
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/youtube-dl.js", "new_path": "plugins/downloader/youtube-dl.js", "diff": "@@ -15,7 +15,7 @@ const ytdl = require(\"ytdl-core\");\nconst { triggerAction, triggerActionSync } = require(\"../utils\");\nconst { ACTIONS, CHANNEL } = require(\"./ac...
JavaScript
MIT License
th-ch/youtube-music
Apply clean up util to title + enrich prefixes
675,343
23.08.2021 00:50:49
-7,200
acbe0ac25d568c25fedb514e0e96c66497b0f2d6
Add Genius lyrics plugin
[ { "change_type": "ADD", "old_path": null, "new_path": "plugins/lyrics-genius/back.js", "diff": "+const { join } = require(\"path\");\n+\n+const { ipcMain } = require(\"electron\");\n+const is = require(\"electron-is\");\n+const fetch = require(\"node-fetch\");\n+\n+const { cleanupName } = require(\"...
JavaScript
MIT License
th-ch/youtube-music
Add Genius lyrics plugin
675,343
23.08.2021 01:17:29
-7,200
e888b5c896ad4bd9e79f14c8b74d65df912ab815
Update menu buttons to new format
[ { "change_type": "MODIFY", "old_path": "plugins/downloader/style.css", "new_path": "plugins/downloader/style.css", "diff": "cursor: pointer;\n}\n+.menu-item > .yt-simple-endpoint:hover {\n+ background-color: var(--ytmusic-menu-item-hover-background-color);\n+}\n+\n.menu-icon {\nflex: var(--ytmusic-m...
JavaScript
MIT License
th-ch/youtube-music
Update menu buttons to new format
675,340
27.08.2021 16:32:55
-7,200
b5fd6b4969a318b3738583e7f33eb2c0cf295237
Discord add reconnecting functionality Clear rpc on disconnect Add menu button to reconnect
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "const Discord = require(\"discord-rpc\");\n+const { dev } = require(\"electron-is\")\nconst registerCallback = require(\"../../providers/song-info\");\n-const rpc = new Discord.Client({\...
JavaScript
MIT License
th-ch/youtube-music
Discord add reconnecting functionality Clear rpc on disconnect Add menu button to reconnect
675,340
27.08.2021 17:07:23
-7,200
ef66612cc87e749f702a96248099d7178cad8ae7
Discord show error dialog on reconnect error
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "const Discord = require(\"discord-rpc\");\n-const { dev } = require(\"electron-is\")\n+const { dev } = require(\"electron-is\");\n+const { dialog } = require(\"electron\");\nconst regist...
JavaScript
MIT License
th-ch/youtube-music
Discord show error dialog on reconnect error
675,370
02.09.2021 15:48:42
-19,080
e255777283c7b16611404cbfe260bfcca75a1e40
Add mpris support
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"electron-updater\": \"^4.3.10\",\n\"filenamify\": \"^4.3.0\",\n\"md5\": \"^2.3.0\",\n+ \"mpris-service\": \"^2.1.2\",\n\"node-fetch\": \"^2.6.1\",\n\"node-notifier\": \"^9.0.1\",\n\"ytdl-core\": \"^4.9.1\",...
JavaScript
MIT License
th-ch/youtube-music
Add mpris support
675,366
08.09.2021 22:45:49
10,800
302d3f693f60cfffc047b862206049540dd7e587
add tuna plugin for obs
[ { "change_type": "ADD", "old_path": null, "new_path": "plugins/tuna-obs/back.js", "diff": "+\n+const { ipcRenderer } = require(\"electron\");\n+const registerCallback = require(\"../../providers/song-info\");\n+\n+const fetch = require('node-fetch');\n+\n+const post = (data) => {\n+ const port = 160...
JavaScript
MIT License
th-ch/youtube-music
add tuna plugin for obs
675,343
12.09.2021 22:17:54
-7,200
069f9855d11e64010ce6cd3a1a60911e93fdbd67
nit: fix code style for tuna obs (+ typo)
[ { "change_type": "MODIFY", "old_path": "plugins/tuna-obs/back.js", "new_path": "plugins/tuna-obs/back.js", "diff": "-\nconst { ipcRenderer } = require(\"electron\");\n-const registerCallback = require(\"../../providers/song-info\");\n-\nconst fetch = require('node-fetch');\n+const registerCallback =...
JavaScript
MIT License
th-ch/youtube-music
nit: fix code style for tuna obs (+ typo)
675,343
15.09.2021 22:51:58
-7,200
6dcfb336c26820045ef96d41b602deee580a1ed7
Fix missing import in shortcuts plugin
[ { "change_type": "MODIFY", "old_path": "plugins/shortcuts/back.js", "new_path": "plugins/shortcuts/back.js", "diff": "const { globalShortcut } = require(\"electron\");\n+const is = require(\"electron-is\");\nconst electronLocalshortcut = require(\"electron-localshortcut\");\n-const { setupMPRIS } = ...
JavaScript
MIT License
th-ch/youtube-music
Fix missing import in shortcuts plugin
675,340
05.10.2021 10:10:36
-7,200
587818b91ed0730bb75c421f27405a3e1038c4e4
Add type, clear on close
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "@@ -97,7 +97,10 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {\n}\n// Song information changed, so lets update the rich presence\n+ // @see https://discord.c...
JavaScript
MIT License
th-ch/youtube-music
Add type, clear on close
675,340
11.10.2021 15:02:24
-7,200
b9dbd8bd4def9e9f43f25946228ed495f3365417
Allow disable listen along
[ { "change_type": "MODIFY", "old_path": "config/defaults.js", "new_path": "config/defaults.js", "diff": "@@ -45,7 +45,8 @@ const defaultConfig = {\ndiscord: {\nenabled: false,\nactivityTimoutEnabled: true, // if enabled, the discord rich presence gets cleared when music paused after the time specifie...
JavaScript
MIT License
th-ch/youtube-music
Allow disable listen along (#426)
675,370
13.10.2021 12:14:38
-19,080
88ee0fb9893438637a2c47420a788f24a040f42f
fix: mpris was not registering itself before. Sorry I missed that somehow, because playerctl controls were working. That was because of chromium was also registering itself for mpris.
[ { "change_type": "MODIFY", "old_path": "plugins/shortcuts/back.js", "new_path": "plugins/shortcuts/back.js", "diff": "const { globalShortcut } = require(\"electron\");\nconst is = require(\"electron-is\");\nconst electronLocalshortcut = require(\"electron-localshortcut\");\n-\nconst getSongControls ...
JavaScript
MIT License
th-ch/youtube-music
fix: mpris was not registering itself before. Sorry I missed that somehow, because playerctl controls were working. That was because of chromium was also registering itself for mpris.
675,370
13.10.2021 12:15:13
-19,080
a76f12c01c1227d32fa8f24b81e9bcba4f43b0f8
feat: add play and pause seperate song controller.
[ { "change_type": "MODIFY", "old_path": "plugins/shortcuts/back.js", "new_path": "plugins/shortcuts/back.js", "diff": "@@ -21,7 +21,7 @@ function _registerLocalShortcut(win, shortcut, action) {\nfunction registerShortcuts(win, options) {\nconst songControls = getSongControls(win);\n- const { playPaus...
JavaScript
MIT License
th-ch/youtube-music
feat: add play and pause seperate song controller.
675,370
14.10.2021 10:04:36
-19,080
81fb5118aab95b81e5d7c8265ab7c63069a3df3e
fix: don't create play pause method unneccessarily
[ { "change_type": "MODIFY", "old_path": "plugins/shortcuts/back.js", "new_path": "plugins/shortcuts/back.js", "diff": "@@ -21,7 +21,7 @@ function _registerLocalShortcut(win, shortcut, action) {\nfunction registerShortcuts(win, options) {\nconst songControls = getSongControls(win);\n- const { play, pa...
JavaScript
MIT License
th-ch/youtube-music
fix: don't create play pause method unneccessarily
675,370
14.10.2021 10:06:05
-19,080
361606427a2509893c8bf457cdcce5da49ebf6a9
fix: remove unused play pause functions
[ { "change_type": "MODIFY", "old_path": "providers/song-controls.js", "new_path": "providers/song-controls.js", "diff": "@@ -13,8 +13,6 @@ module.exports = (win) => {\nprevious: () => pressKey(win, \"k\"),\nnext: () => pressKey(win, \"j\"),\nplayPause: () => win.webContents.send(\"playPause\"),\n- pl...
JavaScript
MIT License
th-ch/youtube-music
fix: remove unused play pause functions
675,352
15.10.2021 14:38:09
-10,800
dda18a72afaf07c5971833cab79fedf335061385
new auto confirm when paused
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"build:mac\": \"yarn run clean && electron-builder --mac\",\n\"build:win\": \"yarn run clean && electron-builder --win\",\n\"lint\": \"xo\",\n- \"plugins\": \"yarn run plugin:adblocker && yarn run plugin:aut...
JavaScript
MIT License
th-ch/youtube-music
new auto confirm when paused
675,352
15.10.2021 15:40:34
-10,800
ce4580605df07ae25eb4535508be2dd4415c55e5
remove upgrade button + makes img unselectable
[ { "change_type": "MODIFY", "old_path": "menu.js", "new_path": "menu.js", "diff": "@@ -76,6 +76,14 @@ const mainMenuTemplate = (win) => {\nconfig.set(\"options.resumeOnStart\", item.checked);\n},\n},\n+ {\n+ label: \"Remove upgrade button\",\n+ type: \"checkbox\",\n+ checked: config.get(\"options.rem...
JavaScript
MIT License
th-ch/youtube-music
remove upgrade button + makes img unselectable
675,370
17.10.2021 10:54:26
-19,080
663507b3f80074898a43bbab764529bfc9d432dc
fix: player status when play at start
[ { "change_type": "MODIFY", "old_path": "plugins/shortcuts/back.js", "new_path": "plugins/shortcuts/back.js", "diff": "@@ -36,6 +36,9 @@ function registerShortcuts(win, options) {\n'xesam:title': songInfo.title,\n'xesam:artist': songInfo.artist\n};\n+ if (!songInfo.isPaused) {\n+ player.playbackStatu...
JavaScript
MIT License
th-ch/youtube-music
fix: player status when play at start
675,340
19.10.2021 18:40:27
-7,200
4d4dacbc711fe9b784681dee63bc128da5683a98
discord: clean up export (follow-up
[ { "change_type": "MODIFY", "old_path": "plugins/discord/back.js", "new_path": "plugins/discord/back.js", "diff": "@@ -145,7 +145,4 @@ module.exports.clear = () => {\n};\nmodule.exports.connect = connect;\nmodule.exports.registerRefresh = (cb) => refreshCallbacks.push(cb);\n-/**\n- * @type {Info}\n- ...
JavaScript
MIT License
th-ch/youtube-music
discord: clean up export (follow-up #380)
675,352
23.10.2021 15:21:49
-10,800
831b1ea8e12afde9bf31b2259efcc0eaeea30b45
access window._lact directly
[ { "change_type": "MODIFY", "old_path": "preload.js", "new_path": "preload.js", "diff": "@@ -47,9 +47,6 @@ document.addEventListener(\"DOMContentLoaded\", () => {\nglobal.reload = () =>\nremote.getCurrentWindow().webContents.loadURL(config.get(\"url\"));\n- // Block \"You still there?\" popup by sett...
JavaScript
MIT License
th-ch/youtube-music
access window._lact directly
675,336
23.10.2021 15:38:46
-10,800
c897bedd9019c79458d997384f542bda9ee93424
New plugin: Blur navigation bar
[ { "change_type": "ADD", "old_path": null, "new_path": "plugins/blur-nav-bar/back.js", "diff": "+const path = require(\"path\");\n+const { injectCSS } = require(\"../utils\");\n+\n+module.exports = win => {\n+ injectCSS(win.webContents, path.join(__dirname, \"style.css\"));\n+};\n" }, { "chan...
JavaScript
MIT License
th-ch/youtube-music
New plugin: Blur navigation bar
675,352
23.10.2021 16:13:06
-10,800
51364b63e7b7cb9cc2b33266bba9b2852b769dfe
get songInfo from youtube API
[ { "change_type": "MODIFY", "old_path": "providers/song-info-front.js", "new_path": "providers/song-info-front.js", "diff": "@@ -9,23 +9,27 @@ ipcRenderer.on(\"update-song-info\", async (_, extractedSongInfo) => {\nglobal.songInfo.image = await getImage(global.songInfo.imageSrc);\n});\n-const injectL...
JavaScript
MIT License
th-ch/youtube-music
get songInfo from youtube API
675,352
23.10.2021 16:21:42
-10,800
978aca1f9aac3148909d20f69d0e52ea11d6cb08
use loadeddata instead of loadedmetadata send event closer to actual initial start time of video
[ { "change_type": "MODIFY", "old_path": "providers/song-info-front.js", "new_path": "providers/song-info-front.js", "diff": "@@ -29,7 +29,7 @@ function setup() {\n}\nfunction injectListener() {\n- document.querySelector('video').addEventListener('loadedmetadata', () => {\n+ document.querySelector('vi...
JavaScript
MIT License
th-ch/youtube-music
use loadeddata instead of loadedmetadata send event closer to actual initial start time of video
675,352
23.10.2021 16:57:44
-10,800
bb2e1bd61604975a264cdee00d82dcd099728eca
use youtube native api to change volume
[ { "change_type": "MODIFY", "old_path": "plugins/precise-volume/front.js", "new_path": "plugins/precise-volume/front.js", "diff": "@@ -3,8 +3,36 @@ const { ipcRenderer, remote } = require(\"electron\");\nconst { setOptions } = require(\"../../config/plugins\");\nfunction $(selector) { return document...
JavaScript
MIT License
th-ch/youtube-music
use youtube native api to change volume
675,352
23.10.2021 17:18:58
-10,800
9b1a5b8d26f93c58cf78b95487ce3d0cf80be01f
clarify var names in cleanupName()
[ { "change_type": "MODIFY", "old_path": "providers/song-info.js", "new_path": "providers/song-info.js", "diff": "@@ -107,15 +107,15 @@ const suffixesToRemove = [\n\" (clip officiel)\",\n];\n-function cleanupName(artist) {\n- if (!artist) return artist;\n- const lowerCaseArtist = artist.toLowerCase();...
JavaScript
MIT License
th-ch/youtube-music
clarify var names in cleanupName()
675,343
24.10.2021 14:01:00
-7,200
02f4aabead52f4279bcfa93343868ce99cab27d0
Fix condition on query selector
[ { "change_type": "MODIFY", "old_path": "preload.js", "new_path": "preload.js", "diff": "@@ -79,6 +79,9 @@ function onApiLoaded() {\n// Remove upgrade button\nif (config.get(\"options.removeUpgradeButton\")) {\n- document.querySelector('ytmusic-pivot-bar-item-renderer[tab-id=\"SPunlimited\"]')?.style...
JavaScript
MIT License
th-ch/youtube-music
Fix condition on query selector
675,343
24.10.2021 14:01:29
-7,200
f9a4bffa55761f28bbc4b2b6fd202cd65324ab77
Fix styling of store migrations
[ { "change_type": "MODIFY", "old_path": "config/store.js", "new_path": "config/store.js", "diff": "@@ -9,7 +9,7 @@ const migrations = {\n}\n},\n\">=1.12.0\": (store) => {\n- const options = store.get(\"plugins.shortcuts\")\n+ const options = store.get(\"plugins.shortcuts\");\nlet updated = false;\nfo...
JavaScript
MIT License
th-ch/youtube-music
Fix styling of store migrations
675,343
24.10.2021 14:02:01
-7,200
18f87c7b0d4a2c9be306d2e6597e3ec9094f1b76
Add migration for precise-volume plugin (`globalShortcuts` key)
[ { "change_type": "MODIFY", "old_path": "config/store.js", "new_path": "config/store.js", "diff": "@@ -3,6 +3,13 @@ const Store = require(\"electron-store\");\nconst defaults = require(\"./defaults\");\nconst migrations = {\n+ \">=1.14.0\": (store) => {\n+ if (\n+ typeof store.get(\"plugins.precise-v...
JavaScript
MIT License
th-ch/youtube-music
Add migration for precise-volume plugin (`globalShortcuts` key)
675,343
24.10.2021 17:55:37
-7,200
a47c906ab2ac47bd0a5589099b4e32bf1d3c4ae6
Add audio compressor plugin to readme
[ { "change_type": "MODIFY", "old_path": "readme.md", "new_path": "readme.md", "diff": "@@ -35,6 +35,7 @@ Install the `youtube-music-bin` package from the AUR. For AUR installation instr\n## Available plugins:\n- **Ad Blocker**: block all ads and tracking out of the box\n+- **Audio compressor**: apply...
JavaScript
MIT License
th-ch/youtube-music
Add audio compressor plugin to readme
675,352
24.10.2021 20:09:30
-10,800
67e43bc0e39e9591b96a85f5ce124f635d94fe51
Video Toggle Plugin
[ { "change_type": "MODIFY", "old_path": "config/defaults.js", "new_path": "config/defaults.js", "diff": "@@ -77,6 +77,10 @@ const defaultConfig = {\n\"music_offtopic\",\n],\n},\n+ \"video-toggle\": {\n+ enabled: false,\n+ forceHide: false,\n+ },\n},\n};\n" }, { "change_type": "DELETE", "o...
JavaScript
MIT License
th-ch/youtube-music
Video Toggle Plugin
675,352
24.10.2021 21:17:45
-10,800
43a9093eb7bd27fb810e78c89158fc622651a1c5
set resume on start url to songInfo.url
[ { "change_type": "MODIFY", "old_path": "index.js", "new_path": "index.js", "diff": "@@ -197,13 +197,6 @@ app.once(\"browser-window-created\", (event, win) => {\nevent.preventDefault();\n});\n- win.webContents.on(\"did-navigate-in-page\", () => {\n- const url = win.webContents.getURL();\n- if (url.st...
JavaScript
MIT License
th-ch/youtube-music
set resume on start url to songInfo.url
675,352
25.10.2021 00:43:42
-10,800
b7b55b5c8321b89a32a49774b6f555d5c95aed20
Add blur to (library)header + make in-app-menu compatible
[ { "change_type": "MODIFY", "old_path": "plugins/blur-nav-bar/style.css", "new_path": "plugins/blur-nav-bar/style.css", "diff": "-#nav-bar-background {\n+#nav-bar-background, #header.ytmusic-item-section-renderer {\nbackground: rgba(0, 0, 0, 0.3) !important;\nbackdrop-filter: blur(18px) !important;\n...
JavaScript
MIT License
th-ch/youtube-music
Add blur to (library)header + make in-app-menu compatible
675,352
25.10.2021 22:45:11
-10,800
12c31725fe6ac466ad8350a2d4c109ca81e6f3da
fixes scrollbar position relative to navbar depending on player-page-open
[ { "change_type": "MODIFY", "old_path": "plugins/in-app-menu/front.js", "new_path": "plugins/in-app-menu/front.js", "diff": "const { remote, ipcRenderer } = require(\"electron\");\nconst customTitlebar = require(\"custom-electron-titlebar\");\n+function $(selector) { return document.querySelector(sel...
JavaScript
MIT License
th-ch/youtube-music
fixes scrollbar position relative to navbar depending on player-page-open
675,352
26.10.2021 19:07:10
-10,800
02cb39602fdf82bf04b00c302cc065eeb0db3e78
alert on initial hide-menu enabled
[ { "change_type": "MODIFY", "old_path": "index.js", "new_path": "index.js", "diff": "@@ -348,6 +348,14 @@ app.on(\"ready\", () => {\n});\n}\n+ if(config.get(\"options.hideMenu\") && !config.get(\"options.hideMenuWarned\")) {\n+ electron.dialog.showMessageBox(mainWindow, {\n+ type: 'info',\n+ title: '...
JavaScript
MIT License
th-ch/youtube-music
alert on initial hide-menu enabled
675,352
26.10.2021 20:56:09
-10,800
6e94422b150bcf44a58dbff05b615f0cab9a4051
use apiLoaded event in audio-compressor plugin
[ { "change_type": "MODIFY", "old_path": "plugins/audio-compressor/front.js", "new_path": "plugins/audio-compressor/front.js", "diff": "const applyCompressor = () => {\n- const videoElement = document.querySelector(\"video\");\n-\n- // If video element is not loaded yet try again\n- if(videoElement ==...
JavaScript
MIT License
th-ch/youtube-music
use apiLoaded event in audio-compressor plugin
675,352
30.10.2021 12:00:29
-10,800
48a2a131632049d3275634f126986d138fc4fc5a
fix playback speed plugin
[ { "change_type": "MODIFY", "old_path": "plugins/playback-speed/front.js", "new_path": "plugins/playback-speed/front.js", "diff": "-const {\n- getSongMenu,\n- watchDOMElement,\n-} = require(\"../../providers/dom-elements\");\n+const { getSongMenu } = require(\"../../providers/dom-elements\");\nconst ...
JavaScript
MIT License
th-ch/youtube-music
fix playback speed plugin
675,352
30.10.2021 12:05:03
-10,800
68996809f0885d45a6a8417c1c51b03f9f225a59
add apiLoaded event to disable-autoplay plugin
[ { "change_type": "MODIFY", "old_path": "plugins/disable-autoplay/front.js", "new_path": "plugins/disable-autoplay/front.js", "diff": "-const { ontimeupdate } = require(\"../../providers/video-element\");\n-\nmodule.exports = () => {\n- ontimeupdate((videoElement) => {\n- if (videoElement.currentTime...
JavaScript
MIT License
th-ch/youtube-music
add apiLoaded event to disable-autoplay plugin
675,352
30.10.2021 12:17:32
-10,800
62e8e673ebdd1b358a91d9e67c9e13e25f1d18e4
use apiLoaded 'once'
[ { "change_type": "MODIFY", "old_path": "plugins/disable-autoplay/front.js", "new_path": "plugins/disable-autoplay/front.js", "diff": "@@ -3,5 +3,5 @@ module.exports = () => {\ndocument.querySelector('video').addEventListener('loadeddata', e => {\ne.target.pause();\n})\n- })\n+ }, { once: true, passi...
JavaScript
MIT License
th-ch/youtube-music
use apiLoaded 'once'
675,352
30.10.2021 12:43:51
-10,800
286bc0113e51bffd442a7ad326a79f4895b0e629
fix sponsorblock plugin
[ { "change_type": "MODIFY", "old_path": "plugins/disable-autoplay/front.js", "new_path": "plugins/disable-autoplay/front.js", "diff": "module.exports = () => {\n- document.addEventListener('apiLoaded', e => {\n+ document.addEventListener('apiLoaded', () => {\ndocument.querySelector('video').addEventL...
JavaScript
MIT License
th-ch/youtube-music
fix sponsorblock plugin
675,352
30.10.2021 13:17:47
-10,800
bca22d8e2427a20a1ed0139f0bbe092b1cf554c6
update electron to v12.2.2 fixes fetch CERT_HAS_EXPIRED error
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"ytpl\": \"^2.2.3\"\n},\n\"devDependencies\": {\n- \"electron\": \"^12.1.0\",\n+ \"electron\": \"^12.2.2\",\n\"electron-builder\": \"^22.10.5\",\n\"electron-devtools-installer\": \"^3.1.1\",\n\"electron-icon...
JavaScript
MIT License
th-ch/youtube-music
update electron to v12.2.2 fixes fetch CERT_HAS_EXPIRED error
675,352
30.10.2021 13:30:38
-10,800
d35fef82feb81f305401b7d215504d8110775616
fix sponsoblock spam updating time
[ { "change_type": "MODIFY", "old_path": "plugins/sponsorblock/front.js", "new_path": "plugins/sponsorblock/front.js", "diff": "@@ -14,7 +14,7 @@ module.exports = () => {\ncurrentSegments.forEach((segment) => {\nif (\ne.target.currentTime >= segment[0] &&\n- e.target.currentTime <= segment[1]\n+ e.tar...
JavaScript
MIT License
th-ch/youtube-music
fix sponsoblock spam updating time
675,352
30.10.2021 14:49:03
-10,800
6c1a4c0ac24dcbee02d2d613a3c1631518d4a0f8
playbackSpeed wheel listener
[ { "change_type": "MODIFY", "old_path": "plugins/playback-speed/front.js", "new_path": "plugins/playback-speed/front.js", "diff": "@@ -5,6 +5,8 @@ function $(selector) { return document.querySelector(selector); }\nconst slider = ElementFromFile(templatePath(__dirname, \"slider.html\"));\n+const round...
JavaScript
MIT License
th-ch/youtube-music
playbackSpeed wheel listener
675,352
30.10.2021 14:54:00
-10,800
9bd089adb0c1cf7270bcef02589b315006753ead
add check for lowest playback speed (0.07)
[ { "change_type": "MODIFY", "old_path": "plugins/playback-speed/front.js", "new_path": "plugins/playback-speed/front.js", "diff": "@@ -67,11 +67,12 @@ const setupSliderListeners = () => {\nupdatePlayBackSpeed();\n})\nslider.addEventListener('wheel', e => {\n+ if (playbackSpeed <= 0.07) return; // low...
JavaScript
MIT License
th-ch/youtube-music
add check for lowest playback speed (0.07)
675,352
30.10.2021 15:38:40
-10,800
1434849142bb3834f47d83c5e8c79cacfc764743
simplify playback rate steps
[ { "change_type": "MODIFY", "old_path": "plugins/playback-speed/front.js", "new_path": "plugins/playback-speed/front.js", "diff": "@@ -7,23 +7,11 @@ const slider = ElementFromFile(templatePath(__dirname, \"slider.html\"));\nconst roundToTwo = (n) => Math.round( n * 1e2 ) / 1e2;\n-const MIN_PLAYBACK_S...
JavaScript
MIT License
th-ch/youtube-music
simplify playback rate steps
675,352
30.10.2021 15:56:12
-10,800
6243e6fd489249474db06715cac69f8646f802ce
set max playback speed to 16 ;)
[ { "change_type": "MODIFY", "old_path": "plugins/playback-speed/front.js", "new_path": "plugins/playback-speed/front.js", "diff": "@@ -8,6 +8,7 @@ const slider = ElementFromFile(templatePath(__dirname, \"slider.html\"));\nconst roundToTwo = (n) => Math.round( n * 1e2 ) / 1e2;\nconst MIN_PLAYBACK_SPEE...
JavaScript
MIT License
th-ch/youtube-music
set max playback speed to 16 ;)
675,343
01.11.2021 12:13:22
-3,600
3de574a2e4a1cdd673d47ac3d3cc7a94ed33ed30
Remove debug log from genius plugin + add a dev log
[ { "change_type": "MODIFY", "old_path": "plugins/lyrics-genius/front.js", "new_path": "plugins/lyrics-genius/front.js", "diff": "const { ipcRenderer } = require(\"electron\");\n+const is = require(\"electron-is\");\nmodule.exports = () => {\nipcRenderer.on(\"update-song-info\", (_, extractedSongInfo)...
JavaScript
MIT License
th-ch/youtube-music
Remove debug log from genius plugin + add a dev log
675,352
01.11.2021 18:07:21
-7,200
c68daabeab4f67861501f4bc4e7bf6ce1719aa26
lint audio-compressor plugin
[ { "change_type": "MODIFY", "old_path": "plugins/audio-compressor/front.js", "new_path": "plugins/audio-compressor/front.js", "diff": "const applyCompressor = () => {\nconst audioContext = new AudioContext();\n- let compressor = audioContext.createDynamicsCompressor();\n+ const compressor = audioCont...
JavaScript
MIT License
th-ch/youtube-music
lint audio-compressor plugin
675,352
01.11.2021 19:57:15
-7,200
64637a6ac5b547d3b805757fe467addeaefd7103
Reset segments on song end
[ { "change_type": "MODIFY", "old_path": "plugins/sponsorblock/front.js", "new_path": "plugins/sponsorblock/front.js", "diff": "@@ -10,7 +10,9 @@ module.exports = () => {\n});\ndocument.addEventListener('apiLoaded', () => {\n- document.querySelector('video').addEventListener('timeupdate', e => {\n+ co...
JavaScript
MIT License
th-ch/youtube-music
Reset segments on song end
675,352
01.11.2021 19:57:28
-7,200
b1ffd93bc27eb3703569b374fd2f39266e40850a
lint in-app-menu
[ { "change_type": "MODIFY", "old_path": "plugins/in-app-menu/front.js", "new_path": "plugins/in-app-menu/front.js", "diff": "@@ -17,16 +17,15 @@ module.exports = () => {\n// Increases the right margin of Navbar background when the scrollbar is visible to avoid blocking it (z-index doesn't affect it)\...
JavaScript
MIT License
th-ch/youtube-music
lint in-app-menu
675,352
01.11.2021 20:03:57
-7,200
7b9415033f6553a03b3ac9c12035fa093eda7309
use `loadedmetadata` instead of `loadeddata`
[ { "change_type": "MODIFY", "old_path": "providers/song-info-front.js", "new_path": "providers/song-info-front.js", "diff": "@@ -11,7 +11,7 @@ ipcRenderer.on(\"update-song-info\", async (_, extractedSongInfo) => {\nmodule.exports = () => {\ndocument.addEventListener('apiLoaded', e => {\n- document.qu...
JavaScript
MIT License
th-ch/youtube-music
use `loadedmetadata` instead of `loadeddata`
675,352
01.11.2021 22:23:26
-7,200
41285ac9fc6d0e0f6b8b8ef130917c19d13bc09e
fix slider not working on tap
[ { "change_type": "MODIFY", "old_path": "plugins/playback-speed/front.js", "new_path": "plugins/playback-speed/front.js", "diff": "@@ -24,6 +24,7 @@ const updatePlayBackSpeed = () => {\n};\nlet menu;\n+let observingSlider = false;\nconst observePopupContainer = () => {\nconst observer = new MutationO...
JavaScript
MIT License
th-ch/youtube-music
fix slider not working on tap
675,352
01.11.2021 22:57:32
-7,200
0287b6942490a4c1d7c44a532a56b3a735948346
fix missing thumbnails +forced push fix woupsie
[ { "change_type": "MODIFY", "old_path": "plugins/video-toggle/front.js", "new_path": "plugins/video-toggle/front.js", "diff": "@@ -52,6 +52,10 @@ function changeDisplay(showVideo) {\nfunction videoStarted() {\nif (videoExist()) {\n+ const thumbnails = $('#movie_player').getPlayerResponse()?.videoDeta...
JavaScript
MIT License
th-ch/youtube-music
fix missing thumbnails +forced push fix woupsie
675,352
01.11.2021 23:10:15
-7,200
62bacf76d07bef6f8c9e592d1d3eb695d384dede
change file names to lower case
[ { "change_type": "MODIFY", "old_path": "plugins/video-toggle/front.js", "new_path": "plugins/video-toggle/front.js", "diff": "@@ -7,7 +7,7 @@ function $(selector) { return document.querySelector(selector); }\nlet options;\nconst switchButtonDiv = ElementFromFile(\n- templatePath(__dirname, \"buttonT...
JavaScript
MIT License
th-ch/youtube-music
change file names to lower case
675,343
01.11.2021 22:40:26
-3,600
953d6fe3e40efe7fae480d3400ce338cae59e45f
Migrate old "hide-video-player" plugin to new one
[ { "change_type": "MODIFY", "old_path": "config/store.js", "new_path": "config/store.js", "diff": "@@ -9,6 +9,11 @@ const migrations = {\n) {\nstore.set(\"plugins.precise-volume.globalShortcuts\", {});\n}\n+\n+ if (store.get(\"plugins.hide-video-player.enabled\")) {\n+ store.delete(\"plugins.hide-vid...
JavaScript
MIT License
th-ch/youtube-music
Migrate old "hide-video-player" plugin to new one
675,343
01.11.2021 22:42:03
-3,600
cee2e066b95068b2c4ed172dc77ac17c04fbd107
Fix apiLoaded event listener in video-toggle plugin
[ { "change_type": "MODIFY", "old_path": "plugins/video-toggle/front.js", "new_path": "plugins/video-toggle/front.js", "diff": "@@ -14,7 +14,7 @@ const switchButtonDiv = ElementFromFile(\nmodule.exports = (_options) => {\nif (_options.forceHide) return;\noptions = _options;\n- document.addEventListene...
JavaScript
MIT License
th-ch/youtube-music
Fix apiLoaded event listener in video-toggle plugin
675,343
01.11.2021 22:49:34
-3,600
d7c4716a6e709a1552315654c2744538248332b9
Re-order plugins in readme
[ { "change_type": "MODIFY", "old_path": "readme.md", "new_path": "readme.md", "diff": "@@ -40,7 +40,6 @@ Install the `youtube-music-bin` package from the AUR. For AUR installation instr\n- **Disable autoplay**: makes every song start in \"paused\" mode\n- [**Discord**](https://discord.com/): show you...
JavaScript
MIT License
th-ch/youtube-music
Re-order plugins in readme
675,352
09.11.2021 10:03:06
-7,200
bbece751c0b5c8e78bbc1dcc5455eb190c219a8a
lint playback speed
[ { "change_type": "MODIFY", "old_path": "plugins/playback-speed/front.js", "new_path": "plugins/playback-speed/front.js", "diff": "@@ -5,15 +5,13 @@ function $(selector) { return document.querySelector(selector); }\nconst slider = ElementFromFile(templatePath(__dirname, \"slider.html\"));\n-const rou...
JavaScript
MIT License
th-ch/youtube-music
lint playback speed
675,352
09.11.2021 13:29:41
-7,200
65ce62adc1077a0fd36d2a7e49df567e43ca2595
use $('video') srcChanged event instead of loadeddata/metadata
[ { "change_type": "MODIFY", "old_path": "plugins/disable-autoplay/front.js", "new_path": "plugins/disable-autoplay/front.js", "diff": "module.exports = () => {\ndocument.addEventListener('apiLoaded', () => {\n- document.querySelector('video').addEventListener('loadeddata', e => {\n+ document.querySel...
JavaScript
MIT License
th-ch/youtube-music
use $('video') srcChanged event instead of loadeddata/metadata