Hide view source?

and it is blue/gray color when there is no replies, and orange when there is. You can find a legend at the bottom of a forum page :slight_smile:

Ahh okay, I completely forgot it was April 1st the next day. :lol:

Ohh God no. Who would even visit it to be able to steal it. Or even optimistically visit and stay long enough :stuck_out_tongue:

haha thank you. I will use them in any argument or instance where a client proposes viewing the source.

Okay, that explains it quite niceley.

Thank you all for your help. I think there is a unanimous decision that viewing source is pointless.
Thank you for helping me realise this. :slight_smile:

Regards,
Team 1504

I think you misspoke. The decision is you cannot hide the page source. It is a waste of time to do so, HOWEVER, viewing a page source is not pointless at all. It can allow somebody to see how the developer achieve a particular effect. That is why CSS Zen Garden is so popular.

An even simpler method is to do CTRL+A, then right click and “view selection source”. That will show you the page Firefox built from the DOM it interpreted.

Or just use Firebug, which builds you a nicely indented tree.

That will not work if the page hs code in it to block the context menu.

If the page is “encrypted” you can’t turn off the JavaScript so as to bypass the no right click script as that would result in the page not displaying at all. So you’d need to first use an “enable right click” bookmarklet to be able to disable the no right click code before that would work.

Yes, you could still get at the source that way but it isn’t necessarily as simple as just pressing those keys if the page has been set up to block that.

The advantage of two of the three ways I suggested is that they can’t be blocked by any code within the web page.

Firebug displays the dom tree rather than the page source so you can’t just copy and paste it to create a copy of the page.

OK, I see the right-clicking block could make it harder, good point.

Firebug displays the dom tree rather than the page source so you can’t just copy and paste it to create a copy of the page.

In HTML pane, right-click <html> node, “copy innerHTML”, paste into text editor.

Or if you’re just interested in the body, click <body> node, then click “Edit” button.

There’s a very simple way to block viewing source - Take a screenshot of every single page of your site, and replace all the pages with the screenshots, using image maps for links. People viewing the source will just see an image and an image map. :smiley:

Seriously though, there’s no way to block viewing source. If you prevent right-clicking, people can just use the menus, or get the page from the browser’s cache (also note that most right-click prevention scripts don’t block the “menu” key on the keyboard). If you use JavaScript to encode the page, the browser needs to be able to decode it, and so, logically, any encoded page can be decoded (otherwise how would the browser be able to render it? :goof:)

I think Opera allows you to disable “disable right-click” in its Javascript options, without affecting other Javascript that might be running. (But I’m at work so can’t check right now)

Yep, the option’s called “Allow scripts to detect context menu events”. I use Opera as my primary browser :slight_smile:

Yes it does. It also allows you to easily install userscripts without needing anything extra and so makes it really easy to add the view source userscript that not only displays the decrpted source of every web page but also makes every JavaScript, CSS, and image file reference into a link to that file providing really easy access to all of the components of the page in one place.

Oops, Apologies :blush:
Yeah, now that I think about it, from a developer’s point of view-- allowing open source, which is a must, is, if not anything else, courteous.