Skip to content

Instantly share code, notes, and snippets.

@gavinhungry gavinhungry/index.js
Created May 21, 2019

Embed
What would you like to do?
No Scroll Zoom
(() => {
document.addEventListener('wheel', e => {
if (e.ctrlKey) {
e.preventDefault();
e.stopPropagation();
}
}, { passive: false });
})();
{
"name": "No Scroll Zoom",
"description": "Disables worthless Control + Scroll zooming",
"author": "Gavin Lloyd <gavinhungry@gmail.com>",
"manifest_version": 2,
"version": "1.0.0",
"permissions": [
"<all_urls>"
],
"content_scripts": [
{
"run_at": "document_start",
"matches": ["<all_urls>"],
"js": ["index.js"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.