您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add button to download torrent file.Remove Ads
当前为
- // ==UserScript==
- // @name BTOS
- // @namespace btos
- // @version 0.1
- // @description Add button to download torrent file.Remove Ads
- // @author hex
- // @match http*://btos.pw/magnet/detail/*
- // @grant none
- // ==/UserScript==
- (function() {
- addDownloadTorrent();
- removeAD();
- })();
- function addDownloadTorrent(){
- var pathname_split = window.location.pathname.split('/'),
- url_torrent = 'http://btcache.me/torrent/'+pathname_split[4],
- btn_torrent_download = '<a id="torrent" href='+url_torrent+' class="btn btn-primary" style="margin:20px;" title="Download .Torrent" target="_blank"><span class="glyphicon glyphicon-save"></span>Download .Torrent</a>';
- $(btn_torrent_download).prependTo(document.querySelector('div.text-center.hidden-xs'))
- }
- function removeAD(){
- document.querySelector('div.row.hidden-xs.text-center').remove()
- }