Viser spørgsmål med mærkatet: Vis alle spørgsmål

Automatically download and save URL to File (like open Website in Firefox and save it there) - Java must work -

Hi I need to download Websites automatically via Batch exaktly like the Browser would save them via Strg+S. I used curl to do that and it worked fine for many years but… (læs mere)

Hi

I need to download Websites automatically via Batch exaktly like the Browser would save them via Strg+S.

I used curl to do that and it worked fine for many years but now the Source-Website has changed and so curl is no longer able to get the content. The problem is that the URL / Website that the Browser downloads does not contain the information. This is loaded later by a java script.

So when I open the URL in the Browser and look at the Source-Code I can see something like

 <script src="/example.js"></script>


When I press Strg+S to save the website the whole site is saved, because the java script was executed by the Browser. Curl does not process java so it saves only the source code with the "<script src="/example.js"></script>"

Question is: How can I download the URL directly with the Java Script executed so that the informaion is included too ?

I hope anybody can answer that.

Thank you.

Stillet af nicommander for for 2 måneder siden

Here's working C# source code to open and arrange 3 Firefox browsers on a 4K monitor wtih Windows

modify to suit your tastes or improve it? working now without any known issues. using System.Diagnostics; using System.Runtime.InteropServices; using System.Text; name… (læs mere)

modify to suit your tastes or improve it? working now without any known issues.

using System.Diagnostics; using System.Runtime.InteropServices; using System.Text;

namespace FirefoxWindowPositioner {

   class Program {
       [DllImport("user32.dll", SetLastError = true)]
       private static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern bool EnumWindows(EnumWindowsProc lpEnumFunc, IntPtr lParam);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
       [DllImport("user32.dll")]
       [return: MarshalAs(UnmanagedType.Bool)]
       private static extern bool IsWindowVisible(IntPtr hWnd);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
       [DllImport("user32.dll", SetLastError = true)]
       private static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);
       private const uint GW_OWNER = 4;
       private const int MaxRetries = 100;
       private const int SleepTime = 200;
       private const string ClassNameToFind = "MozillaWindowClass";
       private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
       private static IntPtr foundWindowHandle = IntPtr.Zero;
       private static bool EnumWindowsCallback(IntPtr hWnd, IntPtr lParam) {
           uint processId;
           GetWindowThreadProcessId(hWnd, out processId);
           if (IsWindowVisible(hWnd) && GetWindow(hWnd, GW_OWNER) == IntPtr.Zero) {
               StringBuilder className = new StringBuilder(256);
               GetClassName(hWnd, className, className.Capacity);
               if (className.ToString() == ClassNameToFind) {
                   foundWindowHandle = hWnd;
                   Console.WriteLine($"Found window handle {hWnd} for process ID {processId}");
                   return false; // Stop enumerating windows once the desired window is found
               }
           }
           return true; // Continue enumerating windows
       }
       static void Main(string[] args) {
           string path = @"C:\Program Files\Mozilla Firefox\firefox.exe";
           // Define positions and sizes
           int[,] positions = new int[,]
           {
               {0, 0, 1284, 2120},
               {1280, 0, 1284, 2120},
               {2560, 0, 1284, 2120}
           };
           int initialDelay = 750; // Initial delay in milliseconds, 1000 worked
           int retryDelay = 200; // Delay between retries in milliseconds
           // Start three Firefox processes sequentially and move them to specified positions
           for (int i = 0; i < 3; i++) {
               Process firefoxProcess = Process.Start(path);
               Thread.Sleep(initialDelay); // Wait for the process to initialize
               foundWindowHandle = IntPtr.Zero;
               int retries = 0;
               while (foundWindowHandle == IntPtr.Zero && retries < MaxRetries) {
                   EnumWindows(EnumWindowsCallback, IntPtr.Zero);
                   if (foundWindowHandle == IntPtr.Zero) {
                       Thread.Sleep(retryDelay); // Wait before retrying
                       retries++;
                   }
               }
               if (foundWindowHandle != IntPtr.Zero) {
                   bool success = MoveWindow(foundWindowHandle, positions[i, 0], positions[i, 1], positions[i, 2], positions[i, 3], true);
                   if (success) {
                       Console.WriteLine($"Moved window {i + 1} to X: {positions[i, 0]}, Y: {positions[i, 1]}, Width: {positions[i, 2]}, Height: {positions[i, 3]}");
                   } else {
                       Console.WriteLine($"Failed to move window {i + 1}");
                   }
               } else {
                   Console.WriteLine($"Failed to get handle for Firefox process {i + 1}");
               }
           }
       }
   }

}

Stillet af FireFoxCustomWannabe for for 2 måneder siden

cannot log into my yahoo mail recently, it use to work fine

I get this error while trying to log into yahoo mail, I have cleared casche history. Secure Connection Failed An error occurred during a connection to guce.yahoo.com. P… (læs mere)

I get this error while trying to log into yahoo mail, I have cleared casche history.

Secure Connection Failed

An error occurred during a connection to guce.yahoo.com. PR_END_OF_FILE_ERROR

Error code: PR_END_OF_FILE_ERROR

   The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
   Please contact the website owners to inform them of this problem.

Stillet af faulhaberfrank for for 2 måneder siden

Seneste svar af jonzn4SUSE for for 2 måneder siden

Can I create a bookmark for Help->About Firefox?

I know it takes just two mouse clicks to open the About dialog, but I'd like to bookmark it so when I check my daily bookmarks by right-clicking a folder and clicking "Op… (læs mere)

I know it takes just two mouse clicks to open the About dialog, but I'd like to bookmark it so when I check my daily bookmarks by right-clicking a folder and clicking "Open All Bookmarks", it would be displayed. This would be a convenient, albeit forceful, way to keep Firefox up-to-date. The About dialog isn't modal, so that shouldn't be an issue.

Stillet af ForceRs for for 2 måneder siden

Seneste svar af TechHorse for for 2 måneder siden

  • Løst

When in a private window, How do you open a bookmark or link in a normal window?

If you are currently using a normal window then there are ways to open a bookmark or link in a private window. But if you are currently using a private window then how wo… (læs mere)

If you are currently using a normal window then there are ways to open a bookmark or link in a private window. But if you are currently using a private window then how would you open a bookmark or link in a normal window?

I have tried several things including pressing shift+enter or choosing "Open in new Window" from the context menu, but this just opens the bookmark or link in a new private window.

My current method is to copy the address of the bookmark or link then paste it into the address bar of a normal window.

But is there a more direct method of opening bookmarks or links in a normal window, if currently in a private window?

Thanks.

Stillet af TechHorse for for 2 måneder siden

Besvaret af cor-el for for 2 måneder siden

More upgrades apache code

Need help some one trying to make look crazy .there using there knowledge for there own evil ways.so please help thanks. … (læs mere)

Need help some one trying to make look crazy .there using there knowledge for there own evil ways.so please help thanks.

Stillet af Douglas for for 2 måneder siden

Need to hide "Browser is under remote control (Reason: Marionette)"

I am in need to develop Visual Studio Desktop Application for Windows, and open 1 website in InPrivate or incognito mode, that is achieve for Edge and Chrome browser and … (læs mere)

I am in need to develop Visual Studio Desktop Application for Windows, and open 1 website in InPrivate or incognito mode, that is achieve for Edge and Chrome browser and able to hide "Browser is under remote control", but can't able to figure out parameter or settings to do that for Firefox browser.

I am using Firefox 128.0 (64-bit) and Selenium WebDriver 4.22.0, Selenium.WebDriver.GeckoDriver 0.34.0.

I opened https://github.com/mozilla/geckodriver/issues/2186, and thought that, maybe there is any settings of Mozilla Firefox (about:profile), so ask here also.

Need your expert advice.

Regards,

Kamal Kiri

Stillet af Kamal Kiri for for 2 måneder siden

Want to download PDF documents into Google Drive

Using Firefox, I would like to download PDF documents that are online directly to a Google Drive folder. Is that possible with Firefox? Thanks in advance for a response! … (læs mere)

Using Firefox, I would like to download PDF documents that are online directly to a Google Drive folder. Is that possible with Firefox? Thanks in advance for a response!

Stillet af mitch32 for for 2 måneder siden

Firefox screenshot feature: How to prevent clicking from affecting page content when taking screenshots?

Hi there, I've noticed that since a certain update (1 - 2 months ago?), when using the Firefox screenshot feature (that is, using Shift + Command/Ctrl + S), clicking on … (læs mere)

Hi there,

I've noticed that since a certain update (1 - 2 months ago?), when using the Firefox screenshot feature (that is, using Shift + Command/Ctrl + S), clicking on webpage still has effect on the webpage itself: After pressing Shift + Command/Ctrl + S, so that the browser enters screenshot mode, I have to click on a certain area in order to orient the screenshot camera, then click somewhere again, in order to click the "Copy" or "Download" button when the screenshot is ready. If I remember right, these two click actions wouldn't influence the webpage itself at all in older versions of Firefox, because in the screenshot mode the interaction between webpage and mouse clicks was "blocked". However, this is not the case anymore. That means, the webpage could no more look like how it looked like at the moment I wanted to take the screenshot, due to the unblocked mouse click. Even though for most static pages it's not a big deal, for many dynamic pages like online games this is absolutely annoying. Any workaround?

Stillet af Lutalli for for 2 måneder siden

capture entire web page

i am trying to find out how to capture an entire web page. Appparently Edge provides such an option with a camera icon. How can i do a similar function in Firefox. Are th… (læs mere)

i am trying to find out how to capture an entire web page. Appparently Edge provides such an option with a camera icon. How can i do a similar function in Firefox. Are there add-ons perhaps?

Stillet af John for for 2 måneder siden

Seneste svar af cor-el for for 2 måneder siden

Get rid of Easy Login browser hacker

bold text My firefox browser has somehow gotten the Easy Login browser hacker, and it is causing me numerous problems including; A. It's icon is blocking part of my fire… (læs mere)

bold text My firefox browser has somehow gotten the Easy Login browser hacker, and it is causing me numerous problems including; A. It's icon is blocking part of my firefox screen; B. When I seek to go to an address, it opens a different address...

Stillet af giilll for for 2 måneder siden

  • Løst

F6 does not "Focus Search Field in Library" any longer?

Hello, when in the library, pressing F6 is meant to "Focus Search Field". This is documented at https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-ta… (læs mere)

Hello, when in the library, pressing F6 is meant to "Focus Search Field". This is documented at https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly

However, since a recent update this no longer works. Instead, pressing F6 now switches the keyboard focus to the lefthand tree pane. A further press of shift+tab is needed to move to the search box.

My questions are: Has F6 stopped jumping to the library search box for anyone else? If so, was this a deliberate design choice? Does anyone know of an alternate keyboard shortcut to jump to the searchbox? Finally, is there anyway to revert to the old F6 behaviour?

Even if you can only answer the first question that would help, so I can determine whether or not it is just my Firefox. Although I have already tested in a brand new profile with the same results.

Thanks.

Stillet af TechHorse for for 3 måneder siden

Besvaret af cor-el for for 3 måneder siden

I can't remove the fake "your computer is locked up" message, despite following advice.

I can't remove the fake "your computer is locked up" message, despite following advice on your and other sites. I even trashed Firefox, downloaded a new one, but on openi… (læs mere)

I can't remove the fake "your computer is locked up" message, despite following advice on your and other sites. I even trashed Firefox, downloaded a new one, but on opening it, scam message reappears. I haven't found any solutions in the on-line forums I looked at.

Stillet af Anthony Thompson for for 3 måneder siden

Seneste svar af cor-el for for 3 måneder siden

Firefox with Google Search - Icons below search bar (sometimes above I think)

Using the Firefox with Google search engine, and below it has several icons for direct links to urls. How do these links get there ? How do I delete one and repl… (læs mere)

Using the Firefox with Google search engine, and below it has several icons for direct links to urls.

How do these links get there ? How do I delete one and replace with another link ?

Thankyou

Charles

Stillet af Charlie Harris for for 3 måneder siden

Seneste svar af cor-el for for 3 måneder siden