remove-b-tail

去掉B站专栏复制的小尾巴

  1. // ==UserScript==
  2. // @name remove-b-tail
  3. // @namespace https://github.com/xuqifzz/remove-b-tail
  4. // @version 0.1
  5. // @description 去掉B站专栏复制的小尾巴
  6. // @author You
  7. // @match https://www.bilibili.com/read/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
  9. // @grant none
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. HTMLDivElement.prototype.realAddEventListener = HTMLAnchorElement.prototype.addEventListener;
  17. HTMLDivElement.prototype.addEventListener = function(a,b,c){
  18. if(a =="copy") return;
  19. return this.realAddEventListener(a,b,c);
  20. };
  21. })();