tridactyl example

master
Fabien Benetou 1 year ago
parent 76afe1d2b3
commit a421a98861
  1. 6
      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},
]

Loading…
Cancel
Save