Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Post Reply
User avatar
Zirconia Wolf
Hobby Astronomer
Hobby Astronomer
Posts: 25
Joined: 2017-11-20, 07:13

Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by Zirconia Wolf » 2021-04-28, 15:47

I have been using a "user agent override" (via Sasuga 2.1.1) to view Instagram posts on my laptop for months without any problems. After updating to the latest Pale Moon (29.2.0) I am now unable to see anything except text descriptions of images, including those previously uploaded to my own account. Obviously my "user agent override" is no longer working....so how do I get it back? Is Sasuga another one of the FF-related extensions no longer supported by Pale Moon? If so, are there any user agent switching programs that are Pale Moon approved? I am not using the user agent feature for any purpose other than accessing Instagram on my computer instead of my phone which I rarely use for anything other than making emergency calls on; nothing nefarious, I just don't like trying to view images on a tiny phone screen.

Any help would be greatly appreciated. Thank you.
Browser: Pale Moon (29.2.0 32 bit)
OS: W7 Home Premium + Service Pack 1

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 3155
Joined: 2015-12-09, 15:45
Contact:

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by moonbat » 2021-04-28, 16:01

Sasuga is a native PM extension built from scratch, so no. UA overrides are always iffy given how quickly site developers keep dicking around with their layout and code. Search the forum for other threads about overrides for Instagram, maybe something there might help.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Falna
Lunatic
Lunatic
Posts: 426
Joined: 2015-08-23, 17:56
Location: UK / France

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by Falna » 2021-04-28, 16:02

It is still supported - Sasuga.

Not a user myself, so hopefully someone else will point you in the right direction.

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink TextgSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple MarkerTabs To PortfolioUpdate AlertWeb Developer's ToolboxZap Anything

Hint: If you expect a reply to your PM, allow replies...

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 3155
Joined: 2015-12-09, 15:45
Contact:

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by moonbat » 2021-04-28, 16:12

Falna wrote:
2021-04-28, 16:02
It is still supported - Sasuga.

Not a user myself, so hopefully someone else will point you in the right direction.
I mean that Sasuga was made from scratch for Pale Moon and is not a port from Firefox, so there is no question of it being disabled by this update.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20.1 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

vannilla
Board Warrior
Board Warrior
Posts: 1653
Joined: 2018-05-05, 13:29

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by vannilla » 2021-04-28, 17:44

Try to remove the override.
I don't know what you are missing as I do not use the service, but you might want to try it out without the override and see if it works.
As a side note, if you are using something which "spoofs the referer", try disabling that feature while browsing the site and see if it makes any difference.

User avatar
zombieman81
New to the forum
New to the forum
Posts: 2
Joined: 2021-04-03, 14:09

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by zombieman81 » 2021-04-30, 03:03

I do not have any problem with viewing Instagram posts without any user agent override present at all. Instagram like to put a banner at the bottom of the screen to say the web browser is no longer supported but I ignore that.

Sasuga (which I admit I don't use) is according to a description only a nicer user interface to the options that you can natively access by entering "about:config" into the address bar.

I suppose there could be an issue with something previously cached, so you could try clearing the Pale Moon web cache to see if that helps (Tools > Preferences > Advanced > Network)

User avatar
mihau
Newbie
Newbie
Posts: 3
Joined: 2021-02-23, 21:24

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by mihau » 2021-05-01, 14:52

if it's of any worth, I have the same issue with Pale Moon 29.1.1. and 29.2.0, but without any extensions or user agent overrides. it did work fine up until a week ago or so though. tried clearing cache, logging out etc. to no effect.

the curious thing is, even though the images are not displayed, they are being requested and loaded, as evidenced in the developer tools/network thingie.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30023
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by Moonchild » 2021-05-01, 21:20

So as is very often the case the browser is blamed for a server-side change.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

pintassilgo
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2017-04-30, 04:34

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by pintassilgo » 2021-05-02, 04:51

I fixed this by setting both Origin and Referer headers to "https://www.instagram.com" for Instagram requests.

User avatar
mihau
Newbie
Newbie
Posts: 3
Joined: 2021-02-23, 21:24

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by mihau » 2021-05-02, 16:52

Moonchild wrote:
2021-05-01, 21:20
So as is very often the case the browser is blamed for a server-side change.
yes.
it was never my intention to blame the browser, I was just wondering if someone would find a workaround that would fix what Instagram broke.
pintassilgo wrote:
2021-05-02, 04:51
I fixed this by setting both Origin and Referer headers to "https://www.instagram.com" for Instagram requests.
setting them where exactly, care to elaborate? thank you

pintassilgo
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2017-04-30, 04:34

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by pintassilgo » 2021-05-03, 03:46

You need (supposing that what fixed the issue for me is an universal solution) something to modify request headers. Then you need to set the headers as I said in my previous comment.

I don't know if there's an available extension to modify requests, but there's autoconfig.js. Open your Pale Moon folder, navigate to \defaults\pref, create a file named config-prefs.js with this content:

Code: Select all

pref("general.config.obscure_value", 0);
pref("general.config.filename", "autoconfig.js");
Then navigate back to Pale Moon folder, create a file autoconfig.js with the following code:

Code: Select all

//
Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService).addObserver(subject => {
  let httpChannel = subject.QueryInterface(Components.interfaces.nsIHttpChannel);
  if (/ig_cache_key/.test(httpChannel.URI.path) ||
      httpChannel.URI.host.endsWith('.cdninstagram.com') ||
      /_nc_ht=instagram\./.test(httpChannel.URI.path)) {
    httpChannel.setRequestHeader('Origin', 'https://www.instagram.com', false);
    httpChannel.setRequestHeader('Referer', 'https://www.instagram.com', false);
  }
}, 'http-on-modify-request', false);
Notice the // in the first line because the first line of autoconfig must not contain code. Then restart Pale Moon.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 30023
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by Moonchild » 2021-05-03, 07:38

The snippet of code changes requests to "cdninstagram.com", not instagram.com itself.
It's likely it simply doesn't like a UA override on one but not the other.

Also check if you are spoofing referrers with the available preferences in the browser and if so, stop doing that. It is known to cause issues.

If there really is a problem with requests between instagram.com and cdninstagram.com not having the proper referrers or origins then that is almost certainly a redirection or name aliasing issue which should not be "worked around" with slow on-the-fly header rewriting but rather reported to instagram -- likely our browser isn't the only one suffering from this issue but on the server side this might be seen as "catching bad bot requests", which would be false positives. It's in their own interest to fix this in that case.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

pintassilgo
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2017-04-30, 04:34

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by pintassilgo » 2021-05-04, 00:21

This is not a bug, appears to be intended. Instagram blocked images from loading when Referrer is not from its own website. Those of us who use a different config for Referer (like not sending Referer at all) will get this error even while browsing Instagram. For normal users (with default Referer settings) this is only an issue when an image from IG is directly embedded in another site.

User avatar
mihau
Newbie
Newbie
Posts: 3
Joined: 2021-02-23, 21:24

Re: Instagram Issues With Sasuga 2.1.1 + Pale Moon 29.2.0

Post by mihau » 2021-05-04, 16:12

thanks pintassilgo

Post Reply