mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-04 07:45:26 +01:00 
			
		
		
		
	v2.8: arkenfox
This commit is contained in:
		
							
								
								
									
										14
									
								
								updater.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								updater.sh
									
									
									
									
									
								
							@@ -1,8 +1,8 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
## ghacks-user.js updater for macOS and Linux
 | 
			
		||||
## arkenfox user.js updater for macOS and Linux
 | 
			
		||||
 | 
			
		||||
## version: 2.7
 | 
			
		||||
## version: 2.8
 | 
			
		||||
## Author: Pat Johnson (@overdodactyl)
 | 
			
		||||
## Additional contributors: @earthlng, @ema-pe, @claustromaniac
 | 
			
		||||
 | 
			
		||||
@@ -55,14 +55,14 @@ show_banner () {
 | 
			
		||||
  echo -e "${BBLUE}
 | 
			
		||||
                ############################################################################
 | 
			
		||||
                ####                                                                    ####
 | 
			
		||||
                ####                           ghacks user.js                           ####
 | 
			
		||||
                ####                          arkenfox user.js                          ####
 | 
			
		||||
                ####       Hardening the Privacy and Security Settings of Firefox       ####
 | 
			
		||||
                ####           Maintained by @Thorin-Oakenpants and @earthlng           ####
 | 
			
		||||
                ####            Updater for macOS and Linux by @overdodactyl            ####
 | 
			
		||||
                ####                                                                    ####
 | 
			
		||||
                ############################################################################"
 | 
			
		||||
  echo -e "${NC}\n"
 | 
			
		||||
  echo -e "Documentation for this script is available here: ${CYAN}https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts${NC}\n"
 | 
			
		||||
  echo -e "Documentation for this script is available here: ${CYAN}https://github.com/arkenfox/user.js/wiki/3.3-Updater-Scripts${NC}\n"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#########################
 | 
			
		||||
@@ -195,7 +195,7 @@ update_updater () {
 | 
			
		||||
    return 0 # User signified not to check for updates
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  declare -r tmpfile="$(download_file 'https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/updater.sh')"
 | 
			
		||||
  declare -r tmpfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/updater.sh')"
 | 
			
		||||
  [ -z "${tmpfile}" ] && echo -e "${RED}Error! Could not download updater.sh${NC}" && return 1 # check if download failed
 | 
			
		||||
 | 
			
		||||
  if [[ $(get_updater_version "${SCRIPT_DIR}/updater.sh") < $(get_updater_version "${tmpfile}") ]]; then
 | 
			
		||||
@@ -250,7 +250,7 @@ remove_comments () { # expects 2 arguments: from-file and to-file
 | 
			
		||||
 | 
			
		||||
# Applies latest version of user.js and any custom overrides
 | 
			
		||||
update_userjs () {
 | 
			
		||||
  declare -r newfile="$(download_file 'https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js')"
 | 
			
		||||
  declare -r newfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/user.js')"
 | 
			
		||||
  [ -z "${newfile}" ] && echo -e "${RED}Error! Could not download user.js${NC}" && return 1 # check if download failed
 | 
			
		||||
 | 
			
		||||
  echo -e "Please observe the following information:
 | 
			
		||||
@@ -370,7 +370,7 @@ if [ $# != 0 ]; then
 | 
			
		||||
          ESR=true
 | 
			
		||||
          ;;
 | 
			
		||||
        r)
 | 
			
		||||
          tfile="$(download_file 'https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js')"
 | 
			
		||||
          tfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/user.js')"
 | 
			
		||||
          [ -z "${tfile}" ] && echo -e "${RED}Error! Could not download user.js${NC}" && exit 1 # check if download failed
 | 
			
		||||
          mv $tfile "${tfile}.js"
 | 
			
		||||
          echo -e "${ORANGE}Warning: user.js was saved to temporary file ${tfile}.js${NC}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user