Greasy Fork is available in English.

Opera Browser Rocker+Mouse Gestures + Search HighLight

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.

Zainstaluj skrypt?
Skrypt zaproponowany przez autora

Może Ci się również spodobać. Precise Time Converter on Google

Zainstaluj skrypt
Autor
hacker09
Dziennych instalacji
0
Wszystkich instalacji
346
Oceny
6 0 0
Wersja
58
Utworzono
07-01-2021
Zaktualizowano
22-03-2024
Licencja
Brak licencji
Dotyczy
Wszystkie strony


How to Install scripts? (Click here)



If you like my work, please consider supporting it!

https://www.patreon.com/hacker09







https://greasyfork.org/en/scripts/6911-select-like-opera

If 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+Gestures
2 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+text
4 Turn OFF The search pop-up when selecting text.

5 Copy and Paste this on a new browser tab opera://settings/?search=Enable+Rocker+Gestures
6 Turn OFF Enable rocker gestures.


*Click on the bold texts to Read.


If you use Ghostery or the Ublock origin Extension click here
For 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 feature




Mouse Gestures


If 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 ~ 5
Just change the number 3 below, to a number between 1 and 5, in the script codes
const 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 performed
Till
//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 Right

Before 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.



ActionGesture
Go back one pageMove left
Go forward one pageMove right
Open a new tabMove down
Reload the pageMove straight up, then straight down
Close current tabMove down, then right
Open a link in a background tabMove straight down, then straight up
Open a link in a new tabMove down
Open a link in a new windowShift ⇧ + Move down, holding shift



Rocker 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 released
Till
} //Finishes the if condition

Example:
//if (LeftClicked && RightClicked === false) { //If Left was Clicked and then Right Click was released
// window.history.back(); //Go Back
// } //Finishes the if condition

Before 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 want

Example:
if (LeftClicked && RightClicked === false) { //If Left was Clicked and then Right Click was released
window.location.reload(); //Reload the Tab
} //Finishes the if condition

Before 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 change

var LinkfyOrSearch = 'https://www.google.com/search?q='; //Creates a variable to open google

To

var LinkfyOrSearch = 'LINK OF THE SEARCH ENGINE'; //Creates a variable to open THE SEARCH ENGINE YOU WANT

Example:
var LinkfyOrSearch = 'https://duckduckgo.com/?q='; //Creates a variable to open DuckDuckGo





Currency Converter




Highlighted 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 Supported


The script supports 43 types of currencies that are:

AUD – Australian Dollar
BGN – Bulgarian Lev
BRL – Brazilian Reals
BCH – Bitcoin Cash
BTC – Bitcoin
BYN – Belarusian Ruble
CAD – Canadian Dollar
CHF – Switzerland Francs
CNY – Chinese Yuan
CZK – Czech Koruna
DKK – Danish Krone
EUR – Euros
EGP – Egyptian Pound
ETH – Ethereum
GBP – British Pounds
GEL – Georgian Lari
HKD – Hong Kong Dollar
HRK – Croatian Kuna
HUF – Hungarian Forint
IDR – Indonesian Rupiah
ILS – Israeli New Shekel
INR – Indian Rupee
JPY – Japanese Yen
LTC – Litecoin
KRW – South Korean Won
MXN – Mexican Peso
MYR – Malaysian Ringgit
NOK – Norwegian Krone
NZD – New Zealand Dollar
PHP – Philippine Peso
PLN – Polish Zloty
RON – Romanian Leu
RM – Malaysian Ringgit
RUB – Russian Ruble
SEK – Swedish Krona
SGD – Singapore Dollar
THB – Thai Baht
TRY – Turkish Lira
USD – United States Dollar
UAH – Ukrainian hryvnia
ZAR – South African Rand
KZT – Kazakhstani Tenge
YTL – Turkish lira




Units Converter




The 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 Supported


The script supports 27 units of measurements that are:
Inches
Centimeters
Meters
Feets
Kilograms
Pounds
Ounces
Grams
Fluid ounces
Kilometers per hour
Meters per hour
°C
°F
Milliliters
Liters
Gallons
Yards
Millimeters
Kilometers
Miles
Kilowatts
Mechanical HorsePower
Miles per Gallon
Liters per 100 Kilometers
Liquid Quarts
Foot-Pounds
Newton-Meters

The conversions are:

Inches ⇄ Centimeters
Millimeters ➜ Inches
Meters ⇄ Feets
Yards ➜ Meters
Ounces ⇄ Grams
Kilometers ⇄ Miles
Kilometers per hour ⇄ Meters per hour
°C ⇄ °F
Milliliters ⇄ Fluid ounces
Liters ⇄ Gallons
Kilowatts ⇄ Mechanical HorsePower
Miles per Gallon ⇄ Liters per 100 Kilometers
Liquid Quarts ⇄ Liters
Foot-Pounds ⇄ Newton-Meters

For convenience, the script also calculates Math^Power numbers.