This file contains hidden or 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== | |
// @id iitc-plugin-multi-passcode@rongself | |
// @name IITC plugin: Multi Passcode Redeem | |
// @category Controls | |
// @version 0.1.0.20180529.1331. | |
// @namespace https://gist.github.com/rongself/288ad6c887ffb184b469ae0295acc642 | |
// @updateURL https://gist.github.com/appastair/bd32ac0bbfed9a476edd0d2c2148d25e | |
// @downloadURL https://gist.github.com/appastair/bd32ac0bbfed9a476edd0d2c2148d25e | |
// @description [rongself-2016-07-17-154202] script for multi passcode apply [appastair-2018-05-28.1331] fixed and added support for newline | |
// @include https://*.ingress.com/intel* |
This file contains hidden or 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
#!/usr/bin/env bash | |
while [ 1 ]; do | |
# The --password-store=basic is there to avoid the KDE Wallet access | |
# request dialog on start-up. | |
google-chrome --password-store=basic --app=http://www.ingress.com/intel?ll=-33.781201,150.619812\&z=10 & | |
# Get the process ID, so we can kill it later | |
chrome_pid=$! | |
sleep 3 | |
# Get the X window ID of the process we just started so we can resize it. |