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
Which part? And with what?
When I go to google and click on any .doc or .docx file, the file is downloaded directly and nothing happens.
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.
I meant google.com
I followed your script print screen steps by step, found the same link, and it doesn't work
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
I've installed that script too and the docx viewer script stills not working on https://www.google.com/search?q="docx"+"sample+file"&client=opera-gx&hs=XrP&ei=7G6hYLfnNNHs_QaA9YaQBg&oq="docx"+"sample+file"&gs_lcp=Cgdnd3Mtd2l6EAMyAggAMgYIABAIEB4yBggAEAgQHjIGCAAQCBAeMgYIABAIEB4yBggAEAgQHjoHCAAQRxCwAzoICAAQkQIQiwM6BQgAEIsDOgUIABCRAjoHCAAQQxCLAzoGCAAQBxAeOggIABAIEAcQHlCSfFjanwFg1aABaAJwAngAgAHSAYgBiAmSAQUwLjUuMZgBAKABAaoBB2d3cy13aXrIAQi4AQLAAQE&sclient=gws-wiz&ved=0ahUKEwi3jde29M7wAhVRdt8KHYC6AWIQ4dUDCA0&uact=5
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
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
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.
But I to use tampermonkey, I've tested your script only with tampermonkey and your script never worked...
How did you use the script exactly? Be specific please.
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.
@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.
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!
Doesn't work