Chirmaya / BooruSlideshow

A Google Chrome extension for a slideshow of boorus.
https://github.com/Chirmaya/BooruSlideshow/raw/master/BooruSlideshow.zip
Other
42 stars 25 forks source link

rule34.xxx is marked as down; Firefox Version #98

Closed AccountNameIsTaken closed 2 years ago

AccountNameIsTaken commented 3 years ago

rule34.xxx is marked as down, even though it's not, in the Firefox version. Did the API Key change?

icarlyismybible commented 3 years ago

Same happening in chrome as well

DracoTomes commented 3 years ago

Using the Chrome Plugin (in Opera) I get the following error:

Access to XMLHttpRequest at 'https://api.rule34.xxx//index.php?page=dapi&s=post&q=index&limit=1' (redirected from 'https://rule34.xxx/index.php?page=dapi&s=post&q=index&limit=1') from origin 'chrome-extension://lohkpdhklanigahgacmihfdlcfbbblgj' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

DracoTomes commented 3 years ago

OK I found a fix - since rule34.xxx redirects requests to api.rule34.xxx you need to allow the extension access to that site.

You need to edit the manifest,json file in the unpacked zip and in line 38 change https://rule34.xx to either https://api.rule34.xxx or you can do https://*.rule34.xxx like it's done with gelbooru already.

Then you need to re-add the extension.

Your blacklist, if you use it should be saved, but I would advice saving and re-adding it need be.

AccountNameIsTaken commented 3 years ago

OK I found a fix - since rule34.xxx redirects requests to api.rule34.xxx you need to allow the extension access to that site.

You need to edit the manifest,json file in the unpacked zip and in line 38 change https://rule34.xx to either https://api.rule34.xxx or you can do https://*.rule34.xxx like it's done with gelbooru already.

Then you need to re-add the extension.

Your blacklist, if you use it should be saved, but I would advice saving and re-adding it need be.

Excellent insight! Thank you! I've made a PR to support this change, so that others can at least see the fix. I don't know if anyone is looking at this repo anymore, as it says on the main page. Thanks DracoTomes!