This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~#!x::Suspend | |
SendMode Input | |
RegRead, OutputVar, HKEY_CLASSES_ROOT, http\shell\open\command | |
StringReplace, OutputVar, OutputVar," | |
SplitPath, OutputVar,,OutDir,,OutNameNoExt, OutDrive | |
browser=%OutDir%\%OutNameNoExt%.exe | |
^g:: | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#z:: | |
Sleep, 200 | |
SendMessage,0x112,0xF170,2,,Program Manager | |
return | |
~#!x::Suspend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
~SC027 & SC028:: | |
Send {Backspace} | |
clipboard = ; send this text to the clipboard: | |
( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google digits | |
// @include https://www.google.tld/* | |
// @run-at document-start | |
// ==/UserScript== | |
// only work on search pages with #q= &q= ?q= | |
if (location.href.match(/[#&?]q=/)) { | |
window.addEventListener('keydown', function(e) { | |
var digit = e.keyCode - 48; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Auto-Refresh | |
// @include https://www.example.com | |
// ==/UserScript== | |
//--- https://stackoverflow.com/questions/25484978/i-want-a-simple-greasemonkey-script-to-reload-the-page-every-minute | |
setTimeout(function(){ location.reload(); }, 20*1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Autoclose URL | |
// @namespace Autoclose URL | |
// @include * | |
// @grant window.close | |
// ==/UserScript== | |
function check_if_should_close(url) { | |
if (url.match(/rnoreward/)) | |
return true; |
NewerOlder