KissAnime Skip videos 90 seconds/skip intro

Press 'L' to skip the intro when it starts. Works with rapidvideo and beta servers.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name KissAnime Skip videos 90 seconds/skip intro
// @description Press 'L' to skip the intro when it starts. Works with rapidvideo and beta servers.
// @namespace http://tampermonkey.net/
// @include *kissanime.ru/Anime*
// @include *rapidvideo.com*
// @noframes
// @version 1.0.0
// ==/UserScript==

$(document).ready(function(){
  let here = document.URL
  if (here.indexOf('rapidvideo.com') > -1){
    // jwplayer already init'd, no need to pass an id/element
    jwplayer()
    window.addEventListener('keydown', function(e){
      if (e.key === 'l'){
        jwplayer().seek(jwplayer().getPosition()+90)
      }
    })
  }else{
    if (videojs) {
      // videojs needs an id/element, find it and pass it
      let v = document.getElementsByTagName('video')
      if (v.length > 0) {v = v[0]} else {return}
      videojs(v).ready(function(){
        let player = this
        window.addEventListener('keydown', function(e){
          if (e.key === 'l'){
            player.currentTime(parseInt(player.currentTime())+90)
          }
        })
      })
    }
  }
})