gitbookVIP

解锁gitbook的VIP功能

目前为 2023-05-01 提交的版本。查看 最新版本

// ==UserScript==
// @name         gitbookVIP
// @namespace    gitbook.taozhiyu.gitee.io
// @version      0.3
// @description  解锁gitbook的VIP功能
// @author       涛之雨
// @match        *://app.gitbook.com/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js
// @resource     toastrCSS https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css
// @icon         https://app.gitbook.com/public/images/logos/rounded/256x256.png
// @grant        GM_addStyle
// @grant        GM_getResourceText
// @license      MIT
// ==/UserScript==

/* jshint esversion: 6 */
/*global toastr*/
(function() {
    'use strict';
    GM_addStyle(GM_getResourceText('toastrCSS'));
    [].constructor.prototype._reduce=[].constructor.prototype._reduce||[].constructor.prototype.reduce;
    [].constructor.prototype.reduce=()=>(JSON.stringify(this).includes('github-sync')?this.map(a=>{
        for(const i in a)a[i]===false&&(a[i]=true);
        return a;
    }):this)._reduce(arguments[0],arguments[1]);
    toastr.success('解锁成功','gitbook脚本加载成功!',{progressBar:true,timeOut:3000});
})();

QingJ © 2025

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