Jav-Flags

Localisation collection system imitation JAVLibrary

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://sleazyfork.org/scripts/429896-jav-flags/code/Jav-Flags.js?version=955109

Author
pana
Version
1.2.0
Created
2021-07-26
Updated
2021-07-28
License
GPL-3.0+

Jav Flags

Localisation collection system imitation JAVLibrary


Interface

Jav_Flags

constructor(flag: String, lang: String)

  • flag: Unique flag.
  • lang: Language.

init(initialization): void

Object initialization method.

initialization: {
  style: String,  // Extra style
  myaccount: String, // Account Path
  placeholder: HTMLElement, // Account button placeholder
  placeholderClassName: String, // Account button placeholder extra classname
  mobilePlaceholder: HTMLElement, // Account mobile button placeholder
  mobilePlaceholderClassName: String, // Account mobile button placeholder extra classname
  host: String, // Host
  printing: String, // Placeholder image
  script: { // Script info
    author: {
      name: String,
      homepage: String,
    },
    updated: String,
  },
  imageConverter: (src: String):String => {}, // Cover image address conversion
  directorHandler: ():void => {}, // Director info handler
  studioHandler: ():void => {}, // Studio info handler
  labelHandler: ():void => {}, // Label info handler
  seriesHandler: ():void => {}, // Series info handler
  starHandler: ():void => {}, // Star info handler
  movieStatusHandler: ():void => {}, // Movie status handler
  blockFavorites: Array<String>, // Block out unwanted favorites types
}

insert(selector: String)

The selector string for loading the page.

getMovieType(key: String): String

Get movie type.

Third party