mdjs-viewer Chrome 插件, crx 扩展下载
扩展ID: ifkkmomkjknligelmlcnakclabgohafe
See Markdown JavaScript demos directly on github.com# Markdown JavaScript Viewer (mdjs-viewer) [mdjs (Markdown JavaScript)](https://www.npmjs.com/package/@mdjs/core) allows to execute code and show interactive demos within your markdown documentation. This extension takes this functionality and enables it directly on github.com. You can see live demos in - Github Markdown files (like README.md) - Github Issues (incl. edit preview, new comment preview, new issue preview) - ... more is planned but not yet implemented ## Security Executing user code especially in github issues can be dangerous. This extension isolates code executing as much as possible. It can be considered as secure as any page that executes user code like codepen or jsfiddle. The Security Measures are: - not executing any code without user action (e.g. requires a click of a button first) - shows demos/executes code within an iframe - that uses [sandbox](https://www.w3schools.com/tags/att_iframe_sandbox.asp) with the following settings `sandbox="allow-scripts"` - populates the iframe with a data uri - does not allow any requests (except unpkg) to got outside of the iframe This prevents [all known attack vectors](https://github.com/open-wc/mdjs-viewer/issues/2). If you come up with new once please [report them](https://github.com/open-wc/mdjs-viewer/issues/new). ### Warning In order to function this extension modifies the CSP (Content Security Policy) for github.com with the following rules: - adds to script-src - `'unsafe-inline'` to execute code blocks within the mdjs iframe - `unpkg.com` to load user dependencies from within the mdjs iframe ## Demos Enable the extension and visit the following pages 1. [Readme of demo-wc-card](https://github.com/daKmoR/demo-wc-card) 2. [Issues of demo-wc-card](https://github.com/daKmoR/demo-wc-card/issues/1) ## How does it work? It adds a button `show demo ▹` to markdown pages and issues. Once you press it will get the raw md text which then gets pass though [mdjs](https://www.npmjs.com/package/@mdjs/core) and an extra plugin which replaces all imports (relative and bare imports) with [unpkg.com](https://unpkg.com/) urls with the `?module` flag. This way all dependencies can be directly loaded in the browser without the need of any service. Finally we create an iframe with the content of the mdjs html and js output. ## Limits In order to get the raw md content of an issues (only the first message not following comments) a request to api.github.com is required. This request is only needed if you actually click on the `show demo ▹` button. There is a hard limit of 60 anonymous api calls to github per hour. For more an API key is needed. (You can not yet provide it to the extension 🙈 - feel free to open a feature request)
名称 | mdjs-viewer |
插件标识 | ifkkmomkjknligelmlcnakclabgohafe |
平台 | Chrome |
评分 | 0 |
评分人数 | 0 |
插件主页 | |
作者 | Thomas Allmer |
版本号 | 0.0.4 |
大小 | 255 KB |
官网下载次数 | 50 |
分类 | 查看更多 web开发 分类下的扩展插件 |
下载地址 | |
更新时间 | 2020-04-03 00:00:00 |
CRX扩展文件安装方法
打开Chrome浏览器的扩展程序: 地址栏直接输入:chrome://extensions/ 即可进入,将右上角的【开发者模式】开启,重启chrome(重要操作),再次打开扩展程序管理界面,把下载的crx直接拖动进去即可完成安装,注意请更新最新版本的chrome.
打开Chrome浏览器的扩展程序: 地址栏直接输入:chrome://extensions/ 即可进入,将右上角的【开发者模式】开启,重启chrome(重要操作),再次打开扩展程序管理界面,把下载的crx直接拖动进去即可完成安装,注意请更新最新版本的chrome.
回复
强烈推荐
相关推荐
大家在找这些插件
- Slax Reader
- hac
- 垂直标签页
- Chrome 垂直标签页扩展
- songsterr
- visdeo
- youtube ai subtitle and web translator
- rsshub radar
- web media radar
- neo vision
- bbc iplayer
- powerpoint
- onenote web
- youtube中文配音
- idmç ´è§£ç
- easy to rss
- a cute browser pet
- global speed_
- ptpp
- gnome shell extension
- pubg
- 右键预览图片
- Easy to RSS
- Youtube AI Subtitle and Web Translator
- Global Speed_
- 万能视频下载工具
- bbc IPLAYER
- BBC IPLAYER
- video DOWNLOAD
- augmented-steam
- font-weight
- ✒font-weight:800✒font-weight:800
- ✒font-weight:800
- 电子书全网搜
- Songsterr
- pdf????????????ppt
- ai翻译
- OKX
- 英文学习
- 拖放自由
- 媒介
- 云彩
- 小云
- OneNote Web
- 坐标
- IDMç ´è§£ç
- A Cute Browser Pet
- PowerPoint
- 微乐麻将
- palinsestotv.c
- ligopartners.c
- luccascovo.c
- commercialera.c
- magyargifts.c
- salesforce login
- 在线听
- Youtube中文配音
- 中文配音
- 网络助手
- Free Download Manager edge
- uc浏览器
- uc
- filcr
- biliplus
- hpoi
- flash copilot
- FilCR
- m3u9
- pornbot
- pornhubbot
- boodigo
- BiliPlus
- 雷电下单助手
- 雷电
- idgn
- 股票基金管家
- switch Omega
- word highlight
- setuovon
- ghler
- ligopartners.com
- 视频号
- ug
- Supercopy
- insgram
- acg
- 视频会员
- HPOI
- avtar
- acr
- Kimi
- antibot
- chandler
- 1passward
- Flash Copilot
- 黑暗模式-护眼
- 蓉城
- 税号
相关搜索词
- pdf viewer
- markdown viewer
- Free Visio Viewer
- Office Viewer
- json viewer
- EXIF viewer - 1.1.6
- JSON Viewer
- free visio viewer
- "Office Viewer"
- Image Viewer
- focus Image Viewer
- focus image viewer
- Enhanced Image Viewer
- Chrome extension source viewer
- PDF Viewer
- enhanced image viewer
- chrome extension source viewer
- exif viewer - 1.1.6
- office viewer
- image viewer
- Markdown Viewer
- easy viewer
- easy viewer.crx
- Markdown Viewer.crx
- markdown viewer.crx
- Magic Viewer for Chrome™
- Magic Viewer for Chrome???
- pdf Viewer
- json-viewer
- css viewer