Add list-firefox-bookmarks
This commit is contained in:
		
							parent
							
								
									4881aaea09
								
							
						
					
					
						commit
						ba99abe275
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		
							
								
								
									
										6
									
								
								list-firefox-bookmarks
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								list-firefox-bookmarks
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					# List Firefox bookmarks
 | 
				
			||||||
 | 
					places=~/.mozilla/firefox/*default*/places.sqlite
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# tags are parents with their parent = 4, so these have to be filtered
 | 
				
			||||||
 | 
					sqlite3 $places "select pl.url, b.title from moz_bookmarks as b join moz_bookmarks as pa on b.parent=pa.id join moz_places as pl on b.fk=pl.id where pa.parent != 4"
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue