I am not totally happy with the usability of video player on coursera.org (not my own website) and want to change something using the local overrides for my own convenience.
I successfully located the JS file to be changed and enabled local overrides. But after I saved my changes the website still uses the file fetched from the server instead of the local copy containing my changes.
What is the problem and how to resolve this?
To use Overrides, open the Devtools either from the settings or using the keyboard shortcut CTRL+SHIFT+I . Then, Click on the Sources tab. You'll see at the top of the left menu 3 tabs: Page, Filesystem, and Overrides. Click on Overrides.
Change where DevTools is docked by using the Command Menu Or, press Shift + Ctrl + P on Windows/Linux or Command + Shift + P on macOS. Type dock, and then select a dock command: Dock to bottom. Dock to left.
I realized this might be a bug of the local overrides feature: I could see the local change made to the global JS file but not for files restored by Webpack source maps (files under webpack://).
Here is a workaround:
Hope this is helpful if you're in a similar situation!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With