[GH-ISSUE #28] Run without the cmd window keeps open (On Windows) #131

Closed
opened 2026-03-01 15:46:34 +03:00 by kerem · 8 comments
Owner

Originally created by @pickaxe828 on GitHub (Apr 30, 2021).
Original GitHub issue: https://github.com/AnanthVivekanand/spotify-adblock/issues/28

It would love to see if there is a way to run this without require the cmd keeps opening because that is kinda annoying. (MITM mode)

Originally created by @pickaxe828 on GitHub (Apr 30, 2021). Original GitHub issue: https://github.com/AnanthVivekanand/spotify-adblock/issues/28 It would love to see if there is a way to run this without require the cmd keeps opening because that is kinda annoying. (MITM mode)
kerem closed this issue 2026-03-01 15:46:34 +03:00
Author
Owner

@AngryKiller commented on GitHub (May 1, 2021):

You can use a tool such as PM2 to run it as a daemon and other things, such as running it at boot, etc

<!-- gh-comment-id:830663692 --> @AngryKiller commented on GitHub (May 1, 2021): You can use a tool such as PM2 to run it as a daemon and other things, such as running it at boot, etc
Author
Owner

@pickaxe828 commented on GitHub (May 1, 2021):

You can use a tool such as PM2 to run it as a daemon and other things, such as running it at boot, etc

How about on Windows?

<!-- gh-comment-id:830667413 --> @pickaxe828 commented on GitHub (May 1, 2021): > You can use a tool such as PM2 to run it as a daemon and other things, such as running it at boot, etc How about on Windows?
Author
Owner

@AngryKiller commented on GitHub (May 1, 2021):

I'm pretty sure PM2 also works on Windows

<!-- gh-comment-id:830668884 --> @AngryKiller commented on GitHub (May 1, 2021): I'm pretty sure PM2 also works on Windows
Author
Owner

@AnanthVivekanand commented on GitHub (May 1, 2021):

Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however.

Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder.

<!-- gh-comment-id:830669018 --> @AnanthVivekanand commented on GitHub (May 1, 2021): Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however. Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder.
Author
Owner

@pickaxe828 commented on GitHub (May 15, 2021):

Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however.

Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder.

I added a VB script in the folder that starts the node mitm.js without opening a cmd window
And I also created a shortcut to the VB script in the shell:startup folder to make sure the proxy starts every time when I turn on my computer.

<!-- gh-comment-id:841595735 --> @pickaxe828 commented on GitHub (May 15, 2021): > Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however. > > Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder. I added a VB script in the folder that starts the `node mitm.js` without opening a cmd window And I also created a shortcut to the VB script in the `shell:startup` folder to make sure the proxy starts every time when I turn on my computer.
Author
Owner

@jckefan commented on GitHub (May 15, 2021):

Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however.
Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder.

I added a VB script in the folder that starts the node mitm.js without opening a cmd window
And I also created a shortcut to the VB script in the shell:startup folder to make sure the proxy starts every time when I turn on my computer.

Mind sharing the script? Thanks

<!-- gh-comment-id:841673265 --> @jckefan commented on GitHub (May 15, 2021): > > Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however. > > Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder. > > I added a VB script in the folder that starts the `node mitm.js` without opening a cmd window > And I also created a shortcut to the VB script in the `shell:startup` folder to make sure the proxy starts every time when I turn on my computer. Mind sharing the script? Thanks
Author
Owner

@pickaxe828 commented on GitHub (May 18, 2021):

Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however.
Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder.

I added a VB script in the folder that starts the node mitm.js without opening a cmd window
And I also created a shortcut to the VB script in the shell:startup folder to make sure the proxy starts every time when I turn on my computer.

Mind sharing the script? Thanks

@jckefan

Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
StrArgs = "node ""D:\APP\Spotify Ad Block\spotify-adblock-macos\mitm.js"" "
oShell.Run strArgs, 0, false

Put this code in a .vbs file in the ./spotify-adblock-macos so you don't need to certify the certificates everywhere
Then make a shortcut to this file in shell:startup folder
So this will ad block start every time the computer starts

<!-- gh-comment-id:843008350 --> @pickaxe828 commented on GitHub (May 18, 2021): > > > Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however. > > > Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder. > > > > > > I added a VB script in the folder that starts the `node mitm.js` without opening a cmd window > > And I also created a shortcut to the VB script in the `shell:startup` folder to make sure the proxy starts every time when I turn on my computer. > > Mind sharing the script? Thanks @jckefan ```vbs Set oShell = CreateObject ("Wscript.Shell") Dim strArgs StrArgs = "node ""D:\APP\Spotify Ad Block\spotify-adblock-macos\mitm.js"" " oShell.Run strArgs, 0, false ``` Put this code in a `.vbs` file in the `./spotify-adblock-macos` so you don't need to certify the certificates everywhere Then make a shortcut to this file in `shell:startup` folder So this will ad block start every time the computer starts
Author
Owner

@jckefan commented on GitHub (Jul 3, 2021):

Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however.
Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder.

I added a VB script in the folder that starts the node mitm.js without opening a cmd window
And I also created a shortcut to the VB script in the shell:startup folder to make sure the proxy starts every time when I turn on my computer.

Mind sharing the script? Thanks

@jckefan

Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
StrArgs = "node ""D:\APP\Spotify Ad Block\spotify-adblock-macos\mitm.js"" "
oShell.Run strArgs, 0, false

Put this code in a .vbs file in the ./spotify-adblock-macos so you don't need to certify the certificates everywhere
Then make a shortcut to this file in shell:startup folder
So this will ad block start every time the computer starts

It worked thank you so much for the script.🥰

<!-- gh-comment-id:873369665 --> @jckefan commented on GitHub (Jul 3, 2021): > > > > Hm, I've been thinking about compiling binary versions of the proxy. This would essentially wrap the node.js script with a node.js binary depending on the OS into a single binary (exe on Windows), which would make it easier to start since it wouldn't be necessary to use command line. Command line would still be needed to trust the root certification, however. > > > > Would compiling to an exe make it easier to have it start on login? I haven't used Windows in quite a while, but I think the process is something like making a shortcut to an exe in a certain folder. > > > > > > > > > I added a VB script in the folder that starts the `node mitm.js` without opening a cmd window > > > And I also created a shortcut to the VB script in the `shell:startup` folder to make sure the proxy starts every time when I turn on my computer. > > > > > > Mind sharing the script? Thanks > > @jckefan > > ```vbnet > Set oShell = CreateObject ("Wscript.Shell") > Dim strArgs > StrArgs = "node ""D:\APP\Spotify Ad Block\spotify-adblock-macos\mitm.js"" " > oShell.Run strArgs, 0, false > ``` > > Put this code in a `.vbs` file in the `./spotify-adblock-macos` so you don't need to certify the certificates everywhere > Then make a shortcut to this file in `shell:startup` folder > So this will ad block start every time the computer starts It worked thank you so much for the script.🥰
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-adblock#131
No description provided.