您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
No Wait Times For Portal Roms.
// ==UserScript== // @name Portal Roms Instant Downloader // @version 1 // @grant none // @description No Wait Times For Portal Roms. // @include http://www.portalroms.com/* // @namespace https://greasyfork.org/users/238445 // ==/UserScript== var DownloadLink = "http://www.portalroms.com/torrents/" var ConsoleNameClass = document.getElementsByClassName("field field-name-field-plataforma field-type-taxonomy-term-reference field-label-inline clearfix")[0].innerText; var ConsoleName = ConsoleNameClass.replace("System:", "").trim().toLowerCase().replace(/ /g,''); var GameNameClass = document.getElementsByClassName("field field-name-field-release field-type-text field-label-inline clearfix")[0].innerText; var GameName = GameNameClass.replace("Release:", "").trim(); DownloadLink = DownloadLink+ConsoleName+"/"+GameName+".torrent"; document.getElementsByClassName("field field-name-field-link-para-download field-type-link-field field-label-inline clearfix")[0].innerHTML = "<div class=\"field-label\">Download link: </div><div class=\"field-items\"><div class=\"field-item even\"><a href="+encodeURI(DownloadLink)+" title=\"DOWNLOAD!\">DOWNLOAD! (USA)</a></div></div>";