![]() Combining the commands withīash expansion results in the following: sed -n "$(python2 <<< $'import json\nf = open("/home/username/.mozilla/firefox/RANDOM.profile/sessionstore.js", "r")\njdata = json.loads(f.read())\nf.close()\nprint str(jdata)')p" <(python2 <<< $'import json\nf = open("/home/username/.mozilla/firefox/RANDOM.profile/sessionstore.js", "r")\njdata = json.loads(f.read())\nf.close()\nfor win in jdata.get("windows"):\n\tfor tab in win.get("tabs"):\n\t\ti = tab.get("index") - 1\n\t\tprint tab.get("entries"). If Firefox crashes a second time, the Restore Session page will appear when you next launch Firefox. sed -n "3p" file prints line 3 from file. Printing that line number from all open tab url's gives you the current open Get the current active/open tab number: python2 <<< $'import json\nf = open("/home/username/.mozilla/firefox/RANDOM.profile/sessionstore.js", "r")\njdata = json.loads(f.read())\nf.close()\nprint str(jdata)' Get all the open tabs: python2 <<< $'import json\nf = open("/home/username/.mozilla/firefox/RANDOM.profile/sessionstore.js", "r")\njdata = json.loads(f.read())\nf.close()\nfor win in jdata.get("windows"):\n\tfor tab in win.get("tabs"):\n\t\ti = tab.get("index") - 1\n\t\tprint tab.get("entries").get("url")' With this referral link you'll get $100 credit for 60 days. ![]() You can also sponsor me by getting a Digital Ocean VPS. It means the world to me if you show your appreciation and you'll help pay the server costs. Firefox about:config pages requires you to accept the risk before making any change. Go check it out!Ĭonsider sponsoring me on Github. Change HTTP referrer settings in Firefox. For each target domain, one of five actions can be configured: Prune: Send only the origin part of the Referer (scheme, host, and port) Target: Send the origin of the target URL (scheme, host, and port) as Referer. I'm developing an open source monitoring app called Leaf Node Monitoring, for windows, linux
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |