From a421a98861081ce8bcdad80029e0cb92c2060b8b Mon Sep 17 00:00:00 2001 From: Utopiah Date: Mon, 8 May 2023 15:47:46 +0200 Subject: [PATCH] tridactyl example --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 11e59ed..fa9f4bc 100644 --- a/index.js +++ b/index.js @@ -3,6 +3,9 @@ // if validating tests can replace via e.g // killall onhygi ; nohup node . & +// to add on tridactyl : +// autocmd DocStart .* js fetch('http://localhost:7788/check?url='+window.location.href).then(r => r.json()).then( r => { if(!r.passed) window.location.href = 'https://ggsc.berkeley.edu/' } ) + const http = require("http"); const fs = require("fs"); const path = require("path"); @@ -49,10 +52,11 @@ console.log('past usage', usage) let quota = [ {id:"ownhome", pattern:/.*fabien\.benetou\.fr.*/, perHour:10, perDay:200}, {id:"twitter",pattern:/.*twitter\.com.*/,perHour:1,perDay:12}, - {id:"proton",pattern:/.*proton\.me.*/,perHour:6,perDay:12}, + {id:"proton",pattern:/.*proton\.me.*/,perHour:6,perDay:6*12}, {id:"yt",pattern:/.*youtube\.com.*/,perHour:1,perDay:12}, {id:"linkedin",pattern:/.*linkedin\.com.*/,perHour:1,perDay:12}, {id:"reddit",pattern:/.*reddit\.com.*/,perHour:1,perDay:12}, + // reconsider the tridactyl check for permanently open pages, e.g TabEnter rather than DocStart {id:"element",pattern:/.*element\.io.*/,perHour:1,perDay:12}, {id:"discord",pattern:/.*discord\.com.*/,perHour:1,perDay:12}, ]