BS_Library

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

Fra 02.12.2018. Se den seneste versjonen.

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://update.greatest.deepsurf.us/scripts/375096/650122/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!)

Forfatter
Asu_nyan
Versjon
1.1
Lagd
02.12.2018
Oppdatert
02.12.2018
Size
3,3 kB
Lisens
I/T

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

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.