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