jamiebuilds / jamiebuilds/userscript-github-disable-turbolinks
Doesnt disable turbo on new code view pages
Open
- 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.