BS_Library

Bibliothek mit nützlichen Funktionen für BS Userscripte.

As of 02.12.2018. See апошняя версія.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://updategf.qytechs.cn/scripts/375096/650127/BS_Library.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
Asu_nyan
Версія
1.1
Створаны
02.12.2018
Абноўлены
02.12.2018
Памер
3.7 КБ
Ліцэнзія
Н/Д

Diese Bibliothek enthält folgende Funktionen:

Zusatzinfo: Das Object: BS ist an window gebunden. Also window.BS.

Global

  • BS.Global.SecurityToken() Gibt den SecurityToken zurück, welcher benötigt wird, um bestimmte Aktionen durchführen zu können.
    • Return: String

Series

  • BS.Series.ID() Gibt die ID der Serie zurück, auf welcher man sich gerade befindet (falls man sich auf einer befindet).
    • Return: Number

Audio

  • BS.Audio.Notification
    • String; URL zur MP3-Datei der Standard Forum-Notification.

Image

  • BS.Image.PN

    • String; URL zu einem geeigneten Icon, welches für die Notification API verwendet werden kann.
  • BS.Image.Favicon

    • String; URL zum Favicon von BS.

Module

  • BS.Module.Update(Selector)

    • Selector: String; ID des Moduls, welches geupdated werden soll, in Form eines CSS-Selectors.
    • Return: Void
  • BS.Module.MultiUpdate(SelectorList)

    • SelectorList: Array<String>; Liste von IDs der Module, welche geupdated werden sollen, in Form von CSS-Selector.
  • BS.Module.Get(Selector)

    • Selector: String; ID eines Moduls, in Form eines CSS-Selectors.
    • Return: Element

Helper

  • BS.Helper.InjectCSS(Link, CSS) Wenn ein Link vorhanden ist, wird dieser als <link> im <head> des Dokuments eingefügt. Wenn CSS vorhanden ist, wird der Code als <style> im <head> des Dokuments eingefügt.

    • Link: String; Link zu einer CSS-Datei.
    • CSS: String; CSS Code.
  • BS.Helper.RemoveDuplicates(Array) Entfernt redundante Eintrage eines Arrays und gibt das neue Array zurück.

    • Array: Array<Number>
    • Return: Array<Number>

Folgendes wird bald noch hinzugefügt:

Notification

  • BS.Notification.* Namespace rund um Desktopbenachrichtigungen.

PN

  • BS.PN.Send(Options) Sendet eine Private Nachricht.

  • BS.PN.* Namespace rund um Private Nachrichten.

Favorites

  • BS.Favorites.* Namespace rund um Favoriten / Gespeicherte Serien.