Greasy Fork is available in English.
Get a list of DMCA'd torrents.
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/19538/659173/Get%20DMCA%27d%20Torrents.js
/*
* name Get DMCA'd Torrents
* namespace pxgamer
* version 0.2.1
* description Get a list of DMCA'd torrents.
* author pxgamer
* require https://code.jquery.com/jquery-1.12.3.min.js
*/
function getDMCAdTorrents(searchParam) {
'use strict';
let returnedData;
let all = {dmcaList:[], dmcaHashes:[], dmcaURLs:[]};
let dmcaURLs = [];
let dmcaHashes = [];
let searchString = /<i data-name="(.*)" data-hash="(.*)" data-Klink="(https:\/\/kat\.cr\/.*-t[0-9]+\.html)">/ig, matches, dmcaList = [];
$.ajax({
method: "GET",
url: "https://pxstat.us/misc/dmca/?q=" + encodeURIComponent(searchParam),
async: false,
success: function (data) {
returnedData = data;
console.log(returnedData);
while (matches = searchString.exec(returnedData)) {
dmcaList.push(matches[1]);
dmcaHashes.push(matches[2]);
dmcaURLs.push(matches[3]);
}
all.dmcaList = dmcaList;
all.dmcaHashes = dmcaHashes;
all.dmcaURLs = dmcaURLs;
},
returnData: "text"
});
return all;
}