Tieba No Draft

去除贴吧自动保存草稿功能

  1. // ==UserScript==
  2. // @name Tieba No Draft
  3. // @description 去除贴吧自动保存草稿功能
  4. // @author feng_zilong@163.com
  5. // @include http://tieba.baidu.com/*
  6. // @version 1
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/1438
  9. // ==/UserScript==
  10. var originFireEvent = UE.EventBase.prototype.fireEvent;
  11. UE.EventBase.prototype.fireEvent = function(){
  12. if(arguments[0] === 'contentchange'){
  13. return;
  14. }
  15.  
  16. originFireEvent.apply(this, arguments);
  17. }