百度文库去复制限制

try to take over the world!

  1. // ==UserScript==
  2. // @name 百度文库去复制限制
  3. // @namespace https://github.com/hzmming
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author LoryHuang
  7. // @match https://wenku.baidu.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // 原文档节点
  15. var docElem = document.getElementsByClassName('bd doc-reader')[0];
  16. var copyElem = docElem.cloneNode(true);//true表示深度克隆
  17. copyElem.oncopy = ''; //还原copy功能
  18. // 替换原文档节点
  19. docElem.replaceWith(copyElem)
  20. })();

QingJ © 2025

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