philc / philc/vimium

JavaScript Bookmarklet not working from Chrome 96+

Open
#3,969 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
27k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
About two Chrome updates ago my javascript booklet stopped working. It still works if I click on the link directly in the browser.

javascript:location.href ='org-protocol://capture?template=j&url=%27+   encodeURIComponent(location.href) +   %27&title=%27 + encodeURIComponent(document.title) +   %27&body=%27 + encodeURIComponent(window.getSelection())

To Reproduce
Steps to reproduce the behavior:

  1. Go to URL 'javascript:location.href ='org-protocol://capture?template=j&url=%27+ encodeURIComponent(location.href) + %27&title=%27 + encodeURIComponent(document.title) + %27&body=%27 + encodeURIComponent(window.getSelection())'

Browser and Vimium version
Google Chrome 96.0.4664.55 (Official Build) (x86_64)
Vimium: 1.67

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the JavaScript bookmarklet failure in Chrome 96.0.4664.55 with Vimium 1.67 using the URL and steps in the issue. The payload names no repository files or tests; done means determining the cause and establishing whether the reported bookmarklet behavior can be restored or otherwise addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.