BS_Library

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

Tính đến 02-12-2018. Xem phiên bản mới nhất.

Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta // @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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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!)

Tác giả
Asu_nyan
Phiên bản
1.1
Đã tạo
02-12-2018
Đã cập nhật
02-12-2018
Kích thước
4 KB
Giấy phép
N/A

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.