Last active
November 7, 2017 16:42
-
-
Save koma5/bd585a9d9f6f74e6b32c14c45cfccbc2 to your computer and use it in GitHub Desktop.
auto insert "3052 Zollikofen, Webergutstrasse 12" in from field on sbb website.
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 sbb auto insert | |
// @namespace https://www.sbb.ch/ | |
// @version 0.1 | |
// @description insert "3052 Zollikofen, Webergutstrasse 12" | |
// @author koma5 | |
// @match https://www.sbb.ch/* | |
// @grant none | |
// @downloadURL https://gist.githubusercontent.com/koma5/bd585a9d9f6f74e6b32c14c45cfccbc2/raw/sbb_auto_insert.js | |
// @updateURL https://gist.githubusercontent.com/koma5/bd585a9d9f6f74e6b32c14c45cfccbc2/raw/sbb_auto_insert.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var f = document.getElementById('fromField'); | |
f.value = "3052 Zollikofen, Webergutstrasse 12"; | |
f = document.getElementById('toField'); | |
f.focus(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment