zen

joined 1 year ago
[โ€“] zen@lemmy.amyjnobody.com 28 points 1 year ago (2 children)

Step 1: In FireFox, make a new bookmark with the location: javascript:(function(w){ var arr = ['contextmenu','copy','cut','paste','mousedown','mouseup','beforeunload','beforeprint']; for(var i = 0, x; x = arr[i]; i++){ if(w['on' + x])w['on' + x] = null; w.addEventListener(x, function(e){e.stopPropagation()}, true); }; for(var j = 0, f; f = w.frames[j]; j++){try{arguments.callee(f)}catch(e){}}})(window);

Step 2: Drag the bookmark to your toolbar.

Step 3: ??? ::: When a website does bullshit like not allow you to paste, not allow you to right click, etc. Click the button you made in step 2. :::

Step 4: Profit

It is your browser, your computer. You decide what code runs on it.

Bonus Step: Install something like ublock origin or noscript and stop allowing websites to run any code they like willy nilly on your PC without permission. Half of that crap just tracks you for no real benefit (to you).

The default install instructions explicitly prevent installation on a Pi3 or Pi3+. If you have armv7l cpu architecture, the script just exits. I banged at it for a bit, but the tensorflow lite runtime install tripped me up. Going to look into the docker project mentioned elsewhere in this thread instead.