From 727ce9c74ad8f4c207856fc2031992b8aed05235 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 14 Jul 2016 10:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0iOS=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=BC=B9=E6=80=A7;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ js/bg.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b4022c6..4676e0e 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,16 @@ chrome 小插件,优化在微信公众账号中发文章,因复制粘贴带 ![界面预览](https://raw.githubusercontent.com/jaywcjlove/wxmp/master/wxmq.png) +## 已经实现功能 + +- [x] 过滤 `font-family` +- [x] 代码高亮区域有背景颜色 +- [x] 代码高亮区域有横向滚动条强制不换行 +- [x] 增加iOS滚动滚动弹性 +- [] 添加设置标题功能 +- [] 添加字段高亮功能 + + # 插件安装 1. 下载文件压缩包解压 diff --git a/js/bg.js b/js/bg.js index 72fecd3..53fce5f 100644 --- a/js/bg.js +++ b/js/bg.js @@ -9,7 +9,7 @@ chrome.extension.onRequest.addListener( for (var i = 0; i < elms.length; i++) { var styl = elms[i].getAttribute('style'); if(elms[i].tagName === 'PRE'){ - elms[i].setAttribute('style','box-sizing: border-box; overflow: auto;font-size: 0.93em; padding: 1em; margin-top: 1.5em; margin-bottom: 1.5em; line-height: 1.3; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); border: none; border-radius: 3px; max-height: 35em; position: relative;background-color:#EDEDED;word-wrap: initial!important;') + elms[i].setAttribute('style','box-sizing: border-box; overflow: auto;font-size: 0.93em; padding: 1em; margin-top: 1.5em; margin-bottom: 1.5em; line-height: 1.3; word-break: break-all; word-wrap: break-word; color: rgb(51, 51, 51); border: none; border-radius: 3px; max-height: 35em; position: relative;background-color:#EDEDED;word-wrap: initial!important;-webkit-overflow-scrolling: touch;') }else if(elms[i].tagName === 'CODE'){ elms[i].setAttribute('style','box-sizing: border-box;font-size: 1em; color: inherit; border-radius: 0px; white-space: inherit; overflow-wrap: normal; background: none;word-wrap:normal!important;') }else{