this post was submitted on 30 Jan 2025
54 points (100.0% liked)

Selfhosted

41572 readers
750 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I selfhost changedetection.io to get notifications when a webpage changes.

Most of the time, the build-in visual selector is all I need to select the parts of the page I want it to monitor.

Some of the time I need to write custom (CSS) query selectors.

Today I had an interesting case where both of those methods failed. The page (laposte.fr) uses webcomponents who write to shadowdom. Shadowdom isn't directly addressable by CSS or Xpath or ... filter.

The trick was to run some custom javascript, in the "browser steps" section:

document.body.innerHTML = document.querySelector("#shadowdom_parent_container").shadowRoot.textContent;

This replaces the document body with whatever text is inside the webcomponent. Now it's as simple as having the monitor watch for changes on the body tag.

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 14 hours ago

There's a change detection add-on for Firefox I use for websites which don't have RSS feeds. Might work on that other thing.

SiteDelta Watch.