Better editor on HOT.dk

Improves the HOT.dk editor

目前为 2014-08-27 提交的版本。查看 最新版本

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