Greasy Fork is available in English.

AniSkip

Library for AniSkip API

이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greasyfork.org/scripts/457460/1133908/AniSkip.js을(를) 사용하여 포함하는 라이브러리입니다.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
PIZIDAVI
버전
1.0
생성일
2023-01-01
갱신일
2023-01-01
크기
4.42KB
라이선스
해당 없음

AnimeWorld Skipper

Library for AniSkip API

Init

const aniskip = new AniSkip({
  userId: 'uuid',
  providerName: ''
});
  • userId: AniSkip user UUID | or can be generated from uuidgenerator
  • providerName: Website's name | Default to website's domain name

Get Skip-Times

Retrieves a skip time for the specified anime episode.

aniskip.getSkipTimes(malId, episodeNumber, episodeLength)
  .then(data => {
    console.log(data)
  })
  .catch(response => {
    console.error(response)
  })
  • malId: MAL ID
  • episodeNumber: Episode number of the anime
  • episodeLength: Length of the episode in seconds with max 3 digit after the decimal point

Response Example

{
  "found": true,
  "results": [
    {
      "interval": {
        "startTime": 1321.01,
        "endTime": 1401.16
      },
      "skipType": "ed",
      "skipId": "a6ab121c-ec19-43c8-ae00-xxxxxxxxxxxx",
      "episodeLength": 1417.16
    },
  ],
  "message": "Successfully found skip times",
  "statusCode": 200
}

In case of nothing found 404 is returned

Create Skip-Time

Creates a skip time for the specified anime episode.

aniskip.createSkipTime(malId, episodeNumber, data)
  .then(data => {
    console.log(data)
  })
  .catch(response => {
    console.error(response)
  })

Params:

  • malId: MAL id
  • episodeNumber: Episode number of the anime
  • data:
  {
    skipType: "$skipType",
    startTime $startTime,
    endTime: $endTime,
    episodeLength: $episodeLength
  }
  • $skipType: Type of skip time:
    • op: Opening
    • ed: Ending
    • mixed-op: Mixed Opening
    • mixed-ed: Mixed Ending
    • recap: Recap
  • $startTime: Start time of the skip in seconds with max 3 digit after the decimal point
  • $endTime: End time of the skip in seconds with max 3 digit after the decimal point
  • $episodeLength: Length of the episode in seconds with max 3 digit after the decimal point

Response Example

{
  "message": "Successfully created a skip time",
  "skipId": "64392afc-5f80-4137-8443-xxxxxxxxxxxx",
  "statusCode": 201
}

Vote

Vote on a skip time.

aniskip.vote(voteType, skipId)
  .then(data => {
    console.log(data)
  })
  .catch(response => {
    console.error(response)
  })
  • voteType: upvote | downvote
  • skipId: UUID of the Skip Time

Response Example

{
  "message": "Successfully vote the skip time",
  "statusCode": 201
}

Errors

  • 400: Parameter Error
  • 404: Not found
  • 429: Rate Limited
  • 500: Internal Server Error