mapaler / ehtagtranslator Goto Github PK
View Code? Open in Web Editor NEW将e绅士页面TAG换成中文,最全数据库。
License: GNU General Public License v3.0
将e绅士页面TAG换成中文,最全数据库。
License: GNU General Public License v3.0
我遇到的问题
本来不想发这个issues的(感觉仅靠css,这个问题无法解决),但是看到了#7,还是决定发上来,也许就解决了呢。
边看图片,边阐述。
图片里的本子地址是Collection of Person and Model Ships (Kantai Collection) - E-Hentai Galleries【Non-H,可放心打开】
当#taglist里的滚动条不动,备注就显示在标签旁
当#taglist里的滚动条滚动一些(应该是显示在了当滚动为0时位置的旁边)
当#taglist里的滚动条滚动再多一些(...)
E站为了防盗链 封面在其他站点无法加载 仅E站下加载正常
此类图片是否可以有H图?
开启这个脚本后,无法使用熊猫书签的“列表模式”功能,希望能够改进一下
熊猫书签地址:https://loligit.github.io/panda/
增加一个外部链接字段,使用 Markdown 语法保存一个或多个可选的 url
对于原作和角色,可以连接到对应的维基或萌百词条;
对于团队,可以连接到社团主页和公司页面;
对于艺术家,可以连接到对应的 P 站页面或微博;
对于恋物标签,可以连接到 EHWiki。
对于脚本而言,可以在“ Show Tag Definition”旁边添加一个“打开外部链接按钮”或直接替换此链接。
现有数据可以添加一个空字段。
rows
添加到数据库页面的链接猛击获取翻译库之后就卡在了"获取wiki版本信息"和"获取列表页面"了
一直没反应
希望在 “ehTag构建者” 中将连接地址解析为图片
一些可以被github加载的h图 直接采用连接的形式 防止被直接展示
图片:![图片](地址)
连接:[图片](地址)
顺便 是不是应该限制下图片的数量 像蓝白胖次里面的图真是太多了
两个项目都是一样
使用过程中发现一些明显错误的翻译,
nun翻译成修女服 应该改成:修女
shemale翻译成女雄(这个真是让人哭笑不得) 应该改成:人妖
masked face翻译成假面,这个我觉得不行,毕竟戴口罩的时候也要用这个tag 还是老老实实的翻译成"蒙面"吧
femdom翻译成女性支配,会让萌新以为是支配女性的意思, 建议改成"女性主导"
希望改正一下,谢谢
RT
https://sleazyfork.org/en/scripts/33136-ehtagsyringe
这个页面导向的是EhTagTranslator而不是EhTagSyringe的文档,就导致需要看三个文档才能理解怎么用,让人摸不着头脑
比如 eris (爱丽丝/玩伴猫耳娘)(厄里斯/为美好的世界献上祝福!)
今天看见一个和榛名的英文名字重名了 叫春奈 是《这个是僵尸吗?》的角色
目前的表示方式有
a[href='ETB_wiki-version']
@ rows.md
(将在 version 5 弃用)a[href='wiki-version-number']
@ wiki-version.md
(将在 version 5 弃用)a[title='wiki-version']
@ wiki-version.md
(将在 version 5 弃用)a[title='database-structure-version']
@ version.md
之前的讨论 #23
后续相关讨论请在此进行
奇怪,说明图片中的位置那个位置是空的。没地更新,去e网站也都是英文。
Chrome + Tampermonkey 使用,我先试了注射器,后又试了构建者,都不行;T插件图标显示2个脚本都启用的。
.....甚至去flag里开实验性了,最后也没出现。
我研究了很久的stylish官网userstyles的调用安装方式,都没搞懂到底是怎么搞的,太复杂了。
@xioxin 你搞不搞得懂?如果能调用Stylish自身的安装接口,一键更新CSS,就可以减少去E站找Stylish样式再右键编辑再保存那么多步骤了。
https://userstyles.org/styles/137583/pixivuserbatchdownload-ui
firefox 61.0.2 x64
暴力猴 2.9.5
脚本版本
1.1.12
控制台报错
Content Security Policy: 页面设置阻止读取位于 self 的一项资源("script-src")。 Source: !function e(a){var b=document.querySelec....
已拦截跨源请求:同源策略禁止读取位于 https://api.github.com/_private/browser/stats 的远程资源。(原因:CORS 请求未能成功)。
刚才试了 Deploy keys ,可以让其他用户直接Git编辑Wiki,但是缺点就是也同时可以编辑主程序了。 @OpportunityLiu
需要的话留邮箱。
Hello @Mapaler,
因為我個人的需要, 所以 build 了一個 service 是使用了這邊翻譯的部分, 如果覺得不妥的話, 我會把 source 的部分 private 起來, service 也會關掉, 感恩.
标签构筑者可以正常使用 油猴版本也是最新的了……emmm……大佬有解决方法吗?
更新一下,兼容脚本自带的样式
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("exhentai.org"),domain("e-hentai.org"){
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(https://gapis.geekzu.org/g-fonts/s/materialicons/v31/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2')
}
body{background: #eee !important;padding: 0 !important;}
div,a,p{color: #000 !important;}
p#nb{background: #00838F !important;height: 32px !important;margin: 0 !important;max-width: 100% !important;}
p#nb a{color: #fff !important;margin: 0 10px !important;font-size: 16px !important;font-weight: 400 !important;}
p#nb a::before{content: "" !important;font-family: "Material Icons" !important;font-size: 20px !important;position: relative !important;top: 4px !important;}
p#nb a:nth-of-type(1)::before{content: "\e88a\20" !important;}
p#nb a:nth-of-type(2)::before{content: "\e2c4\20" !important;}
p#nb a:nth-of-type(3)::before{content: "\e885\20" !important;}
p#nb a:nth-of-type(4)::before{content: "\e8b8\20" !important;}
p#nb a[href*="home"]:nth-of-type(4)::before{content: "\e851\20" !important;}
p#nb a:nth-of-type(5)::before{content: "\e413\20" !important;}
p#nb a:nth-of-type(6)::before{content: "\e242\20" !important;}
p#nb a:nth-of-type(7)::before{content: "\e227\20" !important;}
p#nb a:nth-of-type(8)::before{content: "\e24c\20" !important;}
p#nb a:nth-of-type(9)::before{content: "\e7fb\20" !important;}
p#nb a:nth-of-type(10)::before{content: "\e80c\20" !important;}
p#nb a:nth-of-type(11)::before{content: "\e1bd\20" !important;}
p#nb img{display: none !important;}
div.ido{background: none !important;border: 0 !important;margin: 0 auto !important;padding: 0px !important;width: 100% !important;max-width: 100% !important;}
h1.ih{display: none !important;}
.itc tr{display: inline-table !important;border-collapse: collapse ;margin-top: 10px !important;}
div#toppane{background: #00BCD4 !important;border: 0 !important;box-shadow: 0 2px 4px #aaa !important;width: auto !important;padding: 10px 0 20px !important;}
h1.ih{opacity: 0 !important;}
div.idi{border: 0 !important;margin: 0 !important;padding: 0 !important;width: 100% !important;}
.itc td::after,td.itdc>a::after,#gdc>a::after,.cs3>label::after{content: "" !important;position: absolute !important;z-index: 1 !important;display: block !important;background: none !important;border: 0 !important;border-radius: 3px !important;box-shadow: 2px 2px 5px #00bcd4 !important;color: #000 !important;font-size: 16px !important;font-weight: 400 !important;height: 26px !important;width: 100px !important;line-height: 26px !important;margin-top: -26px !important;}
.itc td:nth-child(1)::after,td.itdc>a[href*="doujinshi"]::after,#gdc>a[href*="doujinshi"]::after,.cs3>label[for*="doujinshi"]::after{content: "同人志" !important;background: #f40 !important;}
.itc td:nth-child(2)::after,td.itdc>a[href*="manga"]::after,#gdc>a[href*="manga"]::after,.cs3>label[for*="manga"]::after {content: "漫画" !important;background: #fa4 !important;}
.itc td:nth-child(3)::after,td.itdc>a[href*="artistcg"]::after,#gdc>a[href*="artistcg"]::after,.cs3>label[for*="artistcg"]::after {content: "同人CG" !important;background: #fe4 !important;}
.itc td:nth-child(4)::after,td.itdc>a[href*="gamecg"]::after,#gdc>a[href*="gamecg"]::after,.cs3>label[for*="gamecg"]::after {content: "游戏CG" !important;background: #9e4 !important;}
.itc td:nth-child(5)::after,td.itdc>a[href*="western"]::after,#gdc>a[href*="western"]::after,.cs3>label[for*="western"]::after {content: "欧美" !important;background: #4eb !important;}
.itc tr+tr td:nth-child(1)::after,td.itdc>a[href*="non-h"]::after,#gdc>a[href*="non-h"]::after,.cs3>label[for*="non-h"]::after {content: "全年龄" !important;background: #4cf !important;}
.itc tr+tr td:nth-child(2)::after,td.itdc>a[href*="imageset"]::after,#gdc>a[href*="imageset"]::after,.cs3>label[for*="imageset"]::after {content: "图集" !important;background: #c8f !important;}
.itc tr+tr td:nth-child(3)::after,td.itdc>a[href*="cosplay"]::after,#gdc>a[href*="cosplay"]::after,.cs3>label[for*="cosplay"]::after {content: "角色扮演" !important;background: #d4f !important;}
.itc tr+tr td:nth-child(4)::after,td.itdc>a[href*="asianporn"]::after,#gdc>a[href*="asianporn"]::after,.cs3>label[for*="asianporn"]::after {content: "亚洲真人" !important;background: #f48 !important;}
.itc tr+tr td:nth-child(5)::after,td.itdc>a[href*="misc"]::after,#gdc>a[href*="misc"]::after,.cs3>label[for*="misc"]::after {content: "其他" !important;background: #fbb !important;}
.ic{height: 26px !important;width: 100px !important;left: 0 !important;position: relative !important;z-index: 2 !important;}
.ic[src*="_d"]{background: rgba(0,0,0,.3) !important;border-radius: 3px !important;box-shadow: 0 0 0 8px #00BCD4 !important;}
.idi *{color: #000 !important;font-size: 14px !important;font-weight: 400 !important;margin-left: auto !important;}
.nopm input,select.stdinput{height: 28px !important;margin: 15px 5px 0 !important;}
.stdinput{background: #eee !important;border-color: #ccc !important;box-sizing: border-box !important;padding: 0 6px !important;}
option{background: #f7f7f7 !important;}
.stdbtn{background: #4cf !important;border: none !important;border-radius: 3px!important;padding: 0 15px !important;}
.itss{width: 50% !important;}
.itss td{width: 33% !important;}
.itsf{width: auto !important;}
p.ip{color: #333 !important;font-size: 14px !important;display: flex !important;position: absolute !important;padding: 10px 0 0!important;}
table.ptt td,table.ptb td{background: none !important;border: 0 !important;border-radius: 3px !important;color: #235 !important;font-size: 16px !important;display: inline !important;padding: 5px 16px !important;}
table.ptt td a,table.ptb td a{color: #888 !important;}
table.ptt td.ptds a,table.ptb td.ptds a,table.ptt td:first-child,table.ptb td:first-child,table.ptt td:last-child a,table.ptb td:last-child a{color: #333 !important;}
table.ptt td:first-child,table.ptt td:last-child,table.ptb td:first-child,table.ptb td:last-child{background: #4cf !important;box-shadow: 0 2px 6px #ccc !important;margin: 0 10px !important;padding: 5px 10px !important;}
table.ptb{margin-top: 20px !important;}
div.ido>div[style] {margin: 10px auto 20px!important;max-width: 1260px !important;}
#dmo {color: #333 !important;font-size: 14px !important;top: 0px !important;height: 10px !important;width: auto !important;}
#dmi{position: relative !important;}
/*div*/.itg{border: 0 !important;margin-top: 17px !important;max-width: 100% !important;width: 100% !important;}
div.id1{background: #f7f7f7!important;border: 1px solid #ccc !important;border-radius: 3px!important;box-shadow: 0px 2px 3px #888 !important;margin: 5px !important;padding: 5px !important;}
div.id1:hover{box-shadow: 0px 6px 10px #00000055 !important;transform: translate(0, -5px) !important;transition: all 0.2s ease !important;}
div.id1 *{color: #111!important;font-size: 12px !important;font-weight: 400 !important;line-height: 18px !important;}
div.id2{height: 36px !important;}
div.id42{top: 4px !important;}
table.itg{border-radius: 3px !important;box-shadow: 0px 2px 3px #888 !important;}
table.itg tr{color: #333 !important;}
table.itg th{background: #f7f7f7 !important;color: #333 !important;}
tr.gtr0 {background: #f7f7f7 !important;}
tr.gtr1 {background: #eee !important;}
table.itg td{border: 0 !important;border-color: #aaa !important;font-size: 14px !important;padding-top: 2px !important;padding-bottom: 2px !important;}
div.it2{background: #eee !important;border: 0 !important;border-radius: 3px !important;box-shadow: 0px 3px 10px #00000099 !important;padding: 5px !important;}
div.it5{height: auto !important;}
td.itdc>a::before{text-align: center !important;height: 24px !important;line-height: 24px !important;width: 80px !important;margin-left: 10px !important;}
td.itu {border: none !important;}
}
@-moz-document url-prefix("https://exhentai.org/g/"),url-prefix("https://e-hentai.org/g/"){
#gdc>a::after {left: -25px !important;}
div.gm,div#gdt{background: #f7f7f7 !important;border: 0 !important;box-shadow: 0 2px 4px #aaa !important;border-radius: 3px !important;margin-top: 20px !important;padding: 10px !important;}
div.gm:not([id]){margin-top: 30px !important;}
div.gm *{color: #333 !important;font-weight: 400 !important;}
div#gd2,div#gright,div#gmid{background: none !important;}
h1#gj{border: 0 !important;}
div#gd4{border-color: #ccc !important;}
div#taglist div{background: #eee !important;box-shadow: 1px 1px 2px #aaa !important;border-radius: 5px !important;}
#taglist a::after{border-color: #888 !important;box-shadow: 1px 1px 2px #aaa !important;border-top-left-radius: 0 !important;color: #000 !important;left: 0 !important;transform: translate(-1px,21px) !important;}
#taglist a::before{border-color: transparent !important;border: 1px solid transparent !important;margin: -4px -5px ;padding: 3px 4px ;}
#taglist a:focus::before, #taglist a:hover::before{border-color: #888 !important;border-bottom-color: #eee !important;}
#taglist .gtl a:after{border-style: dashed !important;}
#taglist .gtl a:focus::before, #taglist .gtl a:hover::before{border-style: dashed !important;}
.nopm{display: flex !important;}
input#newtagfield {width: 100% !important; }
div#gd1 div{border-color: #ccc !important;box-shadow: 2px 2px 5px #aaa !important;}
.nopm input{margin: 0 !important;}
p.gpc{color: #333 !important;font-size: 14px !important;padding-bottom: 10px !important;}
.nosel{border-color: rgba(100,100,100,.3) !important;color: #333 !important;font-weight: 400 !important;}
div.ths{background: #4cf !important;}
div.tha:hover{background: #4cf !important;}
div#gdt img{border-color: #ccc !important;box-shadow: 0px 2px 5px #aaa !important;}
div.c1{border-bottom: 1px #ccc solid !important;}
div.c1 *{font-size: 14px !important;line-height: 22px !important;}
div.c2{background: none !important;border: 0 !important;}
div.c2 *{color: #468 !important;}
div.c6 a{color: #48c !important;text-decoration:underline !important;}
}
@-moz-document url-prefix("https://exhentai.org/s/"),url-prefix("https://e-hentai.org/s/"){
div.sni{background: #f7f7f7 !important;border: 0 !important;box-shadow: 0 2px 4px #aaa !important;border-radius: 3px !important;}
div.sni *{color: #333 !important;font-weight: 400 !important;}
div.sni h1{padding-top: 10px !important;}
div.sn a{padding: 0 5px !important;}
div.sn a::before{content: "" !important;font-family: "Material Icons" !important;font-size: 40px !important;display: inline-block ;position: absolute !important;margin-top: -8px !important;height: 0 !important;}
div.sn a:nth-of-type(1)::before{content: "\e045" !important;background: #00f !important;}
div.sn a:nth-of-type(2)::before{content: "\e020" !important;}
div.sn a:nth-of-type(3)::before{content: "\e01f" !important;}
div.sn a:nth-of-type(4)::before{content: "\e044" !important;}
div.sn a img{opacity: 0 !important;}
}
@-moz-document url("https://exhentai.org/torrents.php"),url("https://e-hentai.org/torrents.php"){
#torrentform *{color: #333 !important;font-size: 14px !important;font-weight: 400 !important;}
#torrentform{display: flex !important;justify-content: center !important;margin-bottom: 40px !important;}
.stdinput,.stdbtn{height: 28px !important;margin: 15px 5px 0 !important;}
#torrentform p{position: absolute !important;top: 100px !important;}
table.itg td{padding: 6px !important;}
table.itg td:first-child{padding-left: 10px !important;}
}
@-moz-document regexp("https:\/\/e.hentai\.org\/.*\.php.*"){
p#lb{background: #00BCD4 !important;box-shadow: 0 2px 4px #aaa !important;color: transparent !important;font-size: 14px !important;margin: 0 !important;padding: 0 !important;}
p#lb a{color: #fff !important;display: inline-block !important;height: 40px !important;line-height: 40px !important;border-bottom: 2px solid transparent !important;box-sizing: border-box !important;}
p#lb a[style]{border-bottom: 2px solid #fff !important;font-weight: 700 !important;}
.stuffbox{background: #f7f7f7 !important;border: 0 !important;box-shadow: 0 2px 4px #aaa!important;border-radius: 3px!important;padding:10px!important;margin-top: 20px !important;width: 1200px !important;}
.stuffbox *{color: #333 !important;font-size: 14px !important;line-height: 24px !important;}
div#namsel {width: auto !important;}
div#namsel div{width: 90px !important;}
td.xla{padding: 0 !important;}
.cs3>label::after{text-align: center !important;margin-left: 10px !important;}
.cs3>label>img{opacity: 0 !important;}
td.itu {border: none !important;}
}
@-moz-document url("https://e-hentai.org/news.php"){
#newsouter{border: 0 !important;}
.baredge,#botm,.bartop{display: none !important;}
#newsinner{padding: 0 !important;}
#nt{color: #333 !important;}
}
@-moz-document url-prefix("https://e-hentai.org/bounty.php"){
table.itg{box-shadow: none !important;}
table.itg th:nth-child(1){width: 120px !important;}
table.itg th:nth-child(5){width: 200px !important;}
.d3,.d4,.d5{height: auto !important;}
}
两个都不行...
我通过字体的方式解决了行名翻译问题
效果如下
方法是使用字体的视觉连字的特性 将英文字母替换为中文
代码:(拷贝到通用样式即可)
@font-face {
font-family: 'extranslate';
src: url(data:font/truetype;charset=utf-8;base64,d09GRgABAAAAAA89AA8AAAAAE7gAAQAAAAAAAAAAAAAAAAAAAAAPKAAAABVEU0lHAAAOFAAAAAgAAAAIAAAAAUdERUYAAA4cAAAAFwAAABgAPgADR1BPUwAADjQAAAAgAAAAIER2THVHU1VCAAAOVAAAANMAAAE8tw66109TLzIAAAHEAAAATAAAAGBFwUDQY21hcAAAAogAAACIAAAB/AJaBDNnYXNwAAAOAAAAABQAAAAUAFMAMWdseWYAAANAAAAJ2QAAC9AmqSWiaGVhZAAAAVgAAAAzAAAANg4B/o5oaGVhAAABjAAAACAAA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uGsNn71IdTZ5qltVM2WzeYdl2b1jar2oQunIOLJvnoXe/Z4TlyIeJI4isHUcdAYMNeJtGLT3KGhiVW9Z83bPV60GxZU4/T6nY1clA2cFY77TPjvqh2+sn/AnNQMdoAeNpjYGYAg//qDNMYsAAAKDQBwAAAAQAEAAcACgARAAUAOwAP//8ADwAAAAEAAAAAeNpjYGRgYOBjgAEmBhBfj4ERAAHdAEIAAAEAAAAKABwAHgABREZMVAAIAAQAAAAA//8AAAAAAAB42k2OT07CYBDFf9UKtXwJBdLWBSn/BBSraw5AXLFg4ZrEldG49hScgQN4ANacgVN4i/q+qSEuZubNm3lvhgCIKSgJVs/rFyJCMVQVfhJ8vr+9iqPuNAutRoofnHRLNmz54Isde745cOTEBQ26TLlSzbWdMuJSObdJwq18WoqUB/FtIe9dKCJN625miq7hsXB2Vt/ZHx39PRATGesYqoY8KjvT+ItN+oYnwv6ax4t/mierpXL2531v3rE25mJ6Ujj1Da7FOX2a6KOenDJufgFJpBJIAEhMUEQBAEZDCQAAAFCowklXAAAAAA==) format('truetype');
font-weight: normal;
font-style: normal
}
.tc{
font-family:"extranslate" !important;
font-size:16px;
font-style:normal;
font-feature-settings: "liga" 1;
font-style: normal;
text-transform: none;
font-size: 12px;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0px;
-moz-osx-font-smoothing: grayscale;
}
仅测试了chrome 火狐未测试
生成CSS能不能不加入图片
https://github.com/TIS-OMiddle/EHtranslate
用于android端,主要练手+开发出来随便用用的..........
这几天Star的人突然多了4个,虽然绝对数量不多,但是环比上升非常明显,于是谷歌了下,找到了访客的来源。
https://bbs.white-plus.net/simple/index.php?t327877.html
里 | 表 |
---|---|
![]() |
![]() |
div#taglist {
overflow: visible;
min-height: 295px;
height: auto;
}
div#gmid {
min-height: 330px;
height:auto;
position: static;
}
#taglist a{
background:inherit;
}
#taglist a::before{
font-size:12px;
overflow: hidden;
line-height: 20px;
height: 20px;
}
#taglist a::after{
display: block;
color:#FF8E8E;
font-size:14px;
background: inherit;
border: 1px solid #000;
border-radius:5px;
position:absolute;
float: left;
z-index:999;
padding:8px;
box-shadow: 3px 3px 10px #000;
min-width:150px;
max-width:500px;
white-space:pre-wrap;
opacity: 0;
transition: opacity 0.2s;
transform: translate(-50%,20px);
top:0;
left: 50%;
pointer-events:none;
padding-top: 8px;
font-weight: 400;
line-height: 20px;
}
#taglist a:hover::after,#taglist a:focus::after{
opacity: 1;
pointer-events:auto;
}
#taglist a:focus::before,
#taglist a:hover::before {
font-size: 12px;
position: relative;
background-color: inherit;
border: 1px solid #000;
border-width: 1px 1px 0 1px;
margin: -4px -5px;
padding: 3px 4px;
color:inherit;
border-radius: 5px 5px 0 0;
}
div.gt,
div.gtw,
div.gtl{
line-height: 20px;
height: 20px;
}
#taglist a:hover::after{ z-index: 9999998; }
#taglist a:focus::after { z-index: 9999996; }
#taglist a:hover::before{ z-index: 9999999; }
#taglist a:focus::before { z-index: 9999997; }
#taglist a::after{ color:#000; }
#taglist a::after{ color:#fff; }
Firefox 55.0.3×64
Tampermonkey® v4.8.5847
E绅士翻译注射器💉 1.2.3
和E-Hentai Downloader脚本一起运行,Downloader下载脚本将没法显示若下载当前本子将消耗多少GP信息。不太不方便,不知能不能好。
原文本就是这个:“ | Estimated Limits Cost: *"
又及,下载窗也弹不出了。
根据这个https://violentmonkey.github.io/2018/11/23/inject-into-context/, 好像新版本的支持CSP了。然而我无论是在脚本里加了// @inject-into auto
或者直接改violentmonkey的设置都没有用,console还是会报以下信息
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). new:1:1
[Violentmonkey][content][EhTagSyringe]
TypeError: GM_info.script.name_i18n is undefined
GM_info.script.name_i18n is undefined
Line 502, column 9:
pluginName = GM_info.script.localizedName || GM_info.script.name_i18n[lang] || GM_info.script.name;
^ injected-web.js:1:16020
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
不知有没有办法适配
由于I"s
,导致整个样式出错,作者能转义一下吗
还有font-size:0px;
希望能写成font-size:0;
用的html5原生提示组件
chrome 支持中英文搜索 但是如果搜到的结果很多会比较卡
https://user-images.githubusercontent.com/5716100/30069114-65786c42-9225-11e7-8632-8b4eb53e04e0.png
firefox 只支持中文搜索 确定后英文进入搜素框
https://user-images.githubusercontent.com/5716100/30069288-f4dff2f6-9225-11e7-9786-488ba499e4af.png
你们可以体验一下
链接控制功能
开启注射器 #/ets-set-config?syringe=true
禁用注射器 #/ets-set-config?syringe=false
打开菜单 #/ets-open-menu
打开配置菜单 #/ets-open-option
重置设置 有提示 #/ets-reset-config
开始更新并保存(有UI) #/ets-auto-update
直接在控制台里执行 wikiUpdate()
可以直接执行更新 无UI
seven332/EhViewer#520
想到了补充翻译机制问题。
ETS可以做到有的标签添加跳转到官网的链接
那么可不可以对没有css翻译的标签做到如下概念图?
自动转换回车和其他需要转义的代码格式,图中我的代码写错了,\A是CSS里才这样写的,正确的应该是<br>
这是第一步,减少添加Tag翻译时手动书写代码的麻烦。
https://github.com/ryanackley/git-html5.js
如果可以实现就不需要要求用户到ETT页面更新数据来增加可能的翻译者了。
当然这部分也可以独立成一个新的程序。
说点闲杂话题
突然发现Stylish里有“查找更新”的选项,作者大大可以定时(比如每天或每周)把生成的css文件上传
推荐文件版本:1.纯翻译版(无简介、图片) 2.简介版(有简介、无图片) 3.延伸版(有简介、有图片)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.