Skip to content

YouTube script sometimes activates on pages that aren't YouTube #92

@jacobwinters

Description

@jacobwinters

e.g. https://example.com/?url=https://www.youtube.com/watch?. <body> gets margin-top: 100vh, pushing all content below the fold. Happens on Violentmonkey 2.30.0 (but not Tampermonkey 5.3.3) running on Chrome 133.

I believe it's because

// @include         http*://*.youtube.com/*

matches the URL like this:

https://example.com/?url=https://www.youtube.com/watch?
http**************************://***.youtube.com/******

#85 fixes the problem.

Issue was originally encountered by a user visiting URLs of the form https://kagi.com/summarizer/index.html?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ (thread on Kagi issue tracker).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions