您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add edit torrent button next to the torrent info.
- // ==UserScript==
- // @name Edit Torrent Button (not on sidebar)
- // @namespace pxgamer
- // @version 0.1
- // @description Add edit torrent button next to the torrent info.
- // @author pxgamer
- // @include *kat.cr/*-t*.html
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var uploader = $('#mainDetailsTable tbody tr td div.font11px.lightgrey.line160perc span.badgeInline span a').text();
- var userAccount = $('#navigation li a span.usernameProfile.menuItem').text();
- if (uploader == userAccount) {
- var editLink = $('[href^="/torrents/edit/"]').attr('href');
- $('div.buttonsline.downloadButtonGroup.novertpad').append('<a rel="nofollow" class="kaGiantButton siteButton iconButton" title="Edit Torrent" href="'+editLink+'"><i class="ka ka16 ka-edit"></i></a>');
- }
- })();