Checking your browser before accessing We make your site slower, guaranteed!

Do you know that Cloudflare, which is supposed to make this website faster, actually adds up to 5 seconds of additional load time? 5 seconds is huge … | Read the rest of

magento2.3.1 – How to detect browser tab close event in jquery

How do I detect the browser event when the client closes the browser tab by clicking X in jquey?

I just want to show a popup to the client while closing the browser tab.

I have used the following code. But no luck




Even alert is also not displayed.
Please guide me to solve it.

jquery: automatic browser resizing with active item change

I need to activate the item by resizing the browser. I have the following code segment,

Here, if the web content is in the "Desktop" view, the desktop icon will be active, like the previous code segment. Your screenshot is below,

enter the image description here

Likewise, if I change the size of this content width range between the laptop window, then the "Laptop" icon will be active. I will not change this icon on click or event. Any CSS or jQuery code will be accepted to solve this problem.

Brave browser: switch between search engines on Android

I am using a brave browser on Android and I would like to know if there is a way to easily switch between search engines.

This feature exists for Firefox and Opera that provide small icons of different engines when typing in the search bar and you only have to click on the one you want to use.
Here is an example with Firefox
function screenshot in Firefox

For example, I am mainly using but I would like to use Google at some point.
I know I can add! G in duckduckgo, but I'm looking for something simpler.

Since Brave is based on Google Chrome, I suppose it explains why it is not implemented natively, but perhaps there is an alternative in Chrome that does the job in a brave browser.

javascript – memory management in the browser with every function invocation?

In trying to figure out how to more efficiently perform a series of repetitive steps, I find that I know very little about memory usage in a web browser. I've read about the garbage collector and memory leaks several times before, but it's still very little. The specific scenario I am interested in is as follows.

  1. A set of data objects is retrieved from indexedDB using a getAll statement about a key range. The data is all text and would never exceed 0.25MB and is probably always less than 0.1MB.
  2. The array of data objects is passed to a function that creates a node in a document fragment and replaces a node in the DOM.
  3. As the user modifies / adds / deletes the data, the state is saved in the database using a get/put sequence and a add if a new object is built. This is done on one object at a time, not on the entire array.
  4. When the user finishes, the next dataset is retrieved and the DOM node is replaced again. Users can navigate back and forth through the data packets they build.

After the new node is built, the variable containing the data object array is no longer used, and is set to null in an attempt to avoid possible memory leaks. But I started thinking about what really happens with that data and memory allocation every time functions are invoked.

Suppose the user quickly clicks on a series of data packets. Every time the data is retrieved and new nodes built and replaced in the DOM, the same memory space is used over and over again, or each invocation takes up more space, and the memory used in the previous invocations is then freed by the GC, such that quickly clicking ten nodes temporarily requires ten data nodes? I mean this includes all the data involved in these steps and not just the DOM node being replaced.

One of the reasons I am asking is that I was considering keeping the array of data objects in RAM and updating the objects as the user edits / compiles more objects, and then just using a put operation to save it to the database instead of a get/put sequence. And that made me wonder what happens if that array is kept in a property of one of the functions. Will the function property's data mapping be reused repeatedly with each new invocation, or will it also take up more space each time, until previous invocations are released?

I thought that maybe even when variables are set to null after new nodes are built, the GC can take time to free up memory anyway, so memory is always used and can also contain a package of data at a time and eliminate the need for a get and waiting for the onsuccess event to update the object and then put again

Of course, all this works very fast with the get/put sequence, but I would like to understand what is happening regarding memory; and, if setting variables to null and not keeping array in RAM really saves nothing, then there's no reason to use get, and the less work done can make it less likely that after a user works with this tool for an hour or two, there will be a memory problem.

Thank you for considering my rather newbie question.

I am working in a web browser and I want to implement a Google search bar or any other search engine. I am using Android Studio as IDE

enter the image description here

The image shows the type of search bar that I want to implement in my browser. I hope to find my solution as soon as possible.

google sheets – How to link a script I made in my PC browser to work in my mobile application

I have made a script, thanks to Tedinoz here.

Now I have also created a button using drawing and adding the script

That button shows up in my mobile app, but when I press it I only have the option to remove it so it doesn't run the script, there is a way to link it to make the button work in my mobile app (not a mobile browser?

My PC browser working script and button as seen in the mobile app are in the screenshot

enter the image description here

sandbox – How to build a similar browser "Browser in the Box"?

I'm studying cybersecurity and I'm trying to build a browser similar to Bitbox. Can experts help me with an idea? Thank you! [enter the image description here] 1

proxy: change third-party websites on Android devices without available browser extensions

I am looking for a way to change the behavior of some website in the mobile browser.

For example:

  • Delete annoying ads (a specific one)
  • Change some elements on a website, to make it easier to read on a small screen (change some CSS)
  • Have the site measure how much time I have spent on it and "prevent" it from using it longer per day than I have configured.

In desktop browser, I usually solve these tasks using extensions like TamperMonkey / GreasyMonkey (which allows me to add custom JavaScript code to the page and do what I want on the page), StayFocusd (to limit distractions) etc.

But most mobile browsers don't have extensions (and it's understandable because they often misspell and can consume too much CPU on not-so-powerful devices).

To be honest, Firefox for Android has plugins, but there are very few. Ad blocking, privacy, and some bug fixes only. No TamperMonkey / GreasyMonkey analog.

Also, I know UCBrowser has its extensions store, but my Chinese is bad, and the store is in Chinesse 🙂

I came up with the following idea:

  1. Set up my own DNS server and set up my Android to use it (now possible without root)

  2. Set up my own squid proxy server

  3. Create a self-signed SSL certificate and add it to my Android's certificate storage.

  4. For the sites where I want to do some augmentation, my DNS needs to supply the IP address of my squid proxy (which is using my self-signed certificate or generates certified sites for required sites, signed by my self-created authority certificate)

  5. The proxy should be loading the actual site and patching its html files, adding my JavaScript file on it.

  6. Therefore, you could change parts of the sites, remove ads, measure time spent, etc. Everything is possible!

I have knowledge and skills to do all the steps described (or it seems), BUT! I don't have enough free time.

I want to know, maybe there is something like this implemented in a single service?

Or maybe you could direct me to an easier solution of the problem?