mirror of
https://github.com/arkenfox/user.js.git
synced 2026-06-15 17:02:33 +05:30
Compare commits
85 Commits
v58.0-alpha
...
59.0
| Author | SHA1 | Date | |
|---|---|---|---|
| c62bff5c70 | |||
| 3bae3ed5ba | |||
| aa91ea1680 | |||
| d244198438 | |||
| 871e7ed87b | |||
| 48901d156a | |||
| 8b4e6c95aa | |||
| fd1aa74ff3 | |||
| b3e92ab7cc | |||
| 30fbaba4df | |||
| 72e1858926 | |||
| 3ad6ed465e | |||
| 3fcad90996 | |||
| 383b8ca943 | |||
| 6a98aa7ba0 | |||
| 2037449fbd | |||
| e18bd0f32c | |||
| 715fff06cf | |||
| 3675a68009 | |||
| 062dd6c023 | |||
| bc17b4e450 | |||
| 682e12fe57 | |||
| 6cb27ca78c | |||
| c38ae56232 | |||
| 04f1449003 | |||
| 53a69ff5bc | |||
| e8c02278eb | |||
| 457611f079 | |||
| 09aca71822 | |||
| f90193ab76 | |||
| ffced9b4c0 | |||
| 0b3395b520 | |||
| d4a20165ef | |||
| 089f0826cf | |||
| b83d53e681 | |||
| 14456b5a29 | |||
| 517e40703f | |||
| 7f7282a975 | |||
| 6fd415eab2 | |||
| d4083e6a3e | |||
| 3192027f52 | |||
| 2a402310cc | |||
| 1469e13df8 | |||
| 92585ecd93 | |||
| 205d64ab29 | |||
| 3812aed9e9 | |||
| a83f5a0f5f | |||
| 19c40eeb18 | |||
| 61d2b46a02 | |||
| b93c7e026c | |||
| ec687cad75 | |||
| 6b691ae7e3 | |||
| 40da3653d3 | |||
| 77a5894fa0 | |||
| 11bcf46063 | |||
| 2dd2f5febe | |||
| 2de13258ff | |||
| 40391a26a2 | |||
| 50186412e4 | |||
| 9892c3cbb7 | |||
| 887e93a4f2 | |||
| 7f1a82365c | |||
| 8996071cd0 | |||
| cc166b8091 | |||
| 0260176fef | |||
| 09e2b181e4 | |||
| 4dafbb89df | |||
| 5e08ad8c60 | |||
| 6366ab8afc | |||
| 2980073bca | |||
| e8b9f72885 | |||
| b502317caf | |||
| 5385b8c4ab | |||
| 17fe261170 | |||
| 3d5276484a | |||
| 542b814814 | |||
| 0473c73860 | |||
| a6fd4d1db1 | |||
| 95251e98da | |||
| 08a5410b88 | |||
| 93a8f89191 | |||
| 4fdf322193 | |||
| ca11a88189 | |||
| a290b3ad3d | |||
| d924c01518 |
@@ -1,5 +1,5 @@
|
||||
|
||||
/*** ghacks-user.js troubleshooter.js v1.4 ***/
|
||||
/*** ghacks-user.js troubleshooter.js v1.5 ***/
|
||||
|
||||
(function() {
|
||||
|
||||
@@ -116,14 +116,6 @@
|
||||
/* Audio + Video */
|
||||
'dom.webaudio.enabled',
|
||||
'media.autoplay.enabled',
|
||||
'media.flac.enabled',
|
||||
'media.mp4.enabled',
|
||||
'media.ogg.enabled',
|
||||
'media.opus.enabled',
|
||||
'media.raw.enabled',
|
||||
'media.wave.enabled',
|
||||
'media.webm.enabled',
|
||||
'media.wmf.enabled',
|
||||
|
||||
/* Forms */
|
||||
'browser.formfill.enable',
|
||||
@@ -166,14 +158,6 @@
|
||||
'privacy.trackingprotection.enabled',
|
||||
'security.data_uri.block_toplevel_data_uri_navigations',
|
||||
|
||||
/* FF User-Interface */
|
||||
'browser.search.suggest.enabled',
|
||||
'browser.urlbar.autoFill',
|
||||
'browser.urlbar.autoFill.typed',
|
||||
'browser.urlbar.oneOffSearches',
|
||||
'browser.urlbar.suggest.searches',
|
||||
'keyword.enabled',
|
||||
|
||||
'last.one.without.comma'
|
||||
]
|
||||
|
||||
|
||||
+8
-14
@@ -3,7 +3,7 @@ TITLE ghacks user.js updater
|
||||
|
||||
REM ## ghacks-user.js updater for Windows
|
||||
REM ## author: @claustromaniac
|
||||
REM ## version: 4.3
|
||||
REM ## version: 4.4
|
||||
REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts
|
||||
|
||||
SET _myname=%~n0
|
||||
@@ -31,7 +31,6 @@ IF DEFINED _updateb (
|
||||
DEL /F "[updated]!_myname!.bat.old"
|
||||
CALL :message "Script updated^!"
|
||||
TIMEOUT 3 >nul
|
||||
CLS
|
||||
GOTO begin
|
||||
)
|
||||
REM ## Phase 1 ##
|
||||
@@ -42,15 +41,13 @@ IF DEFINED _updateb (
|
||||
REM Uncomment the next line and comment the powershell call for testing.
|
||||
REM COPY /B /V /Y "!_myname!.bat" "[updated]!_myname!.bat"
|
||||
(
|
||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/ghacksuserjs/ghacks-user.js/raw/master/updater.bat', '[updated]!_myname!.bat')"
|
||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/updater.bat', '[updated]!_myname!.bat')"
|
||||
) >nul 2>&1
|
||||
IF EXIST "[updated]!_myname!.bat" (
|
||||
START /min CMD /C "[updated]!_myname!.bat" !_myparams!
|
||||
EXIT /B
|
||||
) ELSE (
|
||||
CALL :message "Failed. Make sure PowerShell is allowed internet access."
|
||||
TIMEOUT 120 >nul
|
||||
EXIT /B
|
||||
)
|
||||
) ELSE (
|
||||
IF "!_myname!"=="[updated]" (
|
||||
@@ -68,16 +65,17 @@ IF DEFINED _updateb (
|
||||
COPY /B /V /Y "!_myname!.bat" "!_myname:~9!.bat"
|
||||
START CMD /C "!_myname:~9!.bat" !_myparams!
|
||||
)
|
||||
EXIT /B
|
||||
)
|
||||
EXIT /B
|
||||
)
|
||||
:begin
|
||||
CLS
|
||||
ECHO:
|
||||
ECHO:
|
||||
ECHO: ########################################
|
||||
ECHO: #### user.js Updater for Windows ####
|
||||
ECHO: #### by claustromaniac ####
|
||||
ECHO: #### v4.3 ####
|
||||
ECHO: #### v4.4 ####
|
||||
ECHO: ########################################
|
||||
ECHO:
|
||||
SET /A "_line=0"
|
||||
@@ -118,12 +116,12 @@ IF DEFINED _log (
|
||||
:log
|
||||
SET _log=2
|
||||
ECHO:##################################################################
|
||||
CALL :message "%date%, %time%"
|
||||
ECHO: %date%, %time%
|
||||
)
|
||||
IF EXIST user.js.new (DEL /F "user.js.new")
|
||||
CALL :message "Retrieving latest user.js file from github repository..."
|
||||
(
|
||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/ghacksuserjs/ghacks-user.js/raw/master/user.js', 'user.js.new')"
|
||||
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js', 'user.js.new')"
|
||||
) >nul 2>&1
|
||||
IF EXIST user.js.new (
|
||||
IF DEFINED _multi (
|
||||
@@ -140,7 +138,6 @@ IF EXIST user.js.new (
|
||||
COPY /B /V /Y user.js.new+"user.js-overrides\*.js" user.js.new
|
||||
)
|
||||
) ELSE (CALL :message "No override files found.")
|
||||
ECHO:
|
||||
) ELSE (
|
||||
IF EXIST "user-overrides.js" (
|
||||
COPY /B /V /Y user.js.new+"user-overrides.js" "user.js.new"
|
||||
@@ -151,7 +148,6 @@ IF EXIST user.js.new (
|
||||
CALL :message "user-overrides.js appended."
|
||||
)
|
||||
) ELSE (CALL :message "user-overrides.js not found.")
|
||||
ECHO:
|
||||
)
|
||||
IF EXIST user.js (
|
||||
FC user.js.new user.js >nul && SET "_changed=false" || SET "_changed=true"
|
||||
@@ -174,10 +170,9 @@ IF EXIST user.js.new (
|
||||
CALL :message "Update complete."
|
||||
)
|
||||
)
|
||||
ECHO:
|
||||
) ELSE (
|
||||
CALL :message "Update failed. Make sure PowerShell is allowed internet access."
|
||||
ECHO: No changes were made.
|
||||
ECHO: No changes were made.
|
||||
)
|
||||
IF NOT DEFINED _log (
|
||||
IF NOT DEFINED _ua (PAUSE)
|
||||
@@ -257,7 +252,6 @@ CALL :message " -updatebatch"
|
||||
ECHO: Update the script itself on execution, before the normal routine.
|
||||
CALL :message ""
|
||||
PAUSE
|
||||
CLS
|
||||
MODE 80,25
|
||||
GOTO :begin
|
||||
REM #####################################
|
||||
|
||||
Reference in New Issue
Block a user