Greasy Fork is available in English.

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
สร้างเมื่อ
01-07-2018
อัปเดตเมื่อ
16-05-2021
สัญญาอนุญาต
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.