Alert Messages

Sends an alert when you press a certain button on your keyboard

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Alert Messages
// @namespace    http://tampermonkey.net/
// @homepage     https://greasyfork.org/en/users/946530-purefishmonke
// @version      2.4
// @description  Sends an alert when you press a certain button on your keyboard
// @supportURL   https://discord.com/invite/XZ8JqgYg93
// @author       DevFish 
// @match        https://*/*
// @license      MIT
// ==/UserScript==

///Config///
var txt = "Hello World!" // Text The Alert Shows
var btn = 192 // Keycode of the button that triggers the alert. (Default button is the ` button) You can find keycodes at https://keycodes.info

/// Script (Do not edit) ///

window.onkeydown = function(event){if(event.keyCode == btn){alert(txt)}}