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.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
jcunews
日安装量
0
总安装量
148
评分
1 0 1
版本
1.0.2
创建于
2018-07-01
更新于
2021-05-16
大小
6.1 KB
许可证
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.