Isn’t the “Lemmy API” basically just ActivityPub? Could this package be made to work with Kbin, for example? Possibly other Fediverse projects?
Isn’t the “Lemmy API” basically just ActivityPub? Could this package be made to work with Kbin, for example? Possibly other Fediverse projects?
Be careful though; the code actually loads a different script that’s been posted by a Wikipedia user, not Wikipedia itself. You can view the script here, and do heed the warning at the top:
Never run/execute code that you haven’t verified yourself. Also, keep in mind that while the code might be trusted now, because you’re including code from a wikipedia page that might be changed at any one moment, you can’t be sure the page won’t serve you malware tomorrow. So instead of using the code above, it’s safer to use the code below (which is just a copy-paste of the actual script, and therefore can not be changed by other people):
/* Force Wikipedia to use the desktop version. Google on mobile uses "en.m.wikipedia.org", this scripts redirects to the normal version. CC0 */ if(window.location.href.match(/^https?:\/\/[^.]+\.m\./)) { var desktopUrl = $('#mw-mf-display-toggle').attr('href') if(desktopUrl) { window.location.href = desktopUrl } }