TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Toggle CSS bookmarklet

35 pointsby Hurtakalmost 10 years ago

6 comments

the8472almost 10 years ago
Firefox has that as built-in function<p>view menu -&gt; page style -&gt; no style<p>alt+vyn&#x2F;alt+vyb via keyboard.
评论 #9897737 未加载
评论 #9897599 未加载
评论 #9898146 未加载
评论 #9897240 未加载
chrismorganalmost 10 years ago
The ES6 bookmarklet can be easily shrunk by 13 characters, taking it to 121:<p>javascript:for(let e of document.querySelectorAll(&#x27;link,style,[style]&#x27;))e.style.cssText?e.style.cssText=&#x27;&#x27;:e.outerHTML=&#x27;&#x27;
评论 #9899488 未加载
xemalmost 10 years ago
How about this extra-dirty version in 69b?<p>with(document.documentElement)innerHTML=innerHTML.replace(&#x2F;yl|nk&#x2F;g,0)
评论 #9897503 未加载
评论 #9897322 未加载
kiernanalmost 10 years ago
Is there a way to remove the styles but apply some others instead which highlight the borders and natural layout of the elements?<p>Kind of like if you turned off styles and used the inspect feature of your browser but with all it&#x27;s mouse-over highlights and guidelines turned on at once.
评论 #9898825 未加载
xemalmost 10 years ago
other approach: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;subzey&#x2F;status&#x2F;621672779344166912" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;subzey&#x2F;status&#x2F;621672779344166912</a>
评论 #9898452 未加载
kndyryalmost 10 years ago
A hack near and dear to my heart! The toggle bit on this is a very nice touch. I wrote something similar [0] a short while ago, except that, after the native styles are stripped, a very small amount of css is added to: constrain page width, make text a green monospace on black, improve line-height and remove images.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;kndyry&#x2F;detox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kndyry&#x2F;detox</a>