🏠 

Greasy Fork is available in English.

User Hash

KIckass Torrent User Hash

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/16543/107036/User%20Hash.js

// ==UserScript==
// @name        User Hash
// @namespace   Sality
// @description KIckass Torrent User Hash
// @include     *kat.cr/*
// @version     0.3
// @grant       none
// ==/UserScript==
$(window).load(function(){
var pathname = window.location.pathname;
try{
if (pathname.indexOf('\/user\/') != -1) {
var hash_link=$('div.botmarg10px a[href^="/bookmarks/add/user/"]').attr('href');
var hash=hash_link.substring(21,52);
$('.mainpart h1.nickname').after('<span style="color:#229977;margin-left:50px;font-weight:bold;float:right;">User Hash:'+hash+'</span>');
console.log("done");
}
}
catch(ex){
Console.log("Error IN User Hash App");
}
});