Wikipedia Inline Article Viewer [adopted]

Adds a hover event to internal article links on wikipedia pages which, opens the article inline in a dhtml frame.

< Feedback on Wikipedia Inline Article Viewer [adopted]

Review: Good - script works

§
Posted: 2021-05-12

dear sir
what a pity this script couldn't apply to wikiwand. Although wikiwand has its own inline view, its effect doesn't fullfill needs compared to yr script. For example, its inline view couldn't scroll to read the whole article in pop up. I wonder if u could consider to modify this js to run on wikiwand? Thanks.

Paul

joeytwiddleAuthor
§
Posted: 2021-06-18

Hi Paul, thank you for your request.

I had a look at doing this today, but after some work I'm afraid I found it was not trivial.


The technical difficulties:

When I request a Wikiwand page the response I get back contains everything except the content. The content is loaded by JavaScript using a separate request to a CDN, like this:

https://db0nus869y26v.cloudfront.net/en/Ganymede_(moon)?rev=1624014195974

I tried to construct a URL like that for the hovered link, but it failed (possibly because I didn't have the correct rev revision number).

I also tried to access Wikiwand with JavaScript disabled, to see what that would return, but it didn't give me anything useful back.

If anyone knows how to make a request to Wikiwand that will return the simplified content, please let me know!


If you really want a prettier Wikipedia, but with Wikipedia Inline Article Viewer working, you might be better off using the normal Wikipedia site but with a userstyle loaded to make it prettier: https://userstyles.org/styles/browse?search_terms=wikipedia&type=false

Although even that isn't guaranteed to work, since I haven't tested Wikipedia Inline Article Viewer with any userstyles.

§
Posted: 2021-12-18

:)
Thank you for all your efforts. yesterday i accidently found an extension, https://chrome.google.com/webstore/detail/modern-design-for-wikiped/emdkdnnopdnajipoapepbeeiemahbjcn, which renders a much modern view to wikipedia. And i returned to wikipedia with your script.
ps,i slightly modified several codes, such as font-size, inline windown size. and removed get printable=yes,as wikipedia insistantly warns of older version.
:)
right now it's wonderful to have a modern-view wikipedia with yr script. It's necessary and very helpful.
thanks again.

best wishes
Paul

joeytwiddleAuthor
§
Posted: 2021-12-18

That's great that you found a solution, combining two things together!

Also glad to hear you are editing the code. It can be fun to experiment with userscript code.

§
Posted: 2021-12-18

:)
I'm totally dumb in code. All i could do is to find some number, option, or // to negate code.
your kindness is much appreciated.

best regards
Paul

Post reply

Sign in to post a reply.