Greasy Fork is available in English.
不能为空字符
当前为
// ==UserScript==
// @name 新页面打开种子详情页面
// @description 不能为空字符
// @namespace http://tampermonkey.net/
// @version 0.1.2
// @author imgreasy
// @match https://ourbits.club/*
// @match https://hdchina.org/*
// @match https://www.v2ex.com/*
// @icon https://raw.githubusercontent.com/zjutjh/NexusPHP/master/favicon.ico
// @license MIT
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
switch(window.location.host) {
case "ourbits.club":
document.querySelector('#torrenttable').querySelectorAll('.sticky_top_more a').forEach(function (row) {
if (row.href.indexOf('download') == -1) {
if (row.href.slice(0,4) == 'http' || row.href.slice(0,5) == 'https') {
row.target = '_blank'
}
}
});
break;
case "hdchina.org":
document.querySelector('#form_torrent').querySelectorAll('.torrent_list .stickz_bg a').forEach(function (row) {
if (row.href.indexOf('download') == -1) {
if (row.href.slice(0,4) == 'http' || row.href.slice(0,5) == 'https') {
row.target = '_blank'
}
}
});
break;
default:
console.log("hi");
break;
}
})();