VeryCD File Show Link

VeryCD 的文件页面直接显示下载地址而不是js按钮。

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           VeryCD File Show Link
// @namespace      http://qixinglu.com
// @description    VeryCD 的文件页面直接显示下载地址而不是js按钮。
// @include        http://www.verycd.com/files/*
// @version 0.0.1.20140517140356
// ==/UserScript==

var button_node = document.getElementById('downloadButton');
var link_node = document.createElement('a');
link_node.text = button_node.name;
link_node.href = button_node.name;
var button_parent_node = button_node.parentNode;
button_parent_node.removeChild(button_node);
button_parent_node.appendChild(link_node);