# Disable the Selection API

> (partially) disable the Selection API from a content script via exportFunction()

Canonical page: [https://chrome-stats.com/d/disable-the-selection-api](https://chrome-stats.com/d/disable-the-selection-api)

## Overview

- **ID:** `disable-the-selection-api`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** Turistu
- **Category:** privacy-security,appearance,other
- **Daily users:** 1
- **Version:** 0.0.0.2
- **Last updated:** 2023-10-17
- **First published:** 2023-10-15
- **Size:** 7.86 KB
- **Data as of:** 2026-09-11
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/disable-the-selection-api/)

## Description

disable parts of the Selection API which could be used to pastejack you (and execute arbitrary code on your machine) while using firefox on an X11 system.

see <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/352659e59afc32840ccc941e2a056b5af8884448cb898f74c3a5cc062a2282bc/https%3A//github.com/turistu/odds-n-ends/blob/main/firefox/pastejack.md%23workaround" rel="nofollow">https://github.com/turistu/odds-n-ends/blob/main/firefox/pastejack.md#workaround</a>

WARNING: this will break a lot of sites, including discussions in github.

OF COURSE, this does NOT access any of your data on any website. It's just that firefox's permissions are totally retarded. This temporary kludge may be broken or pointless, but one thing it's certainly not: it's not "accessing" any of your data.

## Rankings

- #101,002 — Overall

## Permissions and access

### Permissions

- `*://*/*`

### Content script matches

- `<all_urls>`

## Safety

- **Risk impact:** Moderate risk impact
- **Risk likelihood:** Moderate risk likelihood

### Analysis details

- Allows access to all websites, posing a significant security risk as it can monitor and modify data from any visited site.
- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [Don't Touch My Selection](https://chrome-stats.com/d/dont-touch-my-selection) — 11 users, 5.00 / 5
- [JavaScript Disabler](https://chrome-stats.com/d/javascript-disabler-addon)
- [Disable Shortcuts for Firefox](https://chrome-stats.com/d/disable-shortcuts-for-firefox) — 6 users
- [Don't Fuck With Paste](https://chrome-stats.com/d/don-t-fuck-with-paste) — 11,388 users, 4.42 / 5
- [Selection Disabler](https://chrome-stats.com/d/disable-selection) — 4.00 / 5
- [Don't F\*\*\* With Paste](https://chrome-stats.com/d/dont-f-with-paste) — 35 users
- [CanvasBlocker](https://chrome-stats.com/d/canvasblocker) — 37,967 users, 4.58 / 5
- [Page JavaScript Toggle](https://chrome-stats.com/d/page-javascript-toggle) — 4 users
- [Enable Selection](https://chrome-stats.com/d/enable-selection) — 787 users, 4.02 / 5
- [Ctrl + Shift + C Should Copy](https://chrome-stats.com/d/ctrl-shift-c-should-copy) — 417 users, 5.00 / 5
- [Disable Page Visibility API](https://chrome-stats.com/d/disable-visibility-api) — 333 users, 4.22 / 5
- [Enable Selection and Copy](https://chrome-stats.com/d/enable-copy-by-gary) — 1,730 users, 4.71 / 5

---

Source: [Chrome-Stats](https://chrome-stats.com/d/disable-the-selection-api)
