Better editor on HOT.dk

Improves the HOT.dk editor

当前为 2017-06-05 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Better editor on HOT.dk
  3. // @description Improves the HOT.dk editor
  4. // @author Sebastian Paaske Tørholm
  5. // @include https://www.hot.dk/Message*
  6. // @include https://www.hot.dk/Profile*
  7. // @version 1.1
  8. // @namespace https://greasyfork.org/users/4769
  9. // ==/UserScript==
  10.  
  11. setTimeout(function() {
  12. var s = document.createElement("script");
  13. s.innerHTML = "CKEDITOR.instances.text.destroy(); CKEDITOR.replace( 'text', { toolbar : [\
  14. ['Source'],\
  15. ['Cut','Copy','Paste','PasteText'],\
  16. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],\
  17. '/',\
  18. ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],\
  19. ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],\
  20. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],\
  21. ['Link'],\
  22. ['Image','Flash','Table','HorizontalRule','SpecialChar'],\
  23. '/',\
  24. ['Styles','Format','Font','FontSize'],\
  25. ['TextColor','BGColor'],\
  26. ['Maximize', 'ShowBlocks']\
  27. ] } )";
  28. document.body.appendChild(s);
  29. }, 1000);