NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name WYSIWYG Enhancement // @namespace http://www.powdertoy.co.uk // @description Replaces default TPT WYSIWYG (TinyMCE) with a newer version of the TinyMCE editor // @match *://powdertoy.co.uk/Discussions/Thread/* // @match *://powdertoy.co.uk/Groups/Thread/* // @match *://powdertoy.co.uk/Conversations/* // @require http://cdn.tinymce.com/4/tinymce.min.js // @updateURL https://openuserjs.org/install/wolfy1339/WYSIWYG_Enhancement.user.js // @version 0.12 // ==/UserScript== if (location.pathname == "/Conversations/View.html"){ $(".contents").css({"width":"700px"}); $("input.btn-primary").css({"margin-top":"9px"}); $(".Pagination").css({"margin-top":"9px"}); } $(window).load(function() { tinyMCE.baseURL = "http://cdn.tinymce.com/4"; tinymce.init({ skin: "lightgray", selector: "textarea", plugins: [ "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | save" }); });