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.

< MS-Word DOCX Readerについてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 2021/05/13

Doesn't work

jcunews作者
§
投稿日: 2021/05/14

Which part? And with what?

§
投稿日: 2021/05/14

When I go to google and click on any .doc or .docx file, the file is downloaded directly and nothing happens.

jcunews作者
§
投稿日: 2021/05/15

Google Docs does not actually use a link. It uses JavaScript driven non link element. A link element is when the mouse is hovered on it, the web browsers show the actual URL the link is pointing to (just like Google Web search result entry links). If the web browser doesn't show anything, then it's not a link.

§
投稿日: 2021/05/15

I meant google.com

I followed your script print screen steps by step, found the same link, and it doesn't work

jcunews作者
§
投稿日: 2021/05/16

OK, the script has been updated.

The sample screenshot is actually a bad example (sorry), because Google Search uses redirector link. So the script will never detect a DOCX URL because it actually points to Google's redirector URL. To disable Google Search redirector, you'll have to use a separate script:

https://greasyfork.org/en/scripts/32635-disable-google-search-result-url-redirector

jcunews作者
§
投稿日: 2021/05/17
編集日: 2021/05/17

Either way, the DOCX reader script only work for real links which points directly to .docx resource, instead of just having an .docx in the link's URL.

Like the sample file links in the table of below page.

https://www.duxburysystems.com/documentation/dbt12.4/samples/word/samples.htm

§
投稿日: 2021/05/17
編集日: 2021/05/17

I've tested on another browser too with no other extensions/scripts and the docx files on the link you sent now are directly downloaded too

I guess that's because you are adding the addEventListener("mousedown", function(ev, popup, mwdrProgress, orgOverflow, lnk) { to nothing

But changing to document.body.addEventListener didn't make it work either

jcunews作者
§
投稿日: 2021/05/18

You may wanto to use TamperMonkey instead of other GM provider extension, because the script was only thoroughly tested with that addon. I do not guarantee that the script will work with other GM provider addon. Especially the official GreaseMonkey addon because it broke compatibility with older GM specification.

§
投稿日: 2021/05/18

But I to use tampermonkey, I've tested your script only with tampermonkey and your script never worked...

jcunews作者
§
投稿日: 2021/05/19

How did you use the script exactly? Be specific please.

§
投稿日: 2021/07/21
編集日: 2021/07/21

Exactly as you recommended, I used this page https://www.duxburysystems.com/documentation/dbt12.4/samples/word/samples.htm

but Alt+LeftClick on the sample files .docx doesn't do anything. The default left click menu appears and disappears very fast, that's all.

jcunews作者
§
投稿日: 2021/07/22

@hacker09: Mouse left button is normally for action, not the menu. So changes are you're left handed and has swapped the left and right mouse button functionality. In your case, you'll have to manually edit the script to reconfigure which mouse button to use. The description is already in the script code.

§
投稿日: 2021/07/22
編集日: 2021/07/22

This script is amazing! But it really should work on a single mouse click, I think Alt is very needless, so I removed it.

Thank you!

返信を投稿

返信を投稿するにはログインしてください。