Android-開いているすべてのFirefoxタブをテキストファイルにエクスポートするにはどうすればよいですか?



Android How Can I Export All My Open Firefox Tabs Text File



解決:

オン アンドロイド 使用できるシステム Termux (( 番号 ルートが必要です):

  1. FirefoxでURLに移動します。file:///data/data/org.mozilla.firefox/files/mozilla/
  2. のリンクを選択してください***。プロファイルのデフォルトフォルダ
  3. を選択してくださいsessionstore.jsファイル
  4. このファイルの内容をコピーして保存しますローカルストレージ上のsessionstore.jsファイル
  5. Termuxでコマンドを実行して、タブのURLを出力します。



    cat ~/storage/shared/sessionstore.js | sed -n ' [email protected] {'url':'@& [email protected] ; [email protected] ','title'@ [email protected] ' | sed '/^[:{]'/d'  

    Or, this command to save your tabs urls in file sessionstore.txt on your local storage:

    cat ~/storage/shared/sessionstore.js | sed -n ' [email protected] {'url':'@& [email protected] ; [email protected] ','title'@ [email protected] ' | sed '/^[:{]'/d' > ~/storage/shared/sessionstore.txt 

Note : this solution requires a rooted Android.

In a terminal emulator app, execute:

(Requires Busybox if running Android 5.1.1 or below. For Marshmallow, remove the term busybox from the following command.)

su content query --uri content://org.mozilla.firefox.db.tabs/tabs/ --projection url | busybox cut -d '=' f 2 > /sdcard/firefox_tabs.txt 

2番目のコマンドの説明:

  • コンテンツクエリ:コンテンツプロバイダーにクエリを実行します
  • org.mozilla.firefox.db.tabs:Firefoxのコンテンツプロバイダー。
  • --projection url:からのデータを一覧表示しますURL列のみ

(画像をクリックすると拡大します)

IMG:

またはあなたが持っている場合Androidのsqlite3ツールを使用すると、次のことができます。

su sqlite3 /data/data/org.mozilla.firefox/files/mozilla/*.default/browser.db 'SELECT url FROM tabs ORDER BY position' > /sdcard/firefox_tabs.txt 

Firefoxプロファイルが1つあり、その名前は変更されていないと仮定しました。マルチプロファイルを設定している場合、またはプロファイルの名前を変更した場合は、代わりに* .defaultは、リストに表示するタブのプロファイルの正しい名前を提供します。


どうやらタブバックアップと呼ばれるAndroid固有のFirefoxブラウザプラグインがあります。これは魅力のように機能するようです!テキストファイルをに配置します/ storage / emulated / 0 / Android / tabs_backup /( 別名。 / sdcard / Android / tabs_backup /)と呼ばれるbackup_DDMMYYY_hhmmss.txt。

ただし、コマンドラインからこれを行う方法を知ることは依然として興味深いでしょう。


アップデート: 2018-08-15

しばらく前から、 タブのバックアップ 最近のバージョンのAndroidFirefoxでは機能しなくなりました。代わりに、TabsExportを使用してください。タブをインポートするには、別のプラグインも必要です。