mirror of
https://github.com/arkenfox/user.js.git
synced 2025-11-22 08:25:17 +01:00
Compare commits
58 Commits
v58.0-alph
...
v59.0-alph
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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'
|
||||
]
|
||||
|
||||
|
||||
20
updater.bat
20
updater.bat
@@ -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
|
||||
)
|
||||
)
|
||||
: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,7 +170,6 @@ 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.
|
||||
@@ -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