├── icons
├── 16.png
├── 48.png
└── 128.png
├── src
└── inject
│ └── inject.js
├── manifest.json
├── LICENSE
└── _locales
└── en
└── messages.json
/icons/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ubahnverleih/Code-F1/master/icons/16.png
--------------------------------------------------------------------------------
/icons/48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ubahnverleih/Code-F1/master/icons/48.png
--------------------------------------------------------------------------------
/icons/128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ubahnverleih/Code-F1/master/icons/128.png
--------------------------------------------------------------------------------
/src/inject/inject.js:
--------------------------------------------------------------------------------
1 | chrome.extension.sendMessage({}, function(response) {
2 | var readyStateCheckInterval = setInterval(function() {
3 | if (document.readyState === "complete") {
4 | clearInterval(readyStateCheckInterval);
5 | setInterval(function(){
6 | var xhr = new XMLHttpRequest();
7 | xhr.open('GET', window.location.href);
8 | xhr.send(null);
9 | }, 1000 * 60 * 5)
10 | }
11 | }, 10);
12 | });
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Code: F1",
3 | "version": "1.0",
4 | "manifest_version": 2,
5 | "description": "Verhindert das ablaufen der Sessions bei der Fahrplanauskunft der Deutschen Bahn",
6 | "homepage_url": "http://blattspinat.com",
7 | "icons": {
8 | "16": "icons/16.png",
9 | "48": "icons/48.png",
10 | "128": "icons/128.png"
11 | },
12 | "default_locale": "en",
13 | "permissions": [
14 | "https://reiseauskunft.bahn.de/*"
15 | ],
16 | "content_scripts": [
17 | {
18 | "matches": [
19 | "https://reiseauskunft.bahn.de/*"
20 | ],
21 | "js": [
22 | "src/inject/inject.js"
23 | ]
24 | }
25 | ]
26 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Constantin
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/_locales/en/messages.json:
--------------------------------------------------------------------------------
1 | {
2 | "l10nTabName": {
3 | "message":"Localization"
4 | ,"description":"name of the localization tab"
5 | }
6 | ,"l10nHeader": {
7 | "message":"It does localization too! (this whole tab is, actually)"
8 | ,"description":"Header text for the localization section"
9 | }
10 | ,"l10nIntro": {
11 | "message":"'L10n' refers to 'Localization' - 'L' an 'n' are obvious, and 10 comes from the number of letters between those two. It is the process/whatever of displaying something in the language of choice. It uses 'I18n', 'Internationalization', which refers to the tools / framework supporting L10n. I.e., something is internationalized if it has I18n support, and can be localized. Something is localized for you if it is in your language / dialect."
12 | ,"description":"introduce the basic idea."
13 | }
14 | ,"l10nProd": {
15 | "message":"You are planning to allow localization, right? You have no idea who will be using your extension! You have no idea who will be translating it! At least support the basics, it's not hard, and having the framework in place will let you transition much more easily later on."
16 | ,"description":"drive the point home. It's good for you."
17 | }
18 | ,"l10nFirstParagraph": {
19 | "message":"When the options page loads, elements decorated with data-l10n will automatically be localized!"
20 | ,"description":"inform that