Hint: to change a lot of scripts, execute this: sed -r '/\/\/ @match\s+http:\/\/www.ingress.com\/intel/r /tmp/includefile' -i~ *.user.js `/tmp/includefile` should contain these lines: (no trailing newline!) // @include https://www.ingress.com/mission/* // @include http://www.ingress.com/mission/* // @match https://www.ingress.com/mission/* // @match http://www.ingress.com/mission/*
41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
// ==UserScript==
|
|
// @id iitc-plugin-scroll-wheel-zoom-disable@jonatkins
|
|
// @name IITC plugin: disable mouse wheel zoom
|
|
// @category Tweaks
|
|
// @version 0.1.0.@@DATETIMEVERSION@@
|
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
|
// @updateURL @@UPDATEURL@@
|
|
// @downloadURL @@DOWNLOADURL@@
|
|
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Disable the use of mouse wheel to zoom. The map zoom controls or keyboard are still available.
|
|
// @include https://www.ingress.com/intel*
|
|
// @include http://www.ingress.com/intel*
|
|
// @match https://www.ingress.com/intel*
|
|
// @match http://www.ingress.com/intel*
|
|
// @include https://www.ingress.com/mission/*
|
|
// @include http://www.ingress.com/mission/*
|
|
// @match https://www.ingress.com/mission/*
|
|
// @match http://www.ingress.com/mission/*
|
|
// @grant none
|
|
// ==/UserScript==
|
|
|
|
|
|
@@PLUGINSTART@@
|
|
|
|
// PLUGIN START ////////////////////////////////////////////////////////
|
|
|
|
|
|
// use own namespace for plugin
|
|
window.plugin.scrollWheelZoomDisable = function() {};
|
|
|
|
window.plugin.scrollWheelZoomDisable.setup = function() {
|
|
|
|
window.map.scrollWheelZoom.disable();
|
|
|
|
};
|
|
|
|
var setup = window.plugin.scrollWheelZoomDisable.setup;
|
|
|
|
// PLUGIN END //////////////////////////////////////////////////////////
|
|
|
|
@@PLUGINEND@@
|