Download Blu-ray.com Front Covers

Adds a link below the small movie cover for the full size image

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Download Blu-ray.com Front Covers
// @namespace https://openuserjs.org/users/Morath86
// @description Adds a link below the small movie cover for the full size image
// @version 1.0
// @date 2014-05-13
// @author Morath86
// @include http://www.blu-ray.com/movies/*
// @history 1.0 Initial Release
// ==/UserScript==

// Gets the current movie ID from the URL
var movieID = document.URL.split('/')[5];

// Create a new Link element [downloadLink] and then get the element ID for the Front Cover
var downloadLink = document.createElement("a");
var frontLink = document.getElementById("largefrontimage_overlay");

// Set the new [downloadLink] ID, Style, HREF & Target attributes
downloadLink.setAttribute("id", "fullsize");
downloadLink.setAttribute("style", "padding-right: 5px");
downloadLink.href = "http://images2.static-bluray.com/movies/covers/" + movieID + "_front.jpg";
downloadLink.target = "_blank";

// Populate the [downloadLink] and insert it before the Front Cover link.
downloadLink.innerHTML = "Download";
frontLink.parentNode.insertBefore(downloadLink, frontLink);