您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
修正站酷文章编辑器内容和预览效果一致
// ==UserScript== // @name 站酷文章编辑器排版 // @namespace https://www.ifeiwu.com/ // @version 0.2 // @description 修正站酷文章编辑器内容和预览效果一致 // @author pagepan // @match https://my.zcool.com.cn/uploadArticle // @include /(^https:\/\/my\.zcool\.com\.cn\/editArticle\?id=\d*$)/ // @grant none // ==/UserScript== (function() { 'use strict'; let $body = $('#ueditor_0').contents().find('head'); $body.append(` <style> *, a, body, button, caption, dd, div, dl, dt, em, figure, form, h1, h2, h3, h4, h5, h6, html, i, img, input, label, li, ol, p, span, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, ul { margin: 0; padding: 0; } body { padding: 18px !important; } h1, h2, h3, h4, h5, h6 { font-weight: bold; } p { font-size: 16px; line-height: 32px; text-align: justify; text-justify: inter-ideograph; word-wrap: break-word; color: #666666; } </style>`); })();