疯长,当植物入侵你废弃的标签页
Overgrown, when plants invade your abandoned tabs

原始链接: https://charliegerard.dev/blog/overgrown-extension/

作者创建了一个受荒废、废弃场所启发的 Chrome 扩展,并将这个想法应用到被忽略的浏览器标签页上。每个标签页都有一个在非活跃时运行的忽略时钟;植物从边缘向中心生长。一旦标签页的覆盖程度超过 5%,页面就会被封住——你可以滚动,但无法点击、选择或拖动。要重新获得访问权限,你需要通过在藤蔓上拖动鼠标来砍断它们;低于 5% 时,剩余的植物会落掉。如果标签页再次被忽略,生长会继续。用户可以选择武器(砍刀、电锯、火焰喷射器)并调整完全覆盖所需的时间。代码包括后台逻辑、弹出界面,以及带有 SVG 植物/武器、生长定位、忽略时钟和声音的内容覆盖层。这个项目是重返构建的一种有趣方式,即使打开了 22 个标签页,其中也有 14 个已经被覆盖。

Hacker News 上的一篇帖子讨论了浏览器扩展“Overgrown”,它会让被遗忘的标签页在视觉上被植物覆盖。评论者讨论标签页使用习惯:有些人少于 10 个标签页,而另一些人在项目和设备间囤积成百上千个。许多人把打开的标签页当作提醒、任务状态或临时书签,而另一些人更喜欢书签、浏览器历史、标签组、会话管理器或稍后阅读工具。推荐的工具包括 Hister、Karakeep、linkding 和 One Tab。帖子还涉及内存占用、认知过载、意外丢失标签页、浏览器历史限制,以及标签页应被视为短期还是长期存储的问题。相关想法包括标签页老化、视觉磨损和有趣的桌面隐喻。总体而言,这个扩展被看作有趣但略显不切实际,但它凸显了管理浏览器状态和标签页囤积的真实挑战。
相关文章

原文

I was doing a little creative exercise the other day around the word "Overgrowth". The first thing that came to mind was an apocalyptic scene, something like The Walking Dead or The Last of Us, where plants tend to overgrow abandoned buildings.

I then wanted to apply this idea to the digital world, and the word "abandoned" made me think of my browser tabs... What if my tabs were slowly taken over by plants the longer I left them unread? What if I had to clear away these invasive plants to access my tabs again? A bit like trying to open a door that's been overgrown...

So I built this fun little Chrome extension that does just that. It won't necessarily make me read my tabs more but it's ok.

Demo

Overgrown demo

Link to the repository

The idea

  • Every tab has a neglect clock. It runs while the tab is out of view and stops while you're looking at it.
  • The longer a tab is neglected, the more plants grow over it, from the edges towards the middle.
  • Once a tab is more than 5% overgrown, the page behind the vines is walled off: you can scroll, but you can't click, select or drag anything.
  • To free it, you have to slash through the vines by dragging your mouse across them. Get it down to 5% and the last bits fall off. If you abandon your tab once more, the jungle starts growing again.
  • Just for fun, you can pick your weapon of choice between the rusty machete, the chainsaw and the flamethrower.
  • You can also change how long it takes for your tabs to be fully overgrown.

Originally, I was thinking about blocking users from closing their overgrown tabs until they slash all plants, but I thought it would be too annoying... 😅

The extension

The code is organised in 3 main parts: the background logic, the content script to display the plants and animation on the tabs and the popup folder that handles the UI of the extension itself.

Background worker

The background.js file starts the jungle on each open tab and forgets it when it closes.

The popup

This folder handles the UI for the extension with some small components for the time setting, the weapon choice, the list of tabs and their current stat.

The overlay

The content folder contains the SVGs for the plants and the weapons, the logic to position and grow the clusters, the neglect clock and the sounds.


I've been wanting to get back into building things for a while now and this project felt like a small, fun way to start. I'm writing this on a new computer so I currently "only" have 22 tabs open but 14 of them are already completely overgrown... 😂 It might not make me read them more but slashing through the vines makes coming back to them more fun! 🪚🌿

联系我们 contact @ memedata.com