Notice: Welcome to Minichan, an account has automatically been created and assigned to you, you don't have to register or log in to use the board, but don't clear your cookies unless you have set a memorable name and password. Alternatively, you can restore your ID.
Anonymous F joined in and replied with this 1 year ago, 18 minutes later, 3 hours after the original post[^][v]#1,286,037
Use a VM. Setup the preference you want in the browser. Power off the VM and backup the virtual disk.
Power on and browse as you wish. But then restore the virtual disk from backup each time you power the VM down. So if you get infected with anything it won't persist longer than one session. Obviously don't do anything sensitive in the VM.
I think Qemu has a way to track changes so you don't have to overwrite multiple GBs of data each time you restore the backup. I think you can just delete the modifications that are stored separately from the source drive. I don't remember for sure, but I vaguely remember something like that. qcow2? something or another.
I think the biggest practical problem may be sites won't work that well unless you're just on simple sites like imageboards, or wikipedia. Web standards are bloating needlessly fast these days.