Forgot password?
 Create new account
View 160|Reply 4

基于 VSCode 的客户端

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

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

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

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

15

Threads

948

Posts

110K

Credits

Credits
12412

Show all posts

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

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

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

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

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

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2024-9-4 17:47:40
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+'&page=1';
  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|Leisure Math Forum

2025-4-20 22:16 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list