gitbookVIP

解锁gitbook的VIP功能

当前为 2023-05-01 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name gitbookVIP
  3. // @namespace gitbook.taozhiyu.gitee.io
  4. // @version 0.4
  5. // @description 解锁gitbook的VIP功能
  6. // @author 涛之雨
  7. // @match *://app.gitbook.com/*
  8. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js
  10. // @resource toastrCSS https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css
  11. // @icon https://app.gitbook.com/public/images/logos/rounded/256x256.png
  12. // @grant GM_addStyle
  13. // @grant GM_getResourceText
  14. // @license MIT
  15. // @run-at document-start
  16. // ==/UserScript==
  17.  
  18. /* jshint esversion: 6 */
  19. /*global toastr*/
  20. (function() {
  21. 'use strict';
  22. GM_addStyle(GM_getResourceText('toastrCSS'));
  23. [].constructor.prototype._reduce=[].constructor.prototype._reduce||[].constructor.prototype.reduce;
  24. [].constructor.prototype.reduce=function(){
  25. return(JSON.stringify(this).includes('github-sync')?this.map(a=>{
  26. for(const i in a)a[i]===false&&(a[i]=true);
  27. return a;
  28. }):this)._reduce(arguments[0],arguments[1]);
  29. };
  30. toastr.success('解锁成功','gitbook脚本加载成功!',{progressBar:true,timeOut:3000});
  31. })();

QingJ © 2025

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