clearer installation and customization

This commit is contained in:
2025-10-28 15:59:18 +01:00
parent 65c04761c2
commit 3736b6204d

View File

@@ -1,6 +1,6 @@
Local NodeJS Web server to track and shape browsing habits.
Default configuration in `index.js#L52-L65`
Default configuration in `index.js#L52-L65` that can be replaced by `config.json`.
```javascript
{id:"twitter",pattern:/.*twitter\.com.*/,perHour:1,perDay:12},
@@ -14,8 +14,10 @@ Default configuration in `index.js#L52-L65`
{id:"discord",pattern:/.*discord\.com.*/,perHour:1,perDay:12},
```
Related https://fabien.benetou.fr/Languages/OwnConcepts
Related visibility paradox of technological minimalism in https://fabien.benetou.fr/Languages/OwnConcepts linking back here.
## Installation
- `npm i express`
- `node .`
- `node .`
- install in your browser the `tridactyl` add-on
- setup `autocmd DocStart .* js fetch('http://localhost:7788/check?url='+window.location.href).then(r => r.json()).then( r => { if(!r.passed) { if (r.redirect) { window.location.href = r.redirect } else { window.location.href = 'https://ggsc.berkeley.edu/'} } } )`