fandom.com - Удаление ненужного программного обеспечения

Удаляет ненужные элементы с веб-сайта фандома, оставляя только то, что важно.

< Обсуждения fandom.com - Удаление ненужного программного обеспечения

Отзыв: Хороший — скрипт работает как нужно

§
Создано: 09.06.2024
Отредактировано: 09.06.2024

Good, but I'd add #mixed-content-footer to removeListSingle - it's a "Fan Feed" at the bottom of the page.

Also, removeExcessiveBodyClassNames has a troublesome interaction with Dark Reader. I removed it from the MutationObserver but left the top-level call and it seems to work okay. I can see why you did this, but it does limit the script's utility somewhat, since userscript users are also pretty likely to be Dark Reader users.

Even so, nice work - removing the selection popup alone is much appreciated, that has been driving me crazy on every fandom page. This UX trend really needs to go the way of the dinosaur. Thank you!

Actually, the combination of massRemove with body > svg + * results in images being unexpandable. I think to avoid this, you basically need to prevent the event handler callbacks on all the image anchors so they can open as regular hyperlinks. They are extremely bloated with all kinds of event handlers so it would be pretty difficult to do. Probably better to just let the inline image preview system work as normal.

That said, anyone reading this shouldn't take it as a dealbreaker necessarily, as middle click or ctrl+click can still work. Or right click -> context menu -> open link in new tab. That kind of thing still works.

Ответить

Войдите, чтобы ответить.