Skip to content

Instantly share code, notes, and snippets.

theFloodShark thefloodshark

Block or report user

Report or block thefloodshark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thefloodshark
thefloodshark / Autoclicklink.js
Created Mar 13, 2019
Autoclick Link with Specified Text
View Autoclicklink.js
@thefloodshark
thefloodshark / Caseautofill.js
Last active Mar 13, 2019
Case Insensitive Radio Button Autofiller
View Caseautofill.js
// ==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
@thefloodshark
thefloodshark / .py
Created Apr 3, 2018
Open List of URLs
View .py
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/')
@thefloodshark
thefloodshark / .js
Created Apr 3, 2018
Automatic Tab Closer Based on URL Text
View .js
// ==UserScript==
// @name Autoclose URL
// @namespace Autoclose URL
// @include *
// @grant window.close
// ==/UserScript==
function check_if_should_close(url) {
if (url.match(/yourURLtexthere/))
return true;
@thefloodshark
thefloodshark / .js
Created Apr 3, 2018
Tampermonkey Userscript - Automatically Close Tab Based on Page Text
View .js
// ==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)) {
@thefloodshark
thefloodshark / .ahk
Created Apr 2, 2018
Open List of URLs in New Tabs or Browser
View .ahk
#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"]
@thefloodshark
thefloodshark / .ahk
Created Apr 2, 2018
Toggle Double-Click to Copy
View .ahk
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::
@thefloodshark
thefloodshark / .ahk
Created Apr 2, 2018
Alternative Tab Switching
View .ahk
^Left::
Send ^+{Tab}
return
^Right::
Send ^{Tab}
return
~#!x::Suspend
@thefloodshark
thefloodshark / .ahk
Last active Mar 15, 2019
Left/Right Mouse Wheel Click Tab Switch
View .ahk
#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}
@thefloodshark
thefloodshark / .ahk
Created Apr 2, 2018
Keybind Enter Text
View .ahk
#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}youremail@example.com
~#!x::Suspend
You can’t perform that action at this time.