您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Użyj skrola by oddalić lub przybliżyć
- // ==UserScript==
- // @name Zoom Hack
- // @namespace KROKIk
- // @version 1
- // @description Użyj skrola by oddalić lub przybliżyć
- // @author KROKIk
- // @match http://vertix.io/*
- // @match http://www.vertix.io/*
- // @include http://vertix.io/*
- // @include http://www.vertix.io/*
- // @grant none
- // ==/UserScript==
- var scrollDelta = 0,
- cvs = document.getElementById('cvs');
- cvs.addEventListener('mousewheel', zoom, false);
- cvs.addEventListener('DOMMouseScroll', zoom, false);
- function zoom(a) {
- userScroll = overlayFadeUp = overlayFadeDown = overlayMaxAlpha = 0
- animateOverlay = false
- a = window.event || a;
- a.preventDefault();
- a.stopPropagation();
- scrollDelta = Math.max(-1, Math.min(1, a.wheelDelta || -a.detail));
- if (socket && scrollDelta == -1 && maxScreenHeight < 4000) {
- (maxScreenHeight = maxScreenWidth += 250);
- resize();
- scrollDelta = 0;
- viewMult = 100 //dont want to calculate viewMult relative to the new screen width/height, so ill just hide it for now
- }
- if (socket && scrollDelta == 1 && maxScreenHeight > 1000) {
- (maxScreenHeight = maxScreenWidth -= 250);
- resize();
- scrollDelta = 0;
- viewMult = 100
- }
- }