metalx1000

Search through Brave Browser History and Open URL

Apr 23rd, 2020
982
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. ######################################################################
  3. #Copyright (C) 2020  Kris Occhipinti
  4. #https://filmsbykris.com
  5.  
  6. #sorts through your Brave Browser History and opens URL in browser
  7. #fzf is needed - apt install fzf
  8.  
  9. #This program is free software: you can redistribute it and/or modify
  10. #it under the terms of the GNU General Public License as published by
  11. #the Free Software Foundation, either version 3 of the License, or
  12. #(at your option) any later version.
  13.  
  14. #This program is distributed in the hope that it will be useful,
  15. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. #GNU General Public License for more details.
  18.  
  19. #You should have received a copy of the GNU General Public License
  20. #along with this program.  If not, see <http://www.gnu.org/licenses/>.
  21. ######################################################################
  22.  
  23. db="$HOME/.config/BraveSoftware/Brave-Browser/Default/History"
  24. url="$(strings "$db"|grep '^http'|sort -u|fzf)"
  25. xdg-open "$url"
RAW Paste Data