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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>Portugal Places Map</title> | |
| <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | |
| <style> | |
| * { box-sizing: border-box; margin: 0; padding: 0; } | |
| body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f4f0; } |
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== | |
| // @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 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
| 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 | |
| } |