磁力云播Android代码,磁力云播

// ==UserScript==

// @name 磁力云播

// @version 1.5

// @description 找出页面的磁力链,添加云播接口

// @author 磁力云播

// @icon http://findicons.com/icon/download/199777/adobe_media_player/128/ico

// @include https://btdigg.org/search*

// @include http://btdigg.org/search*

// @include http://www.mp4ba.com/*

// @include http://*.jav*.*

// @include https://*.jav*.*

// @include http://www.torrentkitty.*/search*

// @include http://*.bt*.*

// @include https://*.bt*.*

// @include http://*.cili*.*

// @include https://*.cili*.*

// @require http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js

// @run-at document-end

// @namespace https://greasyfork.org/users/54472

// ==/UserScript==

function getAllMagnet(rawMagnets) {

var magnetNum = rawMagnets.length;

var rawString = "";

var rex = new RegExp("\\w{40}", 'g'); //regular expression to match all 40 bit code

if (magnetNum !== 0) { //prase all magnet herf nodes into string

for (var i = 0; i < magnetNum; i++) {

rawString += rawMagnets[i].toString();

}

}

return rawString.match(rex); //return the code list

}

function code2down1(str) {

var s1, s2, btih, torrentURL;

btih = str.toLocaleUpperCase();

s1 = btih.substr(0, 2);

s2 = btih.substr(str.length - 2);

torrentURL = "data:text/html,5-121204193R0-50.gif%5C%22";

return torrentURL;

}

function code2down2(str) {

var btih, torrentURL;

btih = str.toLocaleUpperCase();

torrentURL = "http://www.ttwanda.com/go.php?url=https://www.ttwanda.com/player/v.php?url=magnet:?xt=urn:btih:" + btih;

return torrentURL;

}

function code2down3(str) {

var btih, torrentURL;

btih = str.toLocaleUpperCase();

torrentURL = "http://www.997m.com/btago_player/player.php?td=3&u=magnet:?xt=urn:btih:" + btih;

return torrentURL;

}

function include(Things,obj) {

for (var i = Things.length - 1; i >= 0; i--) {

if ($(Things[i]).attr('href')===$(obj).attr('href')){

return true;

}

};

}

function setCss(){

$('head').append('');

}

function getAllTorrentsNew() {

var rawnodes = $('a[href^="magnet"]').get();

var nodes = [];

var codeList = [];

var listLen = 0;

for (var i = 0; i

if(!include(nodes,rawnodes[i])){

nodes.push(rawnodes[i]);

}

};

codeList = getAllMagnet(nodes);

listLen = codeList.length;

setCss();

if (listLen !== 0) { //prase all magnet herf nodes into string

for (var i = 0; i < listLen; i++) {

$(nodes[i]).after($(nodes[i]).clone().addClass('wxz-a color3').empty().attr("target","_blank").attr("title","download torrent from torrent.org" ).attr("href", code2down3(codeList[i])));

$(nodes[i]).after($(nodes[i]).clone().addClass('wxz-a color1').empty().attr("target","_blank").attr("title","download torrent from bt.box" ).attr("href", code2down1(codeList[i])));

$(nodes[i]).after($(nodes[i]).clone().addClass('wxz-a color2').empty().attr("target","_blank").attr("title","download torrent from torcache" ).attr("href", code2down2(codeList[i])));

}

}

$('.wxz-a').css('b','d');

}

function getAllTorrents() {

var nodes = $('a[href^="magnet"]');

var codeList = [];

var listLen = 0;

var i = 0;

codeList = getAllMagnet(nodes);

listLen = codeList.length;

if (listLen !== 0) { //prase all magnet herf nodes into string

for (i = 0; i < listLen; i++) {

$(nodes[i]).after($(nodes[i]).clone().empty().html("[BT_2]").attr("target","_blank").attr("title","download torrent from torcache" ).attr("href", code2down3(codeList[i])));

}

}

}

var i=0

var t=window.setInterval(function() { //wait 2 seconds to execute getAllTorrents() function

if($('a[href^="magnet"]').length>0||i>20){

window.clearInterval(t);

getAllTorrentsNew();

}else{

i++;

}

}, 500);

一、云播磁力搜索 简介 1、未来流行怎么看电影?当然是 磁力搜索 迅雷云播!本程序为磁力搜索小偷程序,一个超级简洁,但绝不简单的小偷程序! 2、使用本程序,仅需一个虚拟主机即可拥有一个有300万以上的磁力连接的网站!各种资源随便搜,没有搜不到,只有想不到! 3、本程序支持二级目录运行!可以用作整站运营,也可以作为网站的有益补充! 4、支持两种采集方式,适用于绝大部分服务器! 二、云播磁力搜索 安装 将本程序下载解压后上传至服务器后,修改 config.php 的配置文件即可!暂无后台管理。 首次使用或更改配置后,如存在 index.cache.html ,请删除。 本程序仅对首页进行缓存,由于总磁力链接数达300万以上,磁力详情页缓存可会占用大量磁盘空间V1.0版,暂不提供缓存。 三、目录说明 -|  |  | config.php  配置文件,使用前请先修改  |  | function.php 部分函数文件,无需修改文件  |  | index.php   首页文件  |  | search.php  搜索文件  |  | hash.php    磁力详情页文件  |  | statics     css,js,image 等静态文件    | css    | images    | js  |  | index.cache.html 运行后产生的首页缓存文件 PS:作者初次编写小偷程序,程序简陋,高手莫见笑! 磁力搜索小偷,各种小偷程序交流群:172226108 ,加群验证“云播搜”,使用交流,BUG反馈,升级建议请加群,谢谢!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值