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.

< Feedback on MS-Word DOCX Reader

Review: Bad - script does not work

§
Posted: 2021-05-13

Doesn't work

jcunewsAuthor
§
Posted: 2021-05-14

Which part? And with what?

§
Posted: 2021-05-14
When I go to google and click on any .doc or .docx file, the file is downloaded directly and nothing happens.
jcunewsAuthor
§
Posted: 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.

§
Posted: 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
jcunewsAuthor
§
Posted: 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

jcunewsAuthor
§
Posted: 2021-05-17
Edited: 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

§
Posted: 2021-05-17
Edited: 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

jcunewsAuthor
§
Posted: 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.

§
Posted: 2021-05-18
But I to use tampermonkey, I've tested your script only with tampermonkey and your script never worked...
jcunewsAuthor
§
Posted: 2021-05-19

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

Post reply

Sign in to post a reply.