Greasy Fork is available in English.

YouTube Culture Link Detector

Adds Kagi search link when *Culture channel links are found

Autor
Molly Harris
Dziennych instalacji
0
Wszystkich instalacji
0
Oceny
0 0 0
Wersja
0.1
Utworzono
04-01-2025
Zaktualizowano
04-01-2025
Rozmiar
2,18 KB
Licencja
CC BY-NC-SA 4.0
Dotyczy

This script enhances YouTube video pages by automatically detecting links to channels like WhatCulture, WhoCulture, and similar "*Culture" channels. It adds a Kagi search button, as these channels typically create article content based on the 'listicle' YouTube videos. The search button provides easy access to the corresponding written content.

Features

  • Monitors YouTube pages for "*Culture" channel links
  • Creates a styled search button next to video titles
  • Links to Kagi search targeting the channel's website articles
  • Prevents duplicate button creation
  • Automatically adjusts button size based on title text size
  • Works with dynamic page updates

Technical Details

The script uses:

  1. Regular expression pattern matching to detect WhatCulture, WhoCulture, and similar channel links
  2. MutationObserver to handle YouTube's dynamic content loading
  3. Dynamic styling that matches YouTube's interface
  4. URL encoding with specialized search parameters to find matching articles
  5. Intelligent font sizing that scales with the page

Configuration

The script contains several customizable elements:

  • Culture detection pattern: Adjusts what channels trigger the button
  • Search query format: Modifies how Kagi searches for matching articles
  • Button styling: Customizable appearance settings
  • Link text: Modifiable button label