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
pushd D:\YOUR_FOLDER\username.github.io | |
git add . | |
git commit -m auto | |
git push |
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
#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: | |
( |
NewerOlder