Let's say you have a few million tabs open in your mobile Chrome browser, because you never close anything, but now your browser is getting slow and laggy.
Another fix for this specifically is to use Firefox onn Android, which does something like a suspend on inactive tabs. In my experience this completely fixes the "slow and laggy" aspect even with hundreds of suspended tabs.
Of course then you don't have a list of all your tabs, which is a useful resource you might want to create anyway.
Chrome actually stays pretty responsive in most circumstances (I think it does a similar thing with inactive tabs), with the crucial exception of the part of the UI that shows you all your open tabs in a scrollable list. It also gets slower to start up.
FYI, in ther answer you linked to, there is another, way easier way of doing it (& it worked for me):
tl;dr:
- have the Android command line tools installed on a development machine, and USB debugging enabled on your device. The device does not need to be rooted
adb forward tcp:9222 localabstract:chrome_devtools_remote
wget -O tabs.json http://localhost:9222/json/list
Let's say you have a few million tabs open in your mobile Chrome browser, because you never close anything, but now your browser is getting slow and laggy. You want to stick the URLs of those tabs somewhere for safekeeping so that you can close them all.
There's a lot of advice on doing this on the Internet, most of which doesn't work.
Here's a method that does work. It's a bit of a hack, but gives good results:
sudo apt install android-tools-adb android-tools-fastboot
adb device
<body>
, then<div id="container">
, then<div id="content">
, then<div id="devices" class="selected">
. Right click that last one and Copy -> Copy element.xclip
instead.sudo apt install xclip
xclip -selection c -o > my_tabs_file
to put that huge HTML element in a file.cat my_tabs_file | sed "s/<div/\n<div/g" > my_better_tabs_file
ValueError
or the file doesn't look right, please tell me!phone_tabs_list.html
(or whatever you named it) in your desktop browser of choice. Confirm that it has a bunch of page titles and clickable URLs.