Greasy Fork is available in English.

yssWaitForNode

Be smart!

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/454354/1145153/yssWaitForNode.js

Autor
ysslang
Version
1.2.4.1
Erstellt am
06.11.2022
Letzte Aktualisierung
03.02.2023
Lizenz
n/a

Usage

var WFN = new WaitForNode();

  url = '';
  url = 'https://valid.url.com/path/or/not'
  url = 'part.of/url'
  url = 'regex.string'
  url = /regex/
  url = ['a', 'list', 'of', 'urls', 'or', 'parts', 'or', /regex/]

WFN.add(name, url, selector, callback);
WFN.add(name, url, selector, callback, options);

  const lists = [
    [selector],
    [subname, selector],
    [selector, callback],
    [subname, selector, callback],
    [subname, url, selector, callback],
    [selector, callback, options],
    [subname, selector, callback, options],
    [subname, url, selector, callback, options],
  ]

WFN.batchAdd(name, url, lists);
WFN.batchAdd(name, url, lists, callback);
WFN.batchAdd(name, url, lists, options);
WFN.batchAdd(name, url, lists, callback, options);

WFN.addCss(name, url, cssString);