AIGPT Everywhere

hacker09
2021-01-07T18:40:56Z

Mini A.I. floating menu that can define words, answer questions, translate, and much more in a single click and with your custom prompts. Includes useful click to search on Google and copy selected text buttons, along with Rocker+Mouse Gestures and Units+Currency+Time zone Converters, all features can be easily modified or disabled

How to Install scripts? (Click here)

If you like my work, please consider supporting it! (Cryptos / Patreon / Ko-Fi / BuyMeACoffee https://cyber-sec0.github.io)

How to add my Artificial Intelligence API Key?

1 Open https://aistudio.google.com/app/apikey
2. Click on "Get API Key."
3. Click on "Create API Key".
4. Click on "Got it."
5. Click on the input button
6. Click on "Generative Language Client."
7. Click on "Create API Key in existing project."

*The script color theme changes to dark/white mode depending on your browser theme.

Future Update Plans

Add the ability for all users to create custom prompt boxes with stored prompt text, and also add a "summarize page" button as a black dropdown menu when the tab key is pressed.
Add an option to let users choose the API endpoint.
Add an option to let users choose the default AI voice.
Add an option to let users choose the default answer language.
Add a send written prompt BTN on click.
Add an option to let users use only the CSS/JS/HTML site context for website coding questions.
Add a code block with a black background color and a copy code button when the AI response returns codes.
Add support for uploading files to the AI.
Add support to switch between different AIs.
Add ChatGPT.

Add AI fine-tuning support by letting users adjust all of the following AI parameters:
System Instructions: Custom directives for guiding the model's behavior.
Stop Sequence: Specifies tokens or sequences where the model should stop generating further output.
Number of Response Candidates: Defines how many different responses the model should generate for a given prompt.
Temperature: Controls the creativity of the model’s responses. Lower values make the model more focused and deterministic, while higher values increase randomness and diversity.
Max Output Tokens: Limits the length of the model's response.
Top-P (Nucleus Sampling): Adjusts the diversity of responses by focusing on the most probable words whose cumulative probability is below a threshold.
Top-K: Restricts sampling to the top K most probable words.

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.
You can open the AI prompt box by pressing CTRL + / or Ctrl + Shift + 7. When CTRL + / or Ctrl + Shift + 7 is pressed on a textbox, the textbox text is automatically copied into the AI prompt.

Mouse Gestures

If you want to modify/disable (or add) the mouse gestures. (Start below the line "const funcs = {" 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's mouse sensitivity 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
'LU': function() {

Previously, the right-click + left mouse gesture would Go Back to your browser history. Now,w we've changed it to Left-Click + up, so the right-click + left-up mouse gesture 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 the line "const funcs = {" in the script codes, then add the mouse actions or just modify the 'LU' mouse action example below.

'LU': function() { //Function that will run when the mouse movement Left+Up is performed
// Here you write the JavaScript/jQuery codes that you want to be executed when the mouse movement Left+Up is performed
}, //Finishes the mouse movement Left+Up

I may or may not make these modifications easier to do in the future, and install the script so you can be aware of new release updates.

Action | Gesture
Go back one page | | Move left
Go forward one page | | Move right
Open a new tab | | Move down
Reload the page | | Move straight up, then straight down
Close current tab | | Move down, then right

|
Open a link in a background tab | | Move straight down, then straight up
Open a link in a new tab | | Move down
Open a link in a new window | Shift ⇧ + | Move down, holding shift

Rocker Mouse Gestures

(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 forward 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 the line "var LeftClicked, RightClicked;" 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 is clicked and then Right Click is 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.

Image Generation

*Click on the image to download it.
Here’s a simple breakdown of valid keywords to trigger the image generation:
(generate|create|draw|make) = Must begin with one of these words.
(me|an?|the|this|that)? = Optionally followed by one of these words.
Any words after that (space required).
(at|in|on|of|for|about|showing|depicting|illustrating) = Must contain one of these before the actual subject.

This matches prompts like:
"generate me a picture of..."
"create the image showing..."
"draw an illustration for..."
You will know that your prompt worked when you see the text "Generating image..." after sending your prompt.

Prompt examples and try out at:
https://regex101.com/r/t2ltmH/1

*For best performance, use the following languages:
• EN: English (Likely a general version, potentially US English if not specified further)
• es-MX: Spanish (Specifically the Mexican dialect)
• ja-JP: Japanese (Japan)
• zh-CN: Chinese (Simplified, as used in mainland China)
• hi-IN: Hindi (India)

*Rate limits: 10 images per minute, 100 images per day.

Search HighLight (+ Converters)

Keep the Search Highlight function enabled to be able to use the 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, change the line 'https://www.google.com/search?q=' in the script code.

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

Any of the converted values can be copied to your clipboard by hovering your mouse pointer over the conversion and clicking the revealed Copy button. Enjoy browsing made just a little bit easier for you.

Time zone Converter

Don’t confuse the start time of something important!

https://www.forbes.com/sites/jamiecartereurope/2020/02/14/the-moon-is-about-to-eat-mars-and-some-north-americans-can-feast-their-eyes-on-this-rare-sight/

Need to check what time locally your hometown football club is playing at a 20:00 GMT kickoff while traveling in Moscow? Can’t be late for a 9:00 EST conference call with clients in New York when you’re in Prague? Highlighting a distant time zone will adjust it to your local time.

The integrated time zone converter is a simple quality-of-life feature that really comes in handy when you need it. If you’re reading an article online and find an unfamiliar time like 16:20 NST or 4:00 AM EST, just highlight the time and the time-zone abbreviations (CET, JST) and it will be converted to your local time zone.

Time zones Supported

The script supports 17 different types of time zones that are:

1. | PST / PDT: Pacific Standard / Daylight Time | 4:00 PST
2. | MST / MDT: Mountain Standard / Daylight Time | 7:00pm MDT
3. | CST / CDT: Central Standard / Daylight Time | 2:37am CST
4. | EST / EDT: Eastern Standard / Daylight Time | 20:30 EDT
5. | AST / ADT: Atlantic Standard Time / Daylight Time | 11:35AM AST
6. | NST / NDT: Newfoundland Standard Time / Daylight Time | 3:55 NST
7. | GMT: Greenwich Mean Time | 8:00 GMT
8. | BST: British Summer Time | 12:12 BST
9. | MET: Middle Europe Time | 9:14 MET
10. | CET / CEST: Central Europe Time / Daylight (Summer) Time | 16:33 CEST
11. | EET / EEST: Eastern European Time / Daylight (Summer) | 16:33 EEST
12. | WET / WEST: Western European Time / Daylight (Summer) | 16:33 WET
13. | JST: Japan Standard Time | 23:55 JST
14. | KST: Korean Standard Time | 1:12 KST
15. | IST: Indian Standard Time | 0:00 IST
16. | MSK: Moscow Standard Time | 5:22PM MSK
17. | PT: Pacific Time | 5:22PM PT

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, and then a pop-up box will appear so that you can write and press OK to add your local currency.

Currencies Supported

The script supports 37 types of currencies that are:

AUD – Australian Dollar – $71,52 AUD
BCH – Bitcoin Cash – 100 BCH
BGN – Bulgarian Lev – 93,88 BGN, 93.88лв
BRL – Brazilian Reals – 178.46 BRL, R$178,46
BTC – Bitcoin – 200 BTC, 200₿
BYN – Belarusian Ruble – 300 BYN, 300Br
CAD – Canadian dollar – $71.09CAD
CHF – Switzerland Francs – 54,64 CHF, 54.64Fr
CNY – Chinese Yuan – 376.75CNY
CZK – Czech Koruna – 1252,12 CZK, Kč 1,252.12
DKK – Danish Krone – 357.03 DKK
EUR – Euros – €48, 48 EUR
GBP – British Pounds – 43,97 GBP, £43.97
GEL – Georgian Lari – 400 GEL, 400₾
HKD – Hong Kong Dollar – 441,61HKD, HK$ 441.61
HUF – Hungarian Forint – 14559,22 HUF
IDR – Indonesian Rupiah – 752995,06 IDR, 752,995.06 Rp
ILS – Israeli New Shekel – 204,05 ILS, ₪ 204.05
INR – Indian Rupee – 3618,91 INR
JPY – Japanese Yen – 6174,09 JPY, ¥ 6,174.09, 6174.09 円
KRW – South Korean Won – 63899,08 KRW, ₩63,899.08
KZT – Kazakhstani Tenge – 600 KZT, 600₸
LTC – Litecoin – 400 LTC
MXN – Mexican peso – 1000,80 MXN
NOK – Norwegian Krone – 446,36 NOK, 446,36kr
NZD – New Zealand Dollar – 78.10 NZD
PHP – Philippine Peso – 2,890.56 PHP, ₱ 2890,56
PLN – Polish Zloty -205.184 PLN, 205,18zł
RON – Romanian Leu – 220.03 RON, 220,03 lei
RUB – Russian Ruble – 3334,29 RUB, 3334,29₽, 3334.29руб
SEK – Swedish Krona – 457.45 SEK
SGD – Singapore Dollar – 76.84 SGD
THB – Thai Baht – 1879,73 THB, 1879.73฿
TRY – Turkish Lira – 197,48 TRY, 600 YTL, 600₺
UAH – Ukrainian hryvnia – 500 UAH, 500₴
USD – United States Dollar – $56.38, 56,38 USD
ZAR – South African Rand – 746,35 ZAR

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 their counterparts 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.

Units Supported

The script supports 27 units of measurement that are:
Inches
Centimeters
Meters
Feets
Kilograms
Pounds
Ounces
Grams
Fluid ounces
Kilometers per hour
Miles 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 | 72in, 72″ | 182.88 cm
Millimeters ➜ Inches | 50mm | 1.97in
Meters ⇄ Feet | 6.50 ft | 1.98 m
Yards ➜ Meters | 239 yd | 218.46 m
Ounces ⇄ Grams | 1.76 oz | 49.90 g
Kilometers ⇄ Miles | 60mi | 96.54 km
Kilometers per hour ⇄ Miles per hour | 62.14mph | 99.98 km/h
°F ⇄ °C | 39°C | 102.20°F
Milliliters ⇄ Fluid ounces | 49.98 ml | 1.69 fl
Liters ⇄ Gallons | 2.06 gal | 7.80 l
Kilowatts ⇄ Mechanical HorsePower | 700kW | 938.70 mhp
Miles per Gallon ⇄ Liters per 100 Kilometers | 33.6mpg | 7l/100km
Liquid Quarts ⇄ Liters | 4 qt | 3.78 l
Foot-Pounds ⇄ Newton-Meters | 250lb ft | 338.95 N·m

For convenience, the script also calculates Math^Power (2^3) numbers.