腾讯动漫-破解

腾讯动漫免费看,破解收费动漫。

As of 2016-10-02. See the latest version.

// ==UserScript==
// @name         腾讯动漫-破解
// @version      4.0.1
// @description  腾讯动漫免费看,破解收费动漫。
// @author      feilong
// @match        http://ac.qq.com/ComicView/index/id/*
// @match        http://m.ac.qq.com/chapter/index/id/*
// @grant        none
// @namespace https://greasyfork.org/users/28687
// ==/UserScript==
/* jshint -W097 */
'use strict';

// Your code here...
// 下脚本来自http://www.xker.com/page/e2015/07/212347.html
//
//document.write("<script src=\"https://code.csdn.net/snippets/1576913/master/PC_tencent_image_look.js/raw\"></script>");

//以上脚本失效
//以下脚本自己写的。。。
//服务器是daocloud免费货,凑活用吧。。
//虽然只用js也可以弄,但是数据是别人的,为了保护一下,弄了个php
var mid = location.pathname.match(/\d+/)[0];
var cid = location.pathname.match(/\d+$/)[0];

//base64
//抄自https://developer.mozilla.org/zh-CN/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
function b64EncodeUnicode(str) {
    return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
        return String.fromCharCode('0x' + p1);
    }));
}

console.log("mid="+mid+",cid="+cid);
//alert(DATA.picture.length);
//if (DATA.picture.length <= 1)
if(DATA.chapter.canRead !== true)
{
    console.log('need crack!');
    //top.location.href = "http://feilongf-tx.daoapp.io/?mid="+mid+"&cid="+cid;
    top.location.href = "http://txcomic.tk:32772/?mid="+mid+"&cid="+cid;
    //top.location.href = "http://172.99.77.88:32772/?mid="+mid+"&cid="+cid;
}
else
{
    console.log('comic load success!');
    var xml = new XMLHttpRequest();
    xml.open('POST', 'http://txcomic.tk:32772/save.php', true);
    //xml.open('POST', 'http://localhost/save.php', true);
    xml.setRequestHeader("Content-type","application/x-www-form-urlencoded");
    xml.send("data=" + b64EncodeUnicode(JSON.stringify(DATA)).replace(/\+/g,"%2B"));
}