Skip to content

Instantly share code, notes, and snippets.

@damieng
Last active March 24, 2020 08:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damieng/a869d7155051c0b3988a to your computer and use it in GitHub Desktop.
Save damieng/a869d7155051c0b3988a to your computer and use it in GitHub Desktop.
Make the World of Spectrum screenshots work again (a Greasemonkey script)
// ==UserScript==
// @name Fix WoS screenshots
// @namespace http://damieng.com
// @version 0.1
// @description Make the World of Spectrum screenshots work again
// @author Damien Guard
// @include https://www.worldofspectrum.org/*
// ==/UserScript==
var images = document.getElementsByTagName('img');
for (var i = 0; i < images.length; i++)
images[i].src = images[i].src.replace('/showscreen.cgi?screen=', '/pub/sinclair/');
@raxoft
Copy link

raxoft commented Mar 20, 2020

Thanks for this script. Just note that WoS now uses https instead of http, so you may want to update it. Thanks again.

@damieng
Copy link
Author

damieng commented Mar 20, 2020

Shouldn't need this any more tho - they fixed the screenshots some time ago.

@raxoft
Copy link

raxoft commented Mar 20, 2020

I thought so as well, and stopped using this some time ago, but recently I have found out that these infoseek outputs are still broken:

https://www.worldofspectrum.org/infoseekadv.cgi?type=game&year=1984&sort=4&display=3&minvotes=on&loadpics=1

(this is an example of best games of 1984). So I came back and installed this script again, just had to adjust it for https.

@damieng
Copy link
Author

damieng commented Mar 20, 2020

Ah right, cool. Should probably report that to the WoS maintainers - I'll see if I can track the right person down.

@raxoft
Copy link

raxoft commented Mar 24, 2020

FYI, Lee Fogarty just recently got this fixed directly on WoS. Thanks to everybody involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment