Toggle CSS bookmarklet
github.com
github.com
view menu -> page style -> no style
alt+vyn/alt+vyb via keyboard.
And I don't think it's called "settings menu" either, because settings are about:preferences or about:config.
It's just a regular menu, like many other applications have.
In fact one of the conformance requirements for CSS2.1 is "The UA must allow the user to turn off the influence of author style sheets"; CSS3 isn't finished yet so I can't find that exact phrase in it but I think it should still be a requirement.
javascript:for(let e of document.querySelectorAll('link,style,[style]'))e.style.cssText?e.style.cssText='':e.outerHTML=''
It will work in Firefox once they enable `let` without specifying the script version.
It will work in Chrome once they fix for-of and once they make `let` work outside of strict mode.
with(document.documentElement)innerHTML=innerHTML.replace(/yl|nk/g,0)
Kind of like if you turned off styles and used the inspect feature of your browser but with all it's mouse-over highlights and guidelines turned on at once.
document.body.insertAdjacentHTML('afterbegin', '<style>{outline: 1px solid black}</style>')
both together:
javascript:[].slice.call(document.querySelectorAll('link,style,[style]')).forEach(function(e){e.style.cssText?e.style.cssText='':e.outerHTML=''});document.body.insertAdjacentHTML('afterbegin', '<style>{outline: 1px solid black}</style>');
:not(head) { all: initial !important; }
Edit: These methods don't simply toggle the site's CSS, they reset the browser's initial CSS styles for all the elements, so it's not the same.