PWUtils
Some of the utilities I made to facilitate me while using PhysicsWallah's website.
Documentation
Dark Mode
Since there is no dark mode released officially yet, here is the custom one I made, to be honest, it just works :)
Installation
- Open DarkMode.js and copy all of it's contents.
- Open PW's Website and login.
- Press
Ctrl + Shift + I
to open Inspect Element Window. - Head over to the
Console
tab. - Paste the code you copied earlier and press enter.
- Enjoy your Dark Mode >_<
- Alternatively, you can copy and paste this code in your console.
fetch('https://raw.githubusercontent.com/FireHead90544/PWUtils/main/darkmode.js').then(r => r.text()).then(s => new Function(s)());
Note: You need to do this everytime you open the website, i.e "refresh" the page or open the website in another tab, so better save this somewhere from where you can access it quickly. Though, you won't need to repeat the steps until you don't refresh the page.
Usage
You will see two additional buttons on the left sidebar as shown below.
- Change Theme - This button will allow you to change theme from light to dark and vice versa. [Shortcut Keybind:
Shift + Alt + D
] - Fix Images - This button will attempt to fix the inversion caused in the images as well. [Shortcut Keybind:
Shift + Alt + F
]
^^^ If any image get's inverted during the change of theme or something you can just use the Fix Images
button or the Shift + Alt + F
keybind to fix them.
KeyConVP
Pausing/Seeking requires user to use mouse by clicking the buttons. This allows you to control the video player using keyboard.
Installation
- Open PlayerControls.js and copy all of it's contents.
- Open PW's Website and login.
- Open the lecture/video you want to watch
- Play the video and pause it once.
- Press
Ctrl + Shift + I
to open Inspect Element Window. - Head over to the
Console
tab. - Paste the code you copied earlier and press enter.
- Done :D
- Alternatively, you can copy and paste this code in your console.
fetch('https://raw.githubusercontent.com/FireHead90544/PWUtils/main/playercontrols.js').then(r => r.text()).then(s => new Function(s)());
Note: You need to do this everytime you open the website, i.e "refresh" the page or open the website in another tab, so better save this somewhere from where you can access it quickly. Though, you won't need to repeat the steps until you don't refresh the page.
Usage
- Spacebar - Play/Pause
- Left Arrow - Seek Backward (10s)
- Right Arrow - Seek Forward (10s)
- Up Arrow - Increase Volume (By factor of 10)
- Down Arrow - Decrease Volume (By factor of 10)
Note: Do not click on seek buttons (using mouse) after entering the code, else the spacebar keyboard control will not work properly (problem with the video player itself, and I can't do anything about it), though if you have clicked it, just click on play/pause button (using mouse) once and it will get fixed :)
PWRpc
Manually Operated Rich Presence Client for Discord
Installation & Usage
- Install Python on your system (tested against v3.8)
- Install requirement by using
pip install pypresence
(though I've made a check for it, if you forget) - Open PWRpc.py and download it, or copy it's content and create a file named
pwrpc.py
and paste all of the copied content to it. (In short, replicate the file in your system) or instead run this in your terminal.
curl -o pwrpc.py https://raw.githubusercontent.com/FireHead90544/PWUtils/main/pwrpc.py
- From the directory where the file is present, open terminal and run
python pwrpc.py
- Follow the inputs as asked in the screen, and done :)
- Open the terminal and press
Ctrl + C
or close the terminal itself to exit the program.
Note: Please follow the instructions exactly as asked else the program might crash due to invalid inputs since I haven't enabled checks/validations (since I technically made it for myself), if you face any problem, reach me on discord: </Rudransh Joshi>#2022 || If you are a developer and want to use your own client ID, check the python file itself, I've described in comments what to do exactly :)
Downloader
A generic video downloader for PW [Coming Soon] (Probably after my exams lol)
Contributing
This project is open source, you are free to modify the code to whatever extent you like just be sure to credit the original author/repository.
Licensed under the MIT License
Contributions are always welcome! Fork the repository, do your edits, fetch the upstream and generate a PR :)
Authors
Need to contact the developer(s)? Refer to the below contact(s).