Forgot password?
 Register account
View 310|Reply 4

基于 VSCode 的客户端

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2022-8-14 10:49 |Read mode
Last edited by hbghlyj 2024-9-4 09:46github.com/niudai/VSCode-Zhihu
基于 VSCode 的知乎客户端提供包括阅读,搜索,创作,发布等一站式服务,内容加载速度比 Web 端更快,创新的 Markdown-Latex 混合语法让内容创作者更方便地插入代码块,数学公式,并一键发布至知乎平台。

在VSCode原生支持的Markdown-Latex中, 鼠标悬浮在公式代码上方, 就显示公式预览.
可以打开预览窗口, 实时预览, 自动和编辑器同步滚动.

比如这个文章顶部有“本文使用 Zhihu On VSCode 创作并发布”

13

Threads

901

Posts

110K

Credits

Credits
12272

Show all posts

色k Posted 2022-8-14 11:27 From mobile phone
hbghlyj 发表于 2022-8-14 10:51
希望这个论坛可以有一个基于VSCode的客户端
网页端这个编辑器没有任何高亮, 没有括号匹配. 修改长公式很麻 ...
带公式的帖子通常我都是在本地编辑器(WinEdt or MathType)上写好再复制粘贴上来发的,不会在网页端编辑器写代码,除非内容很短。
这名字我喜欢

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2022-8-14 12:18
色k 发表于 2022-8-14 04:27
带公式的帖子通常我都是在本地编辑器(WinEdt or MathType)上写好再复制粘贴上来发的,不会在网页端编辑器 ...
是啊
希望可以有一个基于VSCode的客户端, 就不用每次打开浏览器粘贴了

682

Threads

110K

Posts

910K

Credits

Credits
90973
QQ

Show all posts

kuing Posted 2022-8-14 13:29
hbghlyj 发表于 2022-8-14 12:18
是啊
希望可以有一个基于VSCode的客户端, 就不用每次打开浏览器粘贴了  ...
那你来开发吧,我啥也不会。

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2024-9-4 17:47
hbghlyj 发表于 2022-8-14 04:18
希望可以有一个基于VSCode的客户端, 就不用每次打开浏览器粘贴了
例如我们可以编写一个JS来删除帖子
  1. async function dpid(tid,pid,fid){
  2.     a=document.createElement('iframe');
  3.     a.src='https://kuing.cjhb.site/forum.php?mod=post&action=edit&fid='+fid+'&tid='+tid+'&pid='+pid+'';
  4.     a.style="position: absolute; width:0; height:0; border:0;";document.body.appendChild(a);
  5.     a.onload=function(){
  6.         a.contentDocument.getElementsByName('delete')[0].checked=true;
  7.         a.contentDocument.forms[0].submit();
  8.     }
  9. }
Copy the Code
这个脚本很简单, 发送一个 http 请求来删除用户想要删除的帖子
Screenshot 2024-09-04 174913.png

Mobile version|Discuz Math Forum

2025-6-5 01:27 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit