Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

How can I prevent Firefox from displaying Javascript/CSS inline while viewing Page Source (CTRL+U)?

  • 6 svar
  • 3 har dette problem
  • 5 visninger
  • Seneste svar af RayG210

more options

Recently I noticed that Javascript & CSS files are shown inline while viewing a page source. Is there a way to stop Firefox from doing this?

Recently I noticed that Javascript & CSS files are shown inline while viewing a page source. Is there a way to stop Firefox from doing this?

Valgt løsning

Thank you for testing.

When I try Reddit, that style sheet is not inlined into the page.

I can't access /browse on Netflix, I get redirected to a login screen. But it seems odd that when I try to browse around Netflix I am always on HTTPS and you loaded it on HTTP.

Does this problem only occur in HTTP pages, and not in HTTPS pages?

Is it possible that some kind of proxy or security filter is modifying the page before it reaches your browser?

Læs dette svar i sammenhæng 👍 1

Alle svar (6)

more options

Do you mean scripts and style rules from external files are being displayed in the source viewer? I've never seen that. Are you using the basic default source viewer or might an add-on be enhancing it?

A common way to test whether an extension is in play is to test in Firefox's Safe Mode where all extensions are disabled. You can invoke that using either:

If Firefox is not running: Hold down the Shift key when starting Firefox.

If Firefox is running: You can restart Firefox in Safe Mode using either:

  • "3-bar" menu button > "?" button > Restart with Add-ons Disabled
  • Help menu > Restart with Add-ons Disabled

and OK the restart.

Both scenarios: A small dialog should appear. Click "Start in Safe Mode" (not Refresh).

Any difference?

more options

jscher2000 said

Do you mean scripts and style rules from external files are being displayed in the source viewer? I've never seen that. Are you using the basic default source viewer or might an add-on be enhancing it?

Yes, this is what is happening. Yes, I use the default source viewer. Restarting in safe-mode did not make a difference. Oddly enough, Mozilla's website shows external links for me. However, this seems like the exception because I wasn't able to find another site that also displayed external links.

more options

That is normal for content that is embedded as a script or style tag in the page source. You shouldn't see this when a link to a file is used instead, but you will see all content that is part of the page source.

more options

Except that I am seeing this when the files are linked. Here is an example of what I'm seeing on the current site I'm developing. This CSS file is linked, it is not embedded inline.

more options

Valgt løsning

Thank you for testing.

When I try Reddit, that style sheet is not inlined into the page.

I can't access /browse on Netflix, I get redirected to a login screen. But it seems odd that when I try to browse around Netflix I am always on HTTPS and you loaded it on HTTP.

Does this problem only occur in HTTP pages, and not in HTTPS pages?

Is it possible that some kind of proxy or security filter is modifying the page before it reaches your browser?

more options

jscher2000 said

Thank you for testing. When I try Reddit, that style sheet is not inlined into the page. I can't access /browse on Netflix, I get redirected to a login screen. But it seems odd that when I try to browse around Netflix I am always on HTTPS and you loaded it on HTTP. Does this problem only occur in HTTP pages, and not in HTTPS pages? Is it possible that some kind of proxy or security filter is modifying the page before it reaches your browser?

This was indeed the case, thank you for helping me solve this.