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 Auto Duo Security - Send push automatically | |
// @match https://*.duosecurity.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== | |
waitForKeyElements ("#auth_methods > fieldset > div.row-label.push-label > button.auth-button.positive", function(jNode) { | |
jNode.click() |
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
function gmailAutoarchive() { | |
var labels = GmailApp.getUserLabels(); | |
var pattern = new RegExp("^autoarchive(\\d+)d"); | |
for (var a = 0; a < labels.length; a++) { | |
var label = labels[a].getName() | |
match = pattern.exec(label) | |
if (!match || !(match[1])) { | |
Logger.log("Ignoring label " + label); | |
continue | |
} |