MS-Word DOCX Reader

Adds Microsoft Office Word DOCX document viewing functionality without using or involving any third party website. To view a Word document, use the mouse shortcut to click the link on a web page which points to a DOCX file. By default, the mouse shortcut is Alt+LeftClick, and it's configurable in the script.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
jcunews
일일 설치수
0
총 설치수
146
평점
1 0 1
버전
1.0.2
생성
2018-07-01
갱신
2021-05-16
Size
6.1KB
라이선스
AGPLv3
동작 사이트
모든 사이트

When a DOCX link is clicked using the mouse shortcut, a popup dialog will be shown to indicate the file loading progress. If the file size is known, a percentage number will be shown. Otherwise, the number of data bytes will be shown.

This script uses the mammoth.js library for handling the DOCX to HTML conversion. https://github.com/mwilliamson/mammoth.js

This script is compatible with Tampermonkey and Violentmonkey addons. For Greasemonkey addon, it may be compatible with v3.x (untested), but it's not compatible with v4.x due to its incomplete implementation.

When used with Tampermonkey addon, Tampermonkey will ask whether to allow or reject the network request made by the script for loading the DOCX document. This is a security mechanism by Tampermonkey, because background network request to other domain is considered as a risk. However, this network request is required, so please allow it either temporarily or permanently. But do so after checking whether the shown Destination URL matched the link which was clicked. i.e. the Destination URL should point to a DOCX file also.