This script works on any browser and simulates the Opera Browser Mouse+Rocker Gestures, along with the Search HighLight and Units+Currency Converters, but with this script, you can modify or disable them as you want.
目前為 2024-08-10 提交的版本,檢視 最新版本。
您需要先安裝一個用戶腳本管理器擴展,如 Tampermonkey、Greasemonkey 或 Violentmonkey 之後才能安裝該腳本。
您需要先安裝一個使用者腳本管理器擴充功能,如 Tampermonkey 或 Violentmonkey 後才能安裝該腳本。
您需要先安裝一個使用者腳本管理器擴充功能,如 Tampermonkey或 Violentmonkey 後才能安裝該腳本。
您需要先安裝一個使用者腳本管理器擴充功能,如 Tampermonkey或 Userscripts 後才能安裝該腳本。
You will need to install an extension such as Tampermonkey to install this script.
您需要先安裝一個使用者腳本管理器擴充功能後才能安裝該腳本。
(我已經安裝了使用者腳本管理器,讓我安裝!)
You will need to install an extension such as Stylus to install this style.
You will need to install a user style manager extension to install this style.
(我已經安裝了使用者樣式管理器,讓我安裝!)
How to Install scripts? (Click here)If you like my work, please consider supporting it!Cryptos https://hacker09.glitch.me/https://www.patreon.com/hacker09If you use the Opera Browser please click here and follow the steps below before installing the script.1 Copy and Paste this on a new browser tab opera://settings/?search=Enable+Mouse+Gestures2 Turn OFF Enable Mouse Gestures.3 Copy and Paste this on a new browser tab opera://settings/?search=Enable+the+search+pop-up+when+selecting+text4 Turn OFF The search pop-up when selecting text.5 Copy and Paste this on a new browser tab opera://settings/?search=Enable+Rocker+Gestures6 Turn OFF Enable rocker gestures.*Click on the bold texts to Read.If you use Ghostery or the Ublock origin Extension click hereFor some reason these extensions block the script from executing on a few websites, to prevent that and make the script always work:On Ublock Origin go to Settings > Filter Lists > Built-in > and disable "uBlock filters".On ghostery disable the ad-blocking featureMouse GesturesIf you want to modify/disable (or add) the mouse gestures. (Start on Line 42 in the script codes.)Here's how to do it.L = Means Left.D = Means Down.U = Means Up.R = Means Right.*You can also Adjust the script mouse sensivity here between 1 ~ 5Just change the number 3 below, to a number between 1 and 5, in the script codesconst SENSITIVITY = 3;If you want to modify the actual mouse gestures of the script follow this example:Change this 'L': function() {to'DL': function() {Before the right click+Left would Go Back to your browser history, now we've changed Left to Down+Left, so the right click+Down+Left will Go Back to your browser history from now on.If you want to disable any of the gestures, you just need to add 2 slashes "//" in front of all the line codes from//Function that will run when the mouse movement *** is performedTill //Finishes the mouse movement ***Example:// 'R': function() { //Function that will run when the mouse movement Right is performed// window.history.forward(); //Go Forward// }, //Finishes the mouse movement RightBefore the right-click+Right mouse gesture would Go Forward your browser history, but now when you do a right-click+Right mouse gesture nothing will happen.If you want to ADD a new mouse gesture follow this example:Copy and paste the 3 lines below after line 40 in the script codes, then modify 'DL' with the mouse actions you want. 'DL': function() { //Function that will run when the mouse movement Down+Left is performed // Here you write the javascript/jQuery codes that you want to be executed when the mouse movement Down+Left is performed }, //Finishes the mouse movement Down+Left Example of javascript codes to Open the actual website on a New Incognito Window!: 'DL': function() { //Function that will run when the mouse movement Down+Left is performed GM_openInTab(location.href, { //Open the link incognito: true, //Open the link on a New Incognito Window }); //Finishes the GM_openInTab window.top.close(); //Close the actual tab }, //Finishes the mouse movement Down+Left I may or not make these modifications easier to do in the future, install the script so you can be aware of new release updates.ActionGestureGo back one pageMove leftGo forward one pageMove rightOpen a new tabMove downReload the pageMove straight up, then straight downClose current tabMove down, then rightOpen a link in a background tabMove straight down, then straight upOpen a link in a new tabMove downOpen a link in a new windowShift ⇧ + Move down, holding shiftRocker Mouse Gestures(Is disabled by default)You can go backward and forward through a tab’s history with rocker gestures.When you enable rocker gestures, you can navigate backward and forwards through pages by rocking your fingers between the right and left mouse buttons. Simply click and hold one button, click the other, then release the first before releasing the second. With a little practice, you can speed through web pages with this gesture.Right Click and hold+Left Click to navigate backward, and Left Click and hold+Right Click to navigate forward.Note: Enabling rocker gestures while using a Magic Mouse or trackpad can cause unpredictable behavior.If you want to modify/disable the Rocker mouse gestures. (Start on Line 196 in the script codes.)Here's how to do it.If you want to disable any of the gestures, you just need to add 2 slashes "//" in front of all the line codes from//If *** was Clicked and then *** Click was releasedTill} //Finishes the if conditionExample://if (LeftClicked && RightClicked === false) { //If Left was Clicked and then Right Click was released// window.history.back(); //Go Back// } //Finishes the if conditionBefore If Left was Clicked and then Right Click was released it would navigate forward, but now nothing will happen when Left was Clicked and then Right Click was released.If you want to modify the actual Rocker mouse gestures of the script follow this example:Change this line window.history.back(); to anything you wantExample:if (LeftClicked && RightClicked === false) { //If Left was Clicked and then Right Click was released window.location.reload(); //Reload the Tab } //Finishes the if conditionBefore If Left was Clicked and then Right Click was released it would navigate forward, but now when Left was Clicked and then Right Click was released the tab will reload.Search HighLight (+ Converters)The search pop-up tool allows you to search or copy the text you highlight on a web page. With just one click, your highlighted text opens a new tab and is queried by Google or any search engine of your choice. You can also copy the text to your clipboard to use later on, and you can open non-links as if they were clickable.If you want to change the default script search engine from Google to another search engine. (Start on Line 651 in the script codes.)Here's how to do it.You just need to changevar LinkfyOrSearch = 'https://www.google.com/search?q='; //Creates a variable to open googleTovar LinkfyOrSearch = 'LINK OF THE SEARCH ENGINE'; //Creates a variable to open THE SEARCH ENGINE YOU WANTExample:var LinkfyOrSearch = 'https://duckduckgo.com/?q='; //Creates a variable to open DuckDuckGoCurrency ConverterHighlighted currency conversion helps you keep things simple - with no need to go to a currency converter webpage or do math. The Script will convert foreign currencies like CAD to USD, Euro to Rupee, the British Pound to Japanese Yen, or any popular foreign currency with the current rate of exchange.The currency converter is especially useful for planning trips, reading international news, online shopping, reading business reports, writing school papers and anything involving money - which is quite a lot.*Foreign exchange rates are always up-to-date.Just make sure you are highlighting both the number and the currency symbol or abbreviation, like 120.37 GBP, 250 EUR, JPY 702, or 8,089 BTC. Cryptocurrencies are included in the currency converter.To select your preferred currency (local currency) – which all foreign currencies will be converted into – select any currency, then a popup box will appear so that you can write and press OK to add your local currency.*The script might take 1/2 secs before showing the currency exchange values.*Disabling the Search HighLight will also disable the currency converter. Enabling the Search HighLight again will give you the option to disable only the currency converter.Currencies SupportedThe script supports 43 types of currencies that are:AUD – Australian DollarBGN – Bulgarian LevBRL – Brazilian RealsBCH – Bitcoin CashBTC – BitcoinBYN – Belarusian RubleCAD – Canadian DollarCHF – Switzerland FrancsCNY – Chinese YuanCZK – Czech KorunaDKK – Danish KroneEUR – EurosEGP – Egyptian PoundETH – EthereumGBP – British PoundsGEL – Georgian LariHKD – Hong Kong DollarHRK – Croatian KunaHUF – Hungarian ForintIDR – Indonesian RupiahILS – Israeli New ShekelINR – Indian RupeeJPY – Japanese YenLTC – LitecoinKRW – South Korean WonMXN – Mexican PesoMYR – Malaysian RinggitNOK – Norwegian KroneNZD – New Zealand DollarPHP – Philippine PesoPLN – Polish ZlotyRON – Romanian LeuRM – Malaysian RinggitRUB – Russian RubleSEK – Swedish KronaSGD – Singapore DollarTHB – Thai BahtTRY – Turkish LiraUSD – United States DollarUAH – Ukrainian hryvniaZAR – South African RandKZT – Kazakhstani TengeYTL – Turkish liraUnits ConverterThe script also has built-in measurement converters to convert unfamiliar numbers with a simple highlight.The Unit Converter tool is an easy-to-use and convenient tool that saves you time and effort.With this script, there’s no need to search for a conversion webpage, copy/paste the relevant information, and search menus for the right units.The unit Converter is easy to use and does the work for you - with precise conversions.How tall, heavy, fast, or far away is that thing you want?Crafting a seasonal beer for the winter, but don’t know how much 4 oz of yeast is in grams? Unsure if your 20 x 30 cm poster from Paris fits a 10 x 16 in frame from California? Travelling and don’t know how far 258 mi is? A simple highlight of these strange values and times with the script quickly converts them into a familiar form.The automatic unit of measurement conversion in the script gives you one less thing to worry about. Highlight imperial or metric units and you will see its counterpart in the pop-up menu. Again, just make sure you are highlighting both the number and the measurement symbol or word, such as 132 lb, 150 pounds, 25kg, 94 mph, 150 kilometers per hour, 21 feet, 10yd, etc. You can also convert Celsius and Fahrenheit. This feature makes it so much easier when you’re planning a trip, doing homework, writing papers, reading about foreign countries or simply browsing the web.*Disabling the Search HighLight will also disable the unit converter. Enabling the Search HighLight again will give you the option to disable only the unit converter.Units SupportedThe script supports 27 units of measurements that are:InchesCentimetersMetersFeetsKilogramsPoundsOuncesGramsFluid ouncesKilometers per hourMeters per hour°C°FMillilitersLitersGallonsYardsMillimetersKilometersMilesKilowattsMechanical HorsePowerMiles per GallonLiters per 100 KilometersLiquid QuartsFoot-PoundsNewton-MetersThe conversions are:Inches ⇄ CentimetersMillimeters ➜ InchesMeters ⇄ FeetsYards ➜ MetersOunces ⇄ GramsKilometers ⇄ MilesKilometers per hour ⇄ Meters per hour°C ⇄ °FMilliliters ⇄ Fluid ouncesLiters ⇄ GallonsKilowatts ⇄ Mechanical HorsePowerMiles per Gallon ⇄ Liters per 100 KilometersLiquid Quarts ⇄ LitersFoot-Pounds ⇄ Newton-MetersFor convenience, the script also calculates Math^Power numbers.