Skip to content

prevent-clipboard-write not supporting jquery_addtocopy #4118

Description

@itrike

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • using a new, unmodified browser profile.

Description

Hello uBlock,

I’m sorry if this isn’t the correct forum for this question. I’m trying to use prevent-clipboard-write to block text that is automatically added to the clipboard when copying text from pages that use Drupal’s AddToCopy module (jQuery AddToCopy). I’ve tried several variations of prevent-clipboard-write, but none of them seem to work. Does AddToCopy use something other than navigator.clipboard.writeText()?

I tried many variations like:

  • ##+js(prevent-clipboard-write, /.*/, domAlert, body|Clickfix attempt defused)
  • ##+js(prevent-clipboard-write, /.*/)
  • ##+js(prevent-clipboard-write)

A specific URL where the issue occurs.

https://www.drupal.org/project/addtocopy

Steps to Reproduce

    • ##+js(prevent-clipboard-write, /.*/, domAlert, body|Clickfix attempt defused)
  1. Test on the website
  2. Not working

Expected behavior

To block added text when copying text from the website

Actual behavior

Not blocking

Configuration

uBlock version 1.74.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions