淘口令搜索自动解密

浏览器添加搜索引擎:关键字“淘口令”,网址格式“http://www.taofake.com/tools/tkljm/?key=%s”,即可在浏览器地址栏输入“淘口令”+空格+你的淘口令,回车直达解密地址

当前为 2019-10-30 提交的版本,查看 最新版本

// ==UserScript==
// @name         淘口令搜索自动解密
// @namespace    http://tampermonkey.net/
// @version      0.1.4
// @description  浏览器添加搜索引擎:关键字“淘口令”,网址格式“http://www.taofake.com/tools/tkljm/?key=%s”,即可在浏览器地址栏输入“淘口令”+空格+你的淘口令,回车直达解密地址
// @author       百度贴吧-销锋镝铸
// @include      http*taofake.com/tools/tkljm/*
// @grant        none
// ==/UserScript==

(function() {
    //去广告
    addGlobalStyle(".azone,.fdad{display:none !important;}");function addGlobalStyle(css){var head,style;head=document.getElementsByTagName("head")[0];if(!head){return}style=document.createElement("style");style.type="text/css";style.innerHTML=css;head.appendChild(style);};
    console.log("去广告完成");
    setTimeout(function(){
        var key = document.location.search.replace(/\?key=.*?%EF%BF%A5(.*?)%EF%BF%A5.*/,"¥$1¥");
        if(key.indexOf("¥")!=0){
        key = document.location.search.replace(/\?key=.*?%24(.*?)%24.*/,"¥$1¥");
        }
        if(key.length>0 && key.indexOf("¥")==0){
            $("#tkl").val(key);
            $("#search").click();
            var interbal = setInterval(function(){
                if($("#result").css("display")=="block"){
                    clearInterval(interbal);
                    document.location = $("input.url").val();
                }
            },500);
        }},1000);
})();