Greasy Fork is available in English.

AO Next/Prev Epp

Add to anime-odcinki.pl's players buttons: Prev & Next

Stan na 05-06-2015. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        AO Next/Prev Epp
// author       Wiktor Radecki
// @namespace   AnimeOdcinki
// @include     http://anime-odcinki.pl/*
// @version     1
// @grant       none
// @description Add to anime-odcinki.pl's players buttons: Prev & Next
// ==/UserScript==
$(document).ready(function(){
var linki = $('#edit-jump').children();
var isNext = false;
var isPrev = true;
for(var i = 0; i < linki.length; i++)
{
 var e = linki[i];
 if(typeof(e.attributes['selected']) != 'undefined'){
  isNext = true;
  isPrev = false;
  continue;
}

if(isPrev === true && e.value !== "")
 var next = e;
if(isNext === true){
 var prev = e;
 break;
}
}

$div = $('#video-player-control');

if(typeof(prev) !== "undefined")
{
 var plink = prev.value.split("::")[1];
 jQuery('<div/>', {
    id: 'video-player-mode',
    linkid: '1000',
    title: 'Poprzedni odcinek',
    rel: 'external',
    text: '<<',
    style: 'background-color: #126533',
    onclick: 'location.href="'.concat(plink).concat('";')
  }).prependTo($div);
}

if(typeof(next) !== "undefined")
{
 var nlink = next.value.split("::")[1];
 jQuery('<div/>', {
    id: 'video-player-mode',
    linkid: '1001',
    title: 'Nastepny odcinek',
    rel: 'external',
    text: '>>',
    style: 'background-color: #126533',
    onclick: 'location.href="'.concat(nlink).concat('";')
  }).appendTo($div);
}
});