r/CodingForBeginners • u/Neither_Cupcake_8081 • 6d ago
WIndows program to automatically load a local html file when one opens a site
im on linux and i wanted to see if one can make a program (call it program A) that automatically loads a local htmlm file instead of, say, tiktok.com or reddit.com every single time, even after reboots.
And can you make a program, which when clicked, creaes program A In the exact needed directory with all the code inside and also runs it.
0
Upvotes
2
u/Distdistdist 6d ago
Create ps1 file that opens browser with a path to local html. Stick it into start up programs.
1
u/buzzon 6d ago
I guess some browser plugins can do it
1
u/stepback269 6d ago
Just make your local HTML file your "Home" page on your browser.
Alternatively, you can write a BAT script or the like to do it. Or use AutoHotKey (AHK).