Skip to content

Instantly share code, notes, and snippets.

@arekolek
Created October 24, 2016 13:15
Show Gist options
  • Save arekolek/4afa0660d4eae6287554a5ebb2b4002e to your computer and use it in GitHub Desktop.
Save arekolek/4afa0660d4eae6287554a5ebb2b4002e to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name No mousewheel-zoom
// @namespace http://github.com/arekolek
// @version 0.1
// @author Arek Olek
// @match http://*/*
// @match https://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.onmousewheel = document.onmousewheel = function(e){
if(e.ctrlKey){
e.preventDefault();
e.stopPropagation();
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment