Download Blu-ray.com Front Covers

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

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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);