This userscript allows you to customize how the files downloaded from the
codeboxes over at the autohotkey forum are named. By default they will all be
named Untilted.ahk
There are currently two versions of the script:
// ==UserScript== | |
// @name Reddit Hide Promoted Links (New Design) | |
// @namespace http://github.com/rohenaz | |
// @version 0.1 | |
// @description remove promoted posts and advertisements | |
// @author Satchmo | |
// @match https://www.reddit.com/* | |
// @grant none | |
// ==/UserScript== |
This userscript allows you to customize how the files downloaded from the
codeboxes over at the autohotkey forum are named. By default they will all be
named Untilted.ahk
There are currently two versions of the script:
// ==UserScript== | |
// @name Autoclose URL | |
// @namespace Autoclose URL | |
// @include * | |
// @grant window.close | |
// ==/UserScript== | |
function check_if_should_close(url) { | |
if (url.match(/rnoreward/)) | |
return true; |
// ==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); |
~#!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:: | |
{ |
#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. | |
~x & c:: Send, {BS}[email protected] | |
~#!x::Suspend |
#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. | |
; Works on Chrome and Mozilla (untested on others) | |
; left (with paste then tab) | |
WheelLeft:: | |
Send ^+{Tab} |
^Left:: | |
Send ^+{Tab} | |
return | |
^Right:: | |
Send ^{Tab} | |
return | |
~#!x::Suspend |
Suspend, on | |
; Example #4: Detects when a key has been double-pressed (similar to double-click). | |
; KeyWait is used to stop the keyboard's auto-repeat feature from creating an unwanted | |
; double-press when you hold down the RControl key to modify another key. It does this by | |
; keeping the hotkey's thread running, which blocks the auto-repeats by relying upon | |
; #MaxThreadsPerHotkey being at its default setting of 1. | |
; Note: There is a more elaborate script to distinguish between single, double, and | |
; triple-presses at the bottom of the SetTimer page. | |
~LButton:: |
#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. | |
; Array of URLs you want to open | |
urlA := ["https://example.com" | |
,"https://example2.com" | |
,"https://example3.com" | |
,"https://example4.com"] |