Full source code of a internet page in Firefox

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Full source code of a internet page in Firefox

Post by Kwai chang caine »

Hello at all

Someone know a tips or an add-on for Firefox for can catch EXATELY the same FULL source code that we see in the "inspector" of F12

Image

Because when i do right click "View source code" i have just a little part of the FULL source code of the page :|

Have a good day
ImageThe happiness is a road...
Not a destination
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Re: Full source code of a internet page in Firefox

Post by Bisonte »

The Browser calls all Scripts and CSS Sheets and other external sources what this html is using, to show it into the Inspector...

It is be done with the Inspector, so I dont know any tool that does such a thing (maybe Webcrawler do this).
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: Full source code of a internet page in Firefox

Post by plouf »

as said todya site are practically "apps" calling from here to there

the best i can think to your question is to use wget commandline tool to download all scripts and explore...
Christos
TassyJim
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

Re: Full source code of a internet page in Firefox

Post by TassyJim »

Right click.
Save page as...

You will have to right click in various places to get the "Save page as" option.
Somewhere that is NOT an object is a good place to try.

If it works, you should have all the required includes downloaded to inspect at leisure.

Jim
User avatar
JHPJHP
Addict
Addict
Posts: 2250
Joined: Sat Oct 09, 2010 3:47 am

Re: Full source code of a internet page in Firefox

Post by JHPJHP »

HI Kwai chang caine,

I'm fairly certain my Chromium Framework can easily do what you're asking.

Another name for the Inspect window is Developer Tools or DevTools for short.
viewtopic.php?p=628373#p628373

I've already done a simple test, and the information returned matched the Inspect window.
• The information returned was in the form of a JSON string.
• This was just one method of returning data, there are several.

Either way I'm surprised I haven't heard from you directly. The Chromium Framework not only has complete control over the new PureBasic WebGadget, but also over any Chromium based browser... including Firefox. This manipulation is not limited to simple navigation, it has the ability to completely modify a live webpage so that the user sees what you want them to see. Embedding event listeners, manipulating, executing or adding JavaScript Functions, adding images, text, you name it. TBH, I'm under-playing its capabilities.
Last edited by JHPJHP on Tue Nov 05, 2024 7:53 pm, edited 2 times in total.

If you're not investing in yourself, you're falling behind.

My PureBasic StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Full source code of a internet page in Firefox

Post by Kwai chang caine »

Hello at all :D
First, thanks for yours answers 8)

@Bisonte
Yes, with him i'm sure to find all the HTML showing in the page 8)
But it's a pity that Mozilla never thinking to adding a "Save source" in this tools, it's surely very simple for do that :|
And a new time, i'm surprising to be the only one to need this option :oops:

@Plouf
Thanks for this tips 8)
I don't know how i can do for have the full text with Wget, but there are surely examples on the NET :wink:
Your idea give to me an another, perhaps also Firefox in "headless mode" :idea:
But like Wget, i don't know how do that ...it's a way to excavate :D

@TassyJim
I have do your tips, and you have right apparently there are numerous files :shock:
The problem is the time and the difficulty for reconstitute the full code :shock:
It's all the more frustrating because we have this complete code in front of us, in the inspector, without being able to catch it. :twisted:

@JhpJhp
Either way I'm surprised I haven't heard from you directly.
For all say to you, i have see all this miraculous code you create, and also the others codes with WebViewGadget, etc..finally all the codes about this magical Chromium
But you forget that KCC is "one neuronal equipped" :oops:
There are so many examples, of several technology that i'm really lost in all that :oops:

My dream since ten years has always been to remote Firefox as it was possible to control internet explorer with its OLE : "Simple to understand and use" 8)
I always regretted that MOZILLA did not make a system like MICROSOFT did by using COM :|
It seems that he had initially created this style of commands, but that he had abandoned it later :twisted:

I tried many methods over the years, that more or less worked to achieve my dream (Adding MozRepl addon or others, i have even create my own addon for inject JS since Mozilla delete the possiblility to send directly JS in the URL, Using Python controlled by PB, Sending message to Scratchpad (removed by Mozilla in version 72), Controlling the "GeckoDriver" engine, Using SELENIUM, Try to create PROXY, and numerous other methods again who not working....)
So, when I saw yours jewels although and i did not really understand what it was, I search and read on the internet that Firefox did not use CHROMIUM, so once again, I told myself that it was not for me :|

I searched since all this years to do scrapping with PB and Firefox, in one word fully remote the navigator and mainly the webpage on it
Because the problem is often the page need to connect with login and password, and it's impossible to access to the page without connecting :|
This is the reason why after ten years of research i have abandoned, because i'm tired to have amazing enjoy :D folowing too much often by deep sadness :|

PS: i have see just now, someone have thinking to recreate the Scratchpad that Mozilla have deleted :shock: maybe again a way to study :D
https://addons.mozilla.org/fr/firefox/addon/scratchpad/
ImageThe happiness is a road...
Not a destination
User avatar
JHPJHP
Addict
Addict
Posts: 2250
Joined: Sat Oct 09, 2010 3:47 am

Re: Full source code of a internet page in Firefox

Post by JHPJHP »

Hi Kwai chang caine,
Kwai chang caine wrote:I search and read on the internet that Firefox did not use CHROMIUM
Wow, ok, the internet... I've been interfacing with Mozilla Firefox for two years using my Chromium Framework.
Programs demonstrating this were available from my website all through 2023.
Kwai chang caine wrote:There are so many examples, of several technology that i'm really lost in all that
OLE and COM through PureBasic is clumsy with a wide learning curve, the Chromium Framework would require a single function call.

Anyway, good luck, I hope you find a solution that meets your requirements.

If you're not investing in yourself, you're falling behind.

My PureBasic StuffFREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Full source code of a internet page in Firefox

Post by Kwai chang caine »

Wow, ok, the internet...
It must be said that when we read "CHROMIUM" we think of Chrome, at worst Opera, Brave, etc...but especially not Firefox or Edge
I've been interfacing with Mozilla Firefox for two years using my Chromium Framework.
I take a look to your jewel now i know he is "Firefox compatible" :wink:
For say to you, i was so desperate there are several years of that, I even went so far as to modify the JS integrated into the FF source code and managed to recompile it. :shock:
I couldn't believe it myself because I didn't understand what I was doing, but I had a new FF in which I had removed lots of protections :lol:
Anyway, good luck, I hope you find a solution that meets your requirements.
Luck... I would need it, for sure
But what I would have needed for years, is your knowledge and your level of programming, because even without luck, FIREFOX would have been eating out of my hand for a long time :lol:

Image

Thanks a lot JhpJhp for your precious advice 8)
ImageThe happiness is a road...
Not a destination
Post Reply