- Install Tampermonkey extension for your browser:
-
Clone this repository.
-
Run
npm i
in the folder to install dependencies. -
Run
npx webpack -w --mode="development"
in the folder to compile final JS. -
Allow Tampermonkey extension to access local files.
- Visit Chrome extension settings page at: chrome://extensions/
- Find Tampermonkey, click to
Details
- Turn
Allow access to file URLs
checkbox on
-
Create new Tampermonkey script for dev purposes (load JS file from localhost). Disable original one.
- ❗ Replace your own
// @require
filepath according to your cloned folder. - Example filepath:
file:///C:/dev/csfd-extended/dist/csfd-extended.js
- Final Tampermonkey dev script template:
// ==UserScript== // @name [DEV] CSFD Extended // @description DEVELOPER VERSION. // @include *csfd.cz/film/* // @require <------REPLACE-ME-WITH-YOUR-FILEPATH------> // @grant GM_setValue // @grant GM_getValue // ==/UserScript==
- ❗ Replace your own
-
Easily switch between production version linked to GreasyFork and your local file.
Run npx webpack --mode="production"