MyAnimeList(MAL) - Popup for "Edit Details"

This script will show a popup when you click "Edit details" on any anime/manga page.

От 12.04.2017. Виж последната версия.

// ==UserScript==
// @name         MyAnimeList(MAL) - Popup for "Edit Details"
// @version      1.0.6
// @description  This script will show a popup when you click "Edit details" on any anime/manga page.
// @author       Cpt_mathix
// @include      /^https?:\/\/myanimelist\.net\/(anime|manga)\/\d+/
// @include      *://myanimelist.net/(anime|manga).php?id=*
// @exclude      /^https?:\/\/myanimelist\.net\/(anime|manga)\/[^0-9]+/
// @exclude      /^https?:\/\/myanimelist\.net\/(anime|manga)\/\d+\/.+\/.+/
// @license      GPL version 2 or any later version; http://www.gnu.org/licenses/gpl-2.0.txt
// @grant        none
// @namespace https://greasyfork.org/users/16080
// ==/UserScript==

var pageEdit = document.querySelector('#addtolist > table > tbody > tr:nth-child(4) > td:nth-child(2) > small > a');
if (pageEdit) {
    pageEdit.className = "Lightbox_Script button_add";
    pageEdit.href += "&hideLayout";
}

var pageAddDetails = document.querySelector('#addtolistresult > a');
if (pageAddDetails) {
    pageAddDetails.className = "Lightbox_Script button_add";
    pageAddDetails.href += "&hideLayout";
}

if (typeof jQuery == 'undefined') $ = unsafeWindow.$;

$('.Lightbox_Script').fancybox({
        'width'			: 700,
        'height'		: '85%',
        'overlayShow'	: false,
        'titleShow'     : false,
        'type'          : 'iframe'
});