ich bräuchte mal Hilfe.
Ich suche derzeit ein Script für die Webseite Twitch.
Es gibt ähnliches, aber nicht genau das was ich suche.
Funktion:
Seitenabfrage (Intervall 15 Sec.) zb als XHR-Aktualisierung oder oder oder..
Diese soll nach meinen gewünschten Text (Wort) suchen..
Wenn gefunden, soll er die Seite einmal neu laden und mich zuvor per Push benachrichtigen und stoppen..
Warum?
Ich habe oft mehrere Channel in mehreren Fenstern und Tabs im Hintergrund laufen und dies auch sehr lange, wodurch ich manchmal einen Fehlercode "Dieses Video ist nicht verfügbar. (Fehler #5000)" erhalte. Daher möchte ich 2 Wörter abfragen, "LIVE" und "5000" und wenn eines gefunden wird, das er dann die Seite neu lädt und dann stoppt.
Beispiel.
Ich gehe auf Seite Twitch zu einem Channel.
Dieser ist offline.
Ich aktiviere das Script und Gebe das Wort LIVE und 5000 ein.
Nun fragt das script alle 15sec im Background ab, ob der Text gefunden wurde. (Manuelle Zeit Eingabe wäre natürlich auch Super.)
Sobald die Person Online geht, erscheint das Wort LIVE, entsprechend müsste das Script dann die Seite neu Laden und am besten mich dann Zuvor per Push benachrichtigen und dann stoppen.
Ich hoffe mir kann da jemand mit helfen
Vielen Dank
**Ich bin mit Tampermonkey leider nur soweit gekommen, allerdings funktioniert das nicht wirklich und die funktionen fehlen auch halbwegs.. Wer daher bessere Lösungen hat, dem wäre ich sehr dankbar. Und nein, es muss nicht über Tampermonkey laufen, ganz nach euren wünschen :P**
Code:
(function() {
'use strict';
$(document).ready(function()
{
var LookFor = "LIVE"; // Change this to find a different string
if($('body:contains("' + LookFor + '")').length > 0)
{
alert("Found: " + LookFor);
}
else
{
location.reload();
}
});
})();
-----ENG Translate:
Hello all,
I need some help.
I am currently looking for a script for the website Twitch.
There is something similar, but not exactly what I am looking for.
Function:
Page query (interval 15 sec.) e.g. as XHR update or or or.
This is supposed to search for my desired text (word)....
If found, it should reload the page once and notify me via push before and stop....
Why?
I often have multiple channels running in multiple windows and tabs in the background and for a very long time, which sometimes gives me an error code "This video is not available. (Error #5000)". Therefore I would like to query 2 words, "LIVE" and "5000" and if one is found, that it then reloads the page and then stops.
Example.
I go to a channel on the Twitch page.
This channel is offline.
I activate the script and enter the word LIVE and 5000.
Now the script asks every 15 sec in the background if the text was found. (Manual time input would be also super of course).
As soon as the person goes online, the word LIVE appears, accordingly the script would then have to reload the page and best then notify me beforehand by push and then stop.
I hope someone can help me with this
Thanks a lot
**I'm with Tampermonkey unfortunately only come so far, however, that does not really work and the functions are also missing halfway.... Who therefore has better solutions, I would be very grateful. And no, it does not have to run over Tampermonkey, according to your wishes :P** *See above







