Skip to content

Instantly share code, notes, and snippets.

@koma5
Last active November 7, 2017 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koma5/bd585a9d9f6f74e6b32c14c45cfccbc2 to your computer and use it in GitHub Desktop.
Save koma5/bd585a9d9f6f74e6b32c14c45cfccbc2 to your computer and use it in GitHub Desktop.
auto insert "3052 Zollikofen, Webergutstrasse 12" in from field on sbb website.
// ==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