Advertisement
Guest User

2ch_moder_post_ckeditor.user.js

a guest
Feb 14th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name            2ch-moder post ckEditor
  3. // @author          Fecaloid
  4. // @version         0.0.1
  5. // @include         https://2ch.hk/makaba/makaba.fcgi?task=moder&action=post_edit_show*
  6. // @grant           none
  7. // ==/UserScript==
  8.  
  9. var head = document.getElementsByTagName("head")[0];
  10. var script_to_load = document.createElement('script');
  11.  
  12. script_to_load.setAttribute('src', location.protocol + '//cdn.ckeditor.com/4.5.7/standard/ckeditor.js');
  13. script_to_load.onload = function () {
  14.     var postfield = document.querySelector('textarea[name="comment"]');
  15.     CKEDITOR.replace(postfield);
  16. };
  17. head.appendChild(script_to_load);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement