Use waitforkeyelements for handyflash

This commit is contained in:
2016-05-14 14:20:27 +02:00
parent 2fc2529aa0
commit b59e7c0b52

View File

@ -1,16 +1,20 @@
// ==UserScript== // ==UserScript==
// @name Gesamtkosten Handyflash // @name Gesamtkosten Handyflash
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 0.2 // @version 0.3
// @description Berechnet die Gesamtkosten der Verträge auf handyflash.de // @description Berechnet die Gesamtkosten der Verträge auf handyflash.de
// @author Jan Bader <jan@javil.eu> // @author Jan Bader <jan@javil.eu>
// @match http*://www.handyflash.de/handys/* // @match http*://www.handyflash.de/handys/*
// @updateUrl https://git.javil.eu/jacob1123/userscripts/raw/master/total-cost.handyflash.user.js // @updateUrl https://git.javil.eu/jacob1123/userscripts/raw/master/total-cost.handyflash.user.js
// @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript== // ==/UserScript==
(function() { (function() {
'use strict'; 'use strict';
waitForKeyElements("article.rate", actionFunction);
function actionFunction() {
jQuery("article.rate").each( jQuery("article.rate").each(
function(i, tarif) { function(i, tarif) {
var grundgebuehr_text = jQuery(tarif).find(".tariff_price").text(); var grundgebuehr_text = jQuery(tarif).find(".tariff_price").text();
@ -29,4 +33,5 @@
console.log(header + ": " + info); console.log(header + ": " + info);
} }
); );
}
})(); })();