VeryCD File Show Link

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

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

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

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           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);