Our Attention Span Is Now Shorter Than a Goldfish's. So I Built a Chrome Extension
Every Site Blocker Uses a Static List. So I Built One That Doesn't. Every site blocker on...
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3369047) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Snowball Posted on Apr 28 Our Attention Span Is Now Shorter Than a Goldfish's. So I Built a Chrome Extension #javascript #productivity #showdev #sideprojects Every Site Blocker Uses a Static List. So I Built One That Doesn't. Every site blocker on the Chrome Web Store works the same way: you create a blocklist upfront, and it blocks those sites. I tried several — they all hit the same wall.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV Community.