jamiebuilds / jamiebuilds/userscript-github-disable-turbolinks

Doesnt disable turbo on new code view pages

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
42
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When I enable the new [code view feature preview](https://docs.github.com/en/repositories/working-with-files/managing-files/navigating-files-with-the-new-code-view) turbo is still enabled on the pages using it.

I was able to disable them again by adding this to the userscript:

```js
document.body.addEventListener('click', (event) => {
event.stopPropagation()
}, true);
```

Maybe there is another way that doesnt indiscriminately disable propagation on all body clicks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.