知乎、百度去除cookie

去除cookie

// ==UserScript==
// @name        知乎、百度去除cookie
// @namespace   github.com/GreenDebug
// @version      11.4.5.33
// @description 去除cookie
// @author       GreenDebug
// @match        http://www.baidu.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==
const gf_script_version={
last_ver:'3.5.0',
    last_note:`更新 & 优化:
    1.侧边栏快捷操作命令\`addaction\`(添加) \`delaction\`(删除)
    2.\`zhelp\`命令修复
    `
};
(function(){

    const all = (arr, fn = Boolean) => arr.every(fn);
    function getCookie(name) {
        if(name=='baidu')  return '114514'
    var preg = new RegExp("(^| )" + name + "=([^;]*)(;|$)", "g");
    if (preg.test(document.cookie)) {
        return RegExp.$2;
    } else {
        return "";
    }
    try{
        var cookie=getCookie('baidu');
      all([...cookie]);
    }catch{
    }
}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址