WebBlocker is a Chrome extension written in TypeScript to block certain websites
- Install
Node.js
framework, which will provide us a package manager know usnpm
- Clone the repository using
git
or by clicking the green button saying "Code" (don't forget unzipping it) - Open the console and install dependencies by typing
npm install
on the workspace folder - Compile the
.ts
files by typingtsc
on a new terminal. This will re-compile the files on every file save. To disable this feature, comment out thewatch
field ontsconfig.json
- Lastly, open a Chromium-based browser and go to
chrome://extensions
. Enable developer mode, click onLoad unpacked
and select the workspace folder - You are done. You can now run the extension (and modify it if you want)
(Note: It is recommended to have the watch
property on tsconfig.json
set to true
)
If you have the extension installed, run tsc
on a spare terminal and the files will automatically recompile upon change. If you have made any non-HTML-related changes (a HTML change here is thought a change on a (.html
, .css
or .ts
/.js
file), it is recommended to reload the extension using the corresponding reload button