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
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:: |
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. | |
; Array of URLs you want to open | |
urlA := ["https://example.com" | |
,"https://example2.com" | |
,"https://example3.com" | |
,"https://example4.com"] |
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 Tab | |
// @namespace Autoclose Tab | |
// @include * | |
// ==/UserScript== | |
// separate words or phrases with a comma | |
var blacklist = ["cactus", "finances", "put other text here"], | |
re = new RegExp(blacklist.join('|'), "i"); | |
if (re.test(document.body.textContent)) { |
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(/yourURLtexthere/)) | |
return true; |
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
import webbrowser | |
webbrowser.open('https://www.example.com/r/Music/') | |
webbrowser.open_new_tab('https://www.example2.com/') | |
webbrowser.open_new_tab('https://www.example3.com/') | |
webbrowser.open_new_tab('https://www.example4.com/') |
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 Case Insensitive Label-based Radio Button Autofill ("Xabc Yhjk") | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.qualtrics.com/* | |
// @match https://*.surveymonkey.com/* | |
// @match https://*.surveygizmo.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js |
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 Autoclick Link with Specified Text | |
// @include https://www.example.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js | |
// @grant GM_addStyle | |
// ==/UserScript== | |
/*- The @grant directive is needed to work around a design change | |
introduced in GM 1.0. It restores the sandbox. | |
*/ |
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
#Selenium written in Python | |
#Changes the user agent to search Bing as if on a mobile device (from the desktop) | |
#Problems with finding element and clicking to log into Bing ; Python mouse click events can fix this | |
#Work in progress - can likely replace the first sign-in attempt with a mouse click event and then remove the next bit of code that opens the sidebar and signs in | |
#Can streamline with dictionary/list/tuple/keys | |
#old method used fake_useragent | |
import time | |
from selenium import webdriver | |
from pynput.mouse import Button, Controller |
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
#Selenium written in Python | |
#Automates Bing searches | |
#Work in progress - streamline with dictionary/tuple/list/keys | |
#Uses Chrome and Chromedriver to run random Bing searches | |
#change timings and search queries to your liking | |
import time | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.keys import Keys |
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. | |
#If MouseIsOver("ahk_class Shell_TrayWnd") or MouseIsOver("ahk_class Shell_SecondaryTrayWnd") | |
WheelUp::Send {Volume_Up} | |
WheelDown::Send {Volume_Down} | |
MouseIsOver(WinTitle) |