4 ms·
delete indexedDB; in userjs is all it takes in Chrome to disable indexedDB permanently
by rasz 7y ago
delete indexedDB;
in userjs is all it takes in Chrome to disable indexedDB permanently
- smitop 7y agoIt is still possible for websites to access indexedDB by using Web Workers: new Worker("data:application/javascript,console.log('indexedDB: ', indexedDB)") This works since userscripts only run in top-level websites and frames, but the above code runs JS code in a seperate thread with no attached DOM.
- rasz 7y agoif ('serviceWorker' in window.navigator) navigator.serviceWorker.register = () => new Promise( function(resolve, reject) {} ); disables webworkers from ever working.