1
mirror of https://github.com/revanced/revanced-integrations synced 2025-11-19 03:23:27 +01:00

Compare commits

...

145 Commits

Author SHA1 Message Date
semantic-release-bot
e67f47876c chore(release): 0.31.2 [skip ci]
## [0.31.2](https://github.com/revanced/revanced-integrations/compare/v0.31.1...v0.31.2) (2022-08-08)

### Bug Fixes

* unintentional like button detection ([#119](https://github.com/revanced/revanced-integrations/issues/119)) ([f64b178](f64b17869e))
2022-08-08 16:27:36 +00:00
j4k0xb
f64b17869e fix: unintentional like button detection (#119) 2022-08-08 18:24:44 +02:00
pascua28
2a6d401df5 refactor: remove stray codec settings (#117) 2022-08-04 12:47:49 +02:00
semantic-release-bot
10f6d8e4ea chore(release): 0.31.1 [skip ci]
## [0.31.1](https://github.com/revanced/revanced-integrations/compare/v0.31.0...v0.31.1) (2022-08-03)

### Bug Fixes

* logic in `VideoAdsPatch` ([#116](https://github.com/revanced/revanced-integrations/issues/116)) ([f474541](f474541094))
2022-08-03 19:10:58 +00:00
epicsampler
f474541094 fix: logic in VideoAdsPatch (#116) 2022-08-03 21:07:31 +02:00
semantic-release-bot
8b2b00dd97 chore(release): 0.31.0 [skip ci]
# [0.31.0](https://github.com/revanced/revanced-integrations/compare/v0.30.4...v0.31.0) (2022-08-03)

### Features

* remove `ForceCodecPatch` ([#115](https://github.com/revanced/revanced-integrations/issues/115)) ([532de7e](532de7e9a1))
2022-08-03 18:44:30 +00:00
epicsampler
532de7e9a1 feat: remove ForceCodecPatch (#115) 2022-08-03 20:41:31 +02:00
semantic-release-bot
1cceb626fa chore(release): 0.30.4 [skip ci]
## [0.30.4](https://github.com/revanced/revanced-integrations/compare/v0.30.3...v0.30.4) (2022-07-31)

### Bug Fixes

* `sponsorblock` settings not getting saved ([#112](https://github.com/revanced/revanced-integrations/issues/112)) ([256302e](256302e914))
2022-07-31 19:27:05 +00:00
Joey Peter
256302e914 fix: sponsorblock settings not getting saved (#112) 2022-07-31 21:21:19 +02:00
semantic-release-bot
6eaf9fee65 chore(release): 0.30.3 [skip ci]
## [0.30.3](https://github.com/revanced/revanced-integrations/compare/v0.30.2...v0.30.3) (2022-07-31)

### Bug Fixes

* app crashes on first start ([#111](https://github.com/revanced/revanced-integrations/issues/111)) ([0f5e89c](0f5e89c5e3))
2022-07-31 19:00:50 +00:00
Joey Peter
0f5e89c5e3 fix: app crashes on first start (#111) 2022-07-31 20:57:56 +02:00
semantic-release-bot
28f1cd6529 chore(release): 0.30.2 [skip ci]
## [0.30.2](https://github.com/revanced/revanced-integrations/compare/v0.30.1...v0.30.2) (2022-07-31)

### Bug Fixes

* app crashes on reboot ([#110](https://github.com/revanced/revanced-integrations/issues/110)) ([0ccb35d](0ccb35db67))
2022-07-31 18:44:18 +00:00
Joey Peter
0ccb35db67 fix: app crashes on reboot (#110) 2022-07-31 20:41:07 +02:00
semantic-release-bot
d7833ec2e7 chore(release): 0.30.1 [skip ci]
## [0.30.1](https://github.com/revanced/revanced-integrations/compare/v0.30.0...v0.30.1) (2022-07-31)

### Bug Fixes

* sb does not turn off ([97c184b](97c184b5fb))
2022-07-31 11:47:22 +00:00
TheJeterLP
97c184b5fb fix: sb does not turn off 2022-07-31 13:44:29 +02:00
semantic-release-bot
a2a515d2d9 chore(release): 0.30.0 [skip ci]
# [0.30.0](https://github.com/revanced/revanced-integrations/compare/v0.29.0...v0.30.0) (2022-07-31)

### Features

* `settings` patch ([3e20696](3e206967b7))
2022-07-31 10:20:41 +00:00
Joey Peter
44b81eed45 build: trigger release 2022-07-31 12:17:51 +02:00
Joey Peter
cab5b4ee15 docs: change readme.md 2022-07-31 12:16:45 +02:00
oSumAtrIX
3e206967b7 feat: settings patch 2022-07-31 12:15:16 +02:00
TheJeterLP
02e37c8e9f refactor: remove unused file 2022-07-30 22:23:42 +02:00
TheJeterLP
aa5c0b0a7f refactor: remove moved res files 2022-07-30 22:08:13 +02:00
Joey Peter
4106e8a198 refactor: add debug log to SettingsFragment 2022-07-30 19:39:51 +02:00
Joey Peter
68e7bdf2e1 refactor: add missing settings to xml files and rewrite SetingsFragment 2022-07-30 19:33:07 +02:00
semantic-release-bot
b531dbd6ce chore(release): 0.29.0 [skip ci]
# [0.29.0](https://github.com/revanced/revanced-integrations/compare/v0.28.1...v0.29.0) (2022-07-28)

### Bug Fixes

* solution shouldn't be required ([#104](https://github.com/revanced/revanced-integrations/issues/104)) ([93a5edc](93a5edc2ba))

### Features

* toast notifications for `remember-quality` patch ([#106](https://github.com/revanced/revanced-integrations/issues/106)) ([35ee341](35ee3415f0))
2022-07-28 18:25:49 +00:00
Canny1913
35ee3415f0 feat: toast notifications for remember-quality patch (#106) 2022-07-28 20:22:18 +02:00
tillnelown
93a5edc2ba fix: solution shouldn't be required (#104) 2022-07-27 20:15:09 +02:00
oSumAtrIX
9c0ccb71bc docs: add missing . to issue description 2022-07-26 19:36:32 +02:00
semantic-release-bot
e8afd60b15 chore(release): 0.28.1 [skip ci]
## [0.28.1](https://github.com/revanced/revanced-integrations/compare/v0.28.0...v0.28.1) (2022-07-26)

### Bug Fixes

* `default-video-quality` patch crashing ([#100](https://github.com/revanced/revanced-integrations/issues/100)) ([c6b7528](c6b7528eae))
2022-07-26 17:35:48 +00:00
Canny1913
c6b7528eae fix: default-video-quality patch crashing (#100) 2022-07-26 19:32:53 +02:00
oSumAtrIX
17a291f430 docs: make form inputs required 2022-07-26 19:27:01 +02:00
oSumAtrIX
27d28600df docs: use GitHub issue forms 2022-07-26 19:25:10 +02:00
OxrxL
6c60a2d929 refactor: remove unused code in old-quality patch (#101) 2022-07-26 15:50:44 +02:00
semantic-release-bot
f9a137ca1f chore(release): 0.28.0 [skip ci]
# [0.28.0](https://github.com/revanced/revanced-integrations/compare/v0.27.6...v0.28.0) (2022-07-24)

### Features

* `default-video-quality` patch ([#95](https://github.com/revanced/revanced-integrations/issues/95)) ([f3ee6ce](f3ee6cec26))
2022-07-24 20:32:09 +00:00
Canny1913
f3ee6cec26 feat: default-video-quality patch (#95) 2022-07-24 22:28:38 +02:00
semantic-release-bot
234023f3f5 chore(release): 0.27.6 [skip ci]
## [0.27.6](https://github.com/revanced/revanced-integrations/compare/v0.27.5...v0.27.6) (2022-07-21)

### Bug Fixes

* wrong naming of ForceDisableCaptions ([#93](https://github.com/revanced/revanced-integrations/issues/93)) ([21d56f8](21d56f89b3))
2022-07-21 16:11:39 +00:00
TheJeterLP
21d56f89b3 fix: wrong naming of ForceDisableCaptions (#93) 2022-07-21 18:08:33 +02:00
semantic-release-bot
bb38026998 chore(release): 0.27.5 [skip ci]
## [0.27.5](https://github.com/revanced/revanced-integrations/compare/v0.27.4...v0.27.5) (2022-07-21)

### Bug Fixes

* rename DisableAutoCaptions patch ([#91](https://github.com/revanced/revanced-integrations/issues/91)) ([2890467](2890467ce1))
2022-07-21 16:00:02 +00:00
TheJeterLP
2890467ce1 fix: rename DisableAutoCaptions patch (#91) 2022-07-21 17:57:02 +02:00
semantic-release-bot
0ea0dbf7ce chore(release): 0.27.4 [skip ci]
## [0.27.4](https://github.com/revanced/revanced-integrations/compare/v0.27.3...v0.27.4) (2022-07-21)

### Bug Fixes

* disable-fullscreen-panels patch not working ([#90](https://github.com/revanced/revanced-integrations/issues/90)) ([e625a17](e625a17e99))
2022-07-21 04:18:30 +00:00
TheJeterLP
e625a17e99 fix: disable-fullscreen-panels patch not working (#90) 2022-07-21 06:15:09 +02:00
TheJeterLP
462e251342 refactor: cleanup code 2022-07-20 22:56:29 +02:00
TheJeterLP
7755118cca refactor: add needed method back 2022-07-20 22:38:34 +02:00
TheJeterLP
824bd14845 refactor: remove unused method 2022-07-20 22:33:52 +02:00
semantic-release-bot
47c1065241 chore(release): 0.27.3 [skip ci]
## [0.27.3](https://github.com/revanced/revanced-integrations/compare/v0.27.2...v0.27.3) (2022-07-19)

### Bug Fixes

* quick quality list flyout view visibility in `old-quality-layout` patch ([#86](https://github.com/revanced/revanced-integrations/issues/86)) ([996434c](996434c574))
2022-07-19 00:02:20 +00:00
OxrxL
996434c574 fix: quick quality list flyout view visibility in old-quality-layout patch (#86) 2022-07-19 01:58:49 +02:00
semantic-release-bot
5549b95825 chore(release): 0.27.2 [skip ci]
## [0.27.2](https://github.com/revanced/revanced-integrations/compare/v0.27.1...v0.27.2) (2022-07-18)

### Bug Fixes

* make all patches toggleable with settings ([#87](https://github.com/revanced/revanced-integrations/issues/87)) ([6d3d274](6d3d274599))
2022-07-18 21:02:24 +00:00
TheJeterLP
6d3d274599 fix: make all patches toggleable with settings (#87) 2022-07-18 22:59:36 +02:00
semantic-release-bot
0e01041ee3 chore(release): 0.27.1 [skip ci]
## [0.27.1](https://github.com/revanced/revanced-integrations/compare/v0.27.0...v0.27.1) (2022-07-18)

### Bug Fixes

* `swipe-controls` incompatible with `disable-fullscreen-panels` ([#88](https://github.com/revanced/revanced-integrations/issues/88)) ([1f9b01c](1f9b01c142))
2022-07-18 16:54:27 +00:00
Chris
1f9b01c142 fix: swipe-controls incompatible with disable-fullscreen-panels (#88)
* base swipe rect calculations on player surface bound
2022-07-18 18:51:44 +02:00
semantic-release-bot
5e04dfc3b2 chore(release): 0.27.0 [skip ci]
# [0.27.0](https://github.com/revanced/revanced-integrations/compare/v0.26.0...v0.27.0) (2022-07-17)

### Features

* better default settings for `sponsorblock` patch ([0a0101f](0a0101f35e))
* remove use of unused class `Dialogs` ([5a67ca2](5a67ca22b8))
2022-07-17 22:09:07 +00:00
oSumAtrIX
5a67ca22b8 feat: remove use of unused class Dialogs 2022-07-18 00:05:46 +02:00
oSumAtrIX
0a0101f35e feat: better default settings for sponsorblock patch 2022-07-18 00:05:45 +02:00
semantic-release-bot
21fed0ff81 chore(release): 0.26.0 [skip ci]
# [0.26.0](https://github.com/revanced/revanced-integrations/compare/v0.25.2...v0.26.0) (2022-07-17)

### Features

* block `channel-guidelines`. Fixes [#84](https://github.com/revanced/revanced-integrations/issues/84) ([#85](https://github.com/revanced/revanced-integrations/issues/85)) ([1c095f3](1c095f3003))
2022-07-17 14:44:48 +00:00
TheJeterLP
1c095f3003 feat: block channel-guidelines. Fixes #84 (#85) 2022-07-17 16:42:05 +02:00
semantic-release-bot
5dff1c09ba chore(release): 0.25.2 [skip ci]
## [0.25.2](https://github.com/revanced/revanced-integrations/compare/v0.25.1...v0.25.2) (2022-07-17)

### Bug Fixes

* rename class `ReturnYouTubeDislikesPatch` to `ReturnYouTubeDislikePatch` ([a94fb8c](a94fb8c119))
2022-07-17 14:32:16 +00:00
oSumAtrIX
a94fb8c119 fix: rename class ReturnYouTubeDislikesPatch to ReturnYouTubeDislikePatch 2022-07-17 16:29:35 +02:00
semantic-release-bot
69f9e63f83 chore(release): 0.25.1 [skip ci]
## [0.25.1](https://github.com/revanced/revanced-integrations/compare/v0.25.0...v0.25.1) (2022-07-17)

### Bug Fixes

* `old-quality-layout` patch ([5a5e882](5a5e8824c5))
2022-07-17 14:06:00 +00:00
oSumAtrIX
5a5e8824c5 fix: old-quality-layout patch 2022-07-17 16:02:51 +02:00
TheJeterLP
887bcff415 refactor: rename HDRMaxBrightnessPatch 2022-07-17 15:05:51 +02:00
oSumAtrIX
fb102cfafe style: naming for ReturnYouTubeDislike patch 2022-07-16 17:43:36 +02:00
semantic-release-bot
7e236b01fb chore(release): 0.25.0 [skip ci]
# [0.25.0](https://github.com/revanced/revanced-integrations/compare/v0.24.2...v0.25.0) (2022-07-16)

### Features

* `return-youtube-dislikes` patch ([#81](https://github.com/revanced/revanced-integrations/issues/81)) ([2d513b5](2d513b5100))
2022-07-16 14:53:26 +00:00
j4k0xb
2d513b5100 feat: return-youtube-dislikes patch (#81)
* feat: update dislike button text

* refactor(ryd): remove unused code

* refactor: create patch class for ryd

* refactor: move VideoInformation
2022-07-16 16:50:16 +02:00
TheJeterLP
508f49622c refactor: remove unused file 2022-07-14 23:06:55 +02:00
semantic-release-bot
d300cf0888 chore(release): 0.24.2 [skip ci]
## [0.24.2](https://github.com/revanced/revanced-integrations/compare/v0.24.1...v0.24.2) (2022-07-14)

### Bug Fixes

* set debug to false by default ([95b9406](95b9406701))
2022-07-14 16:47:50 +00:00
TheJeterLP
95b9406701 fix: set debug to false by default 2022-07-14 18:45:07 +02:00
TheJeterLP
ac9e239b16 refactor: prepare for settings patch (#80) 2022-07-14 18:42:43 +02:00
semantic-release-bot
ad1e42eb01 chore(release): 0.24.1 [skip ci]
## [0.24.1](https://github.com/revanced/revanced-integrations/compare/v0.24.0...v0.24.1) (2022-07-14)

### Bug Fixes

* `swipe-controls` with active engagement panel ([#82](https://github.com/revanced/revanced-integrations/issues/82)) ([669cb29](669cb295a1))
2022-07-14 15:21:45 +00:00
Chris
669cb295a1 fix: swipe-controls with active engagement panel (#82) 2022-07-14 17:18:53 +02:00
semantic-release-bot
2c2bdf6186 chore(release): 0.24.0 [skip ci]
# [0.24.0](https://github.com/revanced/revanced-integrations/compare/v0.23.2...v0.24.0) (2022-07-12)

### Features

* `force-vp9-codec` integrations ([#76](https://github.com/revanced/revanced-integrations/issues/76)) ([8a0029c](8a0029c81c))
2022-07-12 18:10:32 +00:00
TheJeterLP
8a0029c81c feat: force-vp9-codec integrations (#76) 2022-07-12 20:07:43 +02:00
semantic-release-bot
636fae622a chore(release): 0.23.2 [skip ci]
## [0.23.2](https://github.com/revanced/revanced-integrations/compare/v0.23.1...v0.23.2) (2022-07-12)

### Bug Fixes

* untangle RYD from SB. fixes [#79](https://github.com/revanced/revanced-integrations/issues/79) ([56eaef0](56eaef0670))
2022-07-12 15:51:38 +00:00
TheJeterLP
56eaef0670 fix: untangle RYD from SB. fixes #79 2022-07-12 17:48:28 +02:00
semantic-release-bot
9a5ed589d8 chore(release): 0.23.1 [skip ci]
## [0.23.1](https://github.com/revanced/revanced-integrations/compare/v0.23.0...v0.23.1) (2022-07-12)

### Bug Fixes

* crash when buffer value is less than 1 ([e2d9623](e2d962355c))
2022-07-12 15:45:20 +00:00
TheJeterLP
e2d962355c fix: crash when buffer value is less than 1 2022-07-12 17:42:06 +02:00
semantic-release-bot
5ff47b7fcc chore(release): 0.23.0 [skip ci]
# [0.23.0](https://github.com/revanced/revanced-integrations/compare/v0.22.1...v0.23.0) (2022-07-12)

### Bug Fixes

* use `getLong` instead of `getFloat` ([577a734](577a7348fe))
* wrong description for issue templates ([ea581d4](ea581d48e2))

### Features

* added issue templates. ([#77](https://github.com/revanced/revanced-integrations/issues/77)) ([51016ef](51016efcb7))
2022-07-12 01:21:03 +00:00
oSumAtrIX
577a7348fe fix: use getLong instead of getFloat 2022-07-12 03:17:33 +02:00
oSumAtrIX
feab35e76c docs: change size of headings [skip ci] 2022-07-12 01:12:06 +02:00
oSumAtrIX
ea581d48e2 fix: wrong description for issue templates 2022-07-11 20:49:53 +02:00
Aunali321
51016efcb7 feat: added issue templates. (#77) 2022-07-11 20:45:26 +02:00
semantic-release-bot
530949657f chore(release): 0.22.1 [skip ci]
## [0.22.1](https://github.com/revanced/revanced-integrations/compare/v0.22.0...v0.22.1) (2022-07-11)

### Bug Fixes

* `hdr-auto-brightness` patch ([#74](https://github.com/revanced/revanced-integrations/issues/74)) ([7314032](7314032a38))
2022-07-11 16:27:23 +00:00
Chris
7314032a38 fix: hdr-auto-brightness patch (#74) 2022-07-11 18:24:32 +02:00
semantic-release-bot
134d7e33bd chore(release): 0.22.0 [skip ci]
# [0.22.0](https://github.com/revanced/revanced-integrations/compare/v0.21.9...v0.22.0) (2022-07-11)

### Features

* `swipe-controls` rewrite ([#64](https://github.com/revanced/revanced-integrations/issues/64)) ([fcabebf](fcabebf3a7))
2022-07-11 12:32:26 +00:00
Chris
fcabebf3a7 feat: swipe-controls rewrite (#64)
* rewrite swipe controls without deep hooks
+ merge changes
+ refactor class names

* fix gesture detection behaviour

* add option to disable press-to-swipe

* add config options related to swipe

* restore default device brightness when exiting fullscreen player
fixes https://github.com/revanced/revanced-patches/issues/128

* set to default brightness after reaching 0%

* block swipe-to-dismiss when not using press-to-swipe

* fix: TouchThiefLayout potentially attaches multiple times

* remove last references to 'fenster' name

* move updatePlayerType hook into its own patch

* refactor 'swipe-controls' patch

* make feedback text backgrond semi-transparent

* update swipe-controls overlay

* fix swipe-controls leaking host activity context

* fix saved screen brightness resetting between videos

* fix crash on re-enter activity

* make overlay more configurable

* add settings to revanced_prefs.xml
2022-07-11 14:29:39 +02:00
semantic-release-bot
376ffc0844 chore(release): 0.21.9 [skip ci]
## [0.21.9](https://github.com/revanced/revanced-integrations/compare/v0.21.8...v0.21.9) (2022-07-08)

### Bug Fixes

* remove int argument from buffer functions ([#71](https://github.com/revanced/revanced-integrations/issues/71)) ([7de1994](7de199421c))
2022-07-08 21:09:51 +00:00
TheJeterLP
7de199421c fix: remove int argument from buffer functions (#71) 2022-07-08 23:06:37 +02:00
semantic-release-bot
e2a1bb7ce8 chore(release): 0.21.8 [skip ci]
## [0.21.8](https://github.com/revanced/revanced-integrations/compare/v0.21.7...v0.21.8) (2022-07-08)

### Bug Fixes

* Block some more movies in adblocker ([#69](https://github.com/revanced/revanced-integrations/issues/69)) ([391ce64](391ce64c25))
2022-07-08 07:39:03 +00:00
OxrxL
391ce64c25 fix: Block some more movies in adblocker (#69)
* browsy_bar block

* feat: add browsy block
2022-07-08 09:36:28 +02:00
TheJeterLP
f346ed6122 refactor: revert previous commit 2022-07-08 01:21:18 +02:00
TheJeterLP
4d12729306 refactor: downgrade gradle plugin so intellij can open the project 2022-07-08 01:00:34 +02:00
semantic-release-bot
9a8ddc9ca6 chore(release): 0.21.7 [skip ci]
## [0.21.7](https://github.com/revanced/revanced-integrations/compare/v0.21.6...v0.21.7) (2022-07-07)

### Bug Fixes

* enable wide-search-bar by default ([#67](https://github.com/revanced/revanced-integrations/issues/67)) ([fabc4e0](fabc4e0548))
2022-07-07 22:35:49 +00:00
TheJeterLP
fabc4e0548 fix: enable wide-search-bar by default (#67) 2022-07-08 00:32:29 +02:00
TheJeterLP
7f64a8bcab docs(debugging): Show how to use the debug logger 2022-07-07 18:58:09 +02:00
semantic-release-bot
1f29541aa7 chore(release): 0.21.6 [skip ci]
## [0.21.6](https://github.com/revanced/revanced-integrations/compare/v0.21.5...v0.21.6) (2022-07-07)

### Bug Fixes

* use Log.d for debugging ([#66](https://github.com/revanced/revanced-integrations/issues/66)) ([605124b](605124bc60))
2022-07-07 16:54:18 +00:00
TheJeterLP
605124bc60 fix: use Log.d for debugging (#66) 2022-07-07 18:50:42 +02:00
semantic-release-bot
f74a11523f chore(release): 0.21.5 [skip ci]
## [0.21.5](https://github.com/revanced/revanced-integrations/compare/v0.21.4...v0.21.5) (2022-07-07)

### Bug Fixes

* don't enable debug log by default ([bf7f138](bf7f138615))
2022-07-07 09:47:34 +00:00
TheJeterLP
bf7f138615 fix: don't enable debug log by default 2022-07-07 11:44:48 +02:00
semantic-release-bot
f29c608808 chore(release): 0.21.4 [skip ci]
## [0.21.4](https://github.com/revanced/revanced-integrations/compare/v0.21.3...v0.21.4) (2022-07-06)

### Bug Fixes

* change overlay time of swipe-controls ([#60](https://github.com/revanced/revanced-integrations/issues/60)) ([7da963c](7da963cf8e))
2022-07-06 20:38:59 +00:00
EXAM454
7da963cf8e fix: change overlay time of swipe-controls (#60)
* Update FensterOverlayController.kt

change overlay time to 250ms for fast volume & brightness panel switch. Also 2sec is iritating.

* Update FensterOverlayController.kt
2022-07-06 22:36:12 +02:00
semantic-release-bot
d7161938f3 chore(release): 0.21.3 [skip ci]
## [0.21.3](https://github.com/revanced/revanced-integrations/compare/v0.21.2...v0.21.3) (2022-07-06)

### Bug Fixes

* Reduce padding DPI for swipe zones ([b944f6b](b944f6bd59))
2022-07-06 18:26:20 +00:00
EXAM454
b944f6bd59 fix: Reduce padding DPI for swipe zones 2022-07-06 20:23:07 +02:00
semantic-release-bot
eb41894d0a chore(release): 0.21.2 [skip ci]
## [0.21.2](https://github.com/revanced/revanced-integrations/compare/v0.21.1...v0.21.2) (2022-07-06)

### Bug Fixes

* remove long-press from swipe-controls ([7c559bb](7c559bb13c))
2022-07-06 18:16:34 +00:00
OxrxL
1dcbed7eaf refactor: Litho comments blockage generalization (#57) 2022-07-06 20:14:00 +02:00
EXAM454
7c559bb13c fix: remove long-press from swipe-controls 2022-07-06 20:13:27 +02:00
semantic-release-bot
fe8f7cb62f chore(release): 0.21.1 [skip ci]
## [0.21.1](https://github.com/revanced/revanced-integrations/compare/v0.21.0...v0.21.1) (2022-07-05)

### Bug Fixes

* fix build not creating new release ([9c981f7](9c981f7203))
2022-07-05 20:41:17 +00:00
Joey Peter
9c981f7203 fix: fix build not creating new release 2022-07-05 22:38:35 +02:00
Joey Peter
ada1ac160c build: Trigger Release 2022-07-05 22:34:23 +02:00
Joey Peter
0476299570 refactor: move settings to SettingsEnum (#49) 2022-07-05 22:31:13 +02:00
semantic-release-bot
7bd3b07559 chore(release): 0.21.0 [skip ci]
# [0.21.0](https://github.com/revanced/revanced-integrations/compare/v0.20.1...v0.21.0) (2022-07-05)

### Features

* `swipe-controls` ([#50](https://github.com/revanced/revanced-integrations/issues/50)) ([4e27c9f](4e27c9f88c))
2022-07-05 20:05:14 +00:00
Chris
4e27c9f88c feat: swipe-controls (#50) 2022-07-05 22:02:27 +02:00
semantic-release-bot
a1ecb48442 chore(release): 0.20.1 [skip ci]
## [0.20.1](https://github.com/revanced/revanced-integrations/compare/v0.20.0...v0.20.1) (2022-07-05)

### Bug Fixes

* Fix NPE when opening video from different App ([#53](https://github.com/revanced/revanced-integrations/issues/53)) ([3c0408f](3c0408fa09))
2022-07-05 07:25:04 +00:00
Joey Peter
3c0408fa09 fix: Fix NPE when opening video from different App (#53) 2022-07-05 09:22:41 +02:00
OxrxL
2710d50f66 refactor: alphabetical ordering for litho componnent blocks. 2022-07-03 15:41:31 +02:00
semantic-release-bot
6c42c7588d chore(release): 0.20.0 [skip ci]
# [0.20.0](https://github.com/revanced/revanced-integrations/compare/v0.19.1...v0.20.0) (2022-07-03)

### Features

* block suggestions ([#46](https://github.com/revanced/revanced-integrations/issues/46)) ([ecb7088](ecb708898e))
2022-07-03 13:29:01 +00:00
OxrxL
ecb708898e feat: block suggestions (#46) 2022-07-03 15:27:11 +02:00
semantic-release-bot
b55cd0153c chore(release): 0.19.1 [skip ci]
## [0.19.1](https://github.com/revanced/revanced-integrations/compare/v0.19.0...v0.19.1) (2022-07-02)

### Bug Fixes

* add missing dummy task `publish` ([3a2655b](3a2655b38b))
* prepare for hide-suggestions patch ([#35](https://github.com/revanced/revanced-integrations/issues/35)) ([0ce6aa8](0ce6aa854c))
2022-07-02 22:56:50 +00:00
semantic-release-bot
382c6aa36f chore(release): 0.19.1-dev.1 [skip ci]
## [0.19.1-dev.1](https://github.com/revanced/revanced-integrations/compare/v0.19.0...v0.19.1-dev.1) (2022-07-02)

### Bug Fixes

* add missing dummy task `publish` ([3a2655b](3a2655b38b))
* prepare for hide-suggestions patch ([#35](https://github.com/revanced/revanced-integrations/issues/35)) ([b2d08e9](b2d08e9e9f))
2022-07-03 00:52:57 +02:00
Joey Peter
20310146dd refactor: remove no longer used feature. was added from youtube already (#36) 2022-07-03 00:52:57 +02:00
Joey Peter
0ce6aa854c fix: prepare for hide-suggestions patch (#35) 2022-07-03 00:52:57 +02:00
oSumAtrIX
3a2655b38b fix: add missing dummy task publish 2022-07-02 13:40:06 +02:00
oSumAtrIX
7fe30d550e build: semantic-release (#38) 2022-07-02 06:18:52 +02:00
Joey Peter
cfb4132ed1 refactor: rename XSwipe and XSettingsActivity (#33) 2022-06-30 13:54:00 +02:00
OxrxL
7a9c61b71b refactor: Strings
closes #29
2022-06-30 13:32:08 +02:00
Joey Peter
aecafc5380 refactor: dialogs and seperate RYD from SB (#31) 2022-06-30 12:38:28 +02:00
OxrxL
d9268bc0fa refactor: use containsAny helper method (#27) 2022-06-27 23:12:28 +02:00
Joey Peter
9b1dce42ed fix: some more refactoring and cleanup (#21)
* refactor: integrations and prepare new patches

* bugfixes

* fix critical bug

* prepare BrandingWaterMark patch

* fixing create button

* dont use Strings in ReVancedSettingsFragment when we have a wonderful enum for that

* rename classes from fenster to Swipe

* push

* exclude android packages from build
2022-06-27 22:08:50 +02:00
OxrxL
0938f6c59f fix: home ads (#24)
* Ads test

* refactor: cleanup code

Co-authored-by: Sculas <contact@sculas.xyz>
2022-06-27 22:08:24 +02:00
bogadana
a2bb4a5f03 refactor: move whole speeds array to new class (#22) 2022-06-25 15:15:59 +02:00
oSumAtrIX
773357d6e6 feat: workflow_dispatch 2022-06-24 00:55:50 +02:00
Joey Peter
d26b9339fb refactor: integrations (#17) 2022-06-24 00:16:32 +02:00
bogadana
61ed39722e feat: add array for custom-playback-speed patch (#20) 2022-06-23 01:54:37 +02:00
Robert
54baa3c2e5 Fix: ./gradlew: 23: cd: can't cd to "./ (#19) 2022-06-22 16:55:45 +02:00
Oskar
5dd10f6978 ci: chmod +x gradlew is not required (#15) 2022-06-21 15:08:19 +02:00
Canny1913
9bf804219e feat: hide cast button by default (#12) 2022-06-16 00:09:28 +02:00
oSumAtrIX
d7631f371b fix: info panel removal 2022-06-15 11:05:42 +02:00
oSumAtrIX
a30776f69f feat: reels_player_overlay ads 2022-06-13 20:02:09 +02:00
oSumAtrIX
dcfcc36fb8 fix: containsAd returning true for regular video templates 2022-06-12 01:12:41 +02:00
oSumAtrIX
8ff5f0e68d feat: make containsAd more efficient & add new values 2022-06-11 21:37:26 +02:00
oSumAtrIX
468c72e2a5 refactor: deduplicate code 2022-06-08 15:47:34 +02:00
oSumAtrIX
94c2c9d6e6 feat: additional annoyance removal options 2022-06-08 15:47:34 +02:00
oSumAtrIX
40857b1b34 refactor: remove unnecessary method containsAd(String) 2022-06-08 15:47:33 +02:00
oSumAtrIX
a96bbe6469 feat: app promo banner removal setting 2022-06-08 15:47:22 +02:00
oSumAtrIX
4fd2abc409 Merge pull request #10 from josesilveiraa/patch-1
refactor: rename applicationId
2022-06-07 00:18:36 +02:00
josesilveiraa
d007deedd2 refactor: rename applicationId
Refactor `applicationId` from `revanced.integrationspp` to `revanced.integrationsapp`.
2022-06-06 22:13:25 +00:00
oSumAtrIX
a27ec45be8 feat: additional annoyance removal options 2022-06-05 07:13:03 +02:00
oSumAtrIX
8fb1a251a2 refactor: remove unnecessary method containsAd(String) 2022-06-05 07:12:08 +02:00
178 changed files with 4856 additions and 7435 deletions

59
.github/ISSUE_TEMPLATE/bug-issue.yml vendored Normal file
View File

@@ -0,0 +1,59 @@
name: 🐞 Bug report
description: Report a very clearly broken issue.
title: 'bug: <title>'
labels: [bug]
body:
- type: markdown
attributes:
value: |
# ReVanced bug report
Important to note that your issue may have already been reported before. Please check for existing issues [here](https://github.com/revanced/revanced-integrations/labels/bug).
- type: dropdown
attributes:
label: Type
options:
- Cosmetic
- Other
validations:
required: true
- type: textarea
attributes:
label: Bug description
description: How did you find the bug? Any additional details that might help?
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: Add the steps to reproduce this bug including your environment.
placeholder: Step 1. Download some files. Step 2. ...
validations:
required: true
- type: textarea
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
validations:
required: true
- type: textarea
attributes:
label: Screenshots or videos
description: Add screenshots or videos that show the bug here.
placeholder: Drag and drop the screenshots/videos into this box.
validations:
required: false
- type: textarea
attributes:
label: Solution
description: If applicable, add a possible solution.
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: Add additional context here.
validations:
required: false

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 📃 Documentation
url: https://github.com/revanced/revanced-documentation/
about: Don't know how or where to start? Check out our documentation!
- name: 🗨 Discussions
url: https://github.com/revanced/revanced-suggestions/discussions
about: Got something you think should change or be added? Search for or start a new discussion!

View File

@@ -0,0 +1,46 @@
name: ⭐ Feature request
description: Create a detailed feature request.
title: 'feat: <title>'
labels: [feature-request]
body:
- type: markdown
attributes:
value: |
# ReVanced feature request
Do not submit requests for patches here. Please submit them [here](https://github.com/orgs/revanced/discussions/categories/patches) instead.
Important to note that your feature request may have already been made before. Please check for existing feature requests [here](https://github.com/revanced/revanced-integrations/labels/feature-request).
- type: dropdown
attributes:
label: Type
options:
- Functionality
- Cosmetic
- Other
validations:
required: true
- type: textarea
attributes:
label: Issue
description: What is the current problem. Why does it require a feature request?
validations:
required: true
- type: textarea
attributes:
label: Feature
description: Describe your feature in detail. How does it solve the issue?
validations:
required: true
- type: textarea
attributes:
label: Motivation
description: Why should your feature should be considered?
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: Add additional context here.
validations:
required: false

View File

@@ -1,12 +1,15 @@
name: Release
on:
workflow_dispatch:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
build:
@@ -16,34 +19,22 @@ jobs:
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'zulu'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "lts/*"
- name: Build with Gradle
run: ./gradlew --no-daemon build
- name: Github Tag Bump
uses: anothrNick/github-tag-action@1.39.0
- name: Setup semantic-release
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin -D
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
id: bump_version
- name: Upload APKs to Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./app/build/outputs/apk/release/*.apk
tag: ${{ steps.bump_version.outputs.new_tag }}
token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
run: npx semantic-release

38
.releaserc Normal file
View File

@@ -0,0 +1,38 @@
{
"branches": [
"main",
{
"name": "dev",
"prerelease": true
}
],
"plugins": [
["@semantic-release/commit-analyzer", {
"releaseRules": [
{"type": "build", "release": "patch"}
]
}],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"gradle-semantic-release-plugin",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"gradle.properties"
]
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "app/build/outputs/apk/release/*.apk"
}
]
}
]
]
}

321
CHANGELOG.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1,8 @@
# ReVanced Integrations
# ReVanced Integrations
# How to use debugging:
- Usage on Windows: ```adb logcat | findstr "revanced" > log.txt```
- Usage on Linux: ```adb logcat | grep --line-buffered "revanced" > log.txt```
This will write the log to a file called log.txt which you can view then.

View File

@@ -1,12 +1,14 @@
apply plugin: 'com.android.application'
apply plugin: 'org.jetbrains.kotlin.android'
android {
compileSdkVersion 32
namespace 'app.revanced.integrations'
defaultConfig {
applicationId "revanced.integrationspp"
minSdkVersion 23
targetSdkVersion 31
applicationId "app.revanced.integrations"
minSdkVersion 24
targetSdkVersion 32
versionCode 1
versionName "1.0"
multiDexEnabled false
@@ -26,13 +28,13 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}
dependencies {
implementation 'androidx.annotation:annotation:1.3.0'
implementation "androidx.constraintlayout:constraintlayout:2.1.0"
compileOnly 'androidx.annotation:annotation:1.4.0'
compileOnly 'androidx.constraintlayout:constraintlayout:2.1.4'
}

View File

@@ -1,6 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="vanced.integrations">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />

View File

@@ -1,16 +0,0 @@
package app.revanced.integrations;
import android.content.Context;
import android.util.Log;
public class Globals {
public static Context context;
public static Context getAppContext() {
if (context != null) {
return context;
}
Log.e("Globals", "Context is null!");
return null;
}
}

View File

@@ -0,0 +1,44 @@
package app.revanced.integrations.adremover;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.Toolbar;
import app.revanced.integrations.patches.HideShortsButtonPatch;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.LogHelper;
public class AdRemoverAPI {
/**
* Removes Reels and Home ads
*
* @param view
*/
//ToDo: refactor this
public static void HideViewWithLayout1dp(View view) {
if (view instanceof LinearLayout) {
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(1, 1);
view.setLayoutParams(layoutParams);
} else if (view instanceof FrameLayout) {
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(1, 1);
view.setLayoutParams(layoutParams2);
} else if (view instanceof RelativeLayout) {
RelativeLayout.LayoutParams layoutParams3 = new RelativeLayout.LayoutParams(1, 1);
view.setLayoutParams(layoutParams3);
} else if (view instanceof Toolbar) {
Toolbar.LayoutParams layoutParams4 = new Toolbar.LayoutParams(1, 1);
view.setLayoutParams(layoutParams4);
} else if (view instanceof ViewGroup) {
ViewGroup.LayoutParams layoutParams5 = new ViewGroup.LayoutParams(1, 1);
view.setLayoutParams(layoutParams5);
} else {
LogHelper.debug(AdRemoverAPI.class, "HideViewWithLayout1dp - Id: " + view.getId() + " Type: " + view.getClass().getName());
}
}
}

View File

@@ -0,0 +1,12 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class AutoRepeatPatch {
//Used by app.revanced.patches.youtube.layout.autorepeat.patch.AutoRepeatPatch
public static boolean shouldAutoRepeat() {
return SettingsEnum.PREFERRED_AUTO_REPEAT.getBoolean();
}
}

View File

@@ -0,0 +1,12 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.adremover.AdRemoverAPI;
import app.revanced.integrations.settings.SettingsEnum;
public class BrandingWaterMarkPatch {
//Used by: app.revanced.patches.youtube.layout.watermark.patch.HideWatermarkPatch
public static boolean isBrandingWatermarkShown() {
return SettingsEnum.BRANDING_SHOWN.getBoolean();
}
}

View File

@@ -0,0 +1,11 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class ForceDisableCaptionsPatch {
public static boolean captionsEnabled() {
return SettingsEnum.CAPTIONS_ENABLED.getBoolean();
}
}

View File

@@ -0,0 +1,13 @@
package app.revanced.integrations.patches;
import android.view.View;
import app.revanced.integrations.settings.SettingsEnum;
public class FullscreenPanelsRemoverPatch {
public static int getFullscreenPanelsVisibility() {
return SettingsEnum.FULLSCREEN_PANELS_SHOWN.getBoolean() ? View.VISIBLE : View.GONE;
}
}

View File

@@ -0,0 +1,154 @@
package app.revanced.integrations.patches;
import android.os.Build;
import androidx.annotation.RequiresApi;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.LogHelper;
public class GeneralBytecodeAdsPatch {
//Used by app.revanced.patches.youtube.ad.general.bytecode.patch.GeneralBytecodeAdsPatch
@RequiresApi(api = Build.VERSION_CODES.N)
public static boolean containsAd(String value, ByteBuffer buffer) {
return containsLithoAd(value, buffer);
}
@RequiresApi(api = Build.VERSION_CODES.N)
private static boolean containsLithoAd(String value, ByteBuffer buffer) {
boolean enabled = false;
for (SettingsEnum setting : SettingsEnum.getAdRemovalSettings()) {
if (setting.getBoolean()) {
enabled = true;
break;
}
}
try {
if (value == null || value.isEmpty() || !enabled) return false;
LogHelper.debug(GeneralBytecodeAdsPatch.class, "Searching for AD: " + value);
List<String> blockList = new ArrayList<>();
List<String> bufferBlockList = new ArrayList<>();
if (SettingsEnum.ADREMOVER_AD_REMOVAL.getBoolean()) {
blockList.add("_ad");
blockList.add("ad_badge");
blockList.add("ads_video_with_context");
blockList.add("cell_divider");
blockList.add("reels_player_overlay");
blockList.add("shelf_header");
blockList.add("text_search_ad_with_description_first");
blockList.add("watch_metadata_app_promo");
bufferBlockList.add("ad_cpn");
}
if (SettingsEnum.ADREMOVER_SUGGESTED_FOR_YOU_REMOVAL.getBoolean()) {
bufferBlockList.add("watch-vrecH");
}
if (SettingsEnum.ADREMOVER_MOVIE_REMOVAL.getBoolean()) {
blockList.add("browsy_bar");
blockList.add("compact_movie");
blockList.add("horizontal_movie_shelf");
blockList.add("movie_and_show_upsell_card");
bufferBlockList.add("YouTube Movies");
}
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
) return true;
if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {
blockList.add("comments_");
}
if (SettingsEnum.ADREMOVER_COMMUNITY_GUIDELINES.getBoolean()) {
blockList.add("community_guidelines");
}
if (SettingsEnum.ADREMOVER_COMPACT_BANNER_REMOVAL.getBoolean()) {
blockList.add("compact_banner");
}
if (SettingsEnum.ADREMOVER_EMERGENCY_BOX_REMOVAL.getBoolean()) {
blockList.add("emergency_onebox");
}
if (SettingsEnum.ADREMOVER_FEED_SURVEY_REMOVAL.getBoolean()) {
blockList.add("in_feed_survey");
}
if (SettingsEnum.ADREMOVER_MEDICAL_PANEL_REMOVAL.getBoolean()) {
blockList.add("medical_panel");
}
if (SettingsEnum.ADREMOVER_PAID_CONTECT_REMOVAL.getBoolean()) {
blockList.add("paid_content_overlay");
}
if (SettingsEnum.ADREMOVER_COMMUNITY_POSTS_REMOVAL.getBoolean()) {
blockList.add("post_base_wrapper");
}
if (SettingsEnum.ADREMOVER_MERCHANDISE_REMOVAL.getBoolean()) {
blockList.add("product_carousel");
}
if (SettingsEnum.ADREMOVER_SHORTS_SHELF.getBoolean()) {
blockList.add("shorts_shelf");
}
if (SettingsEnum.ADREMOVER_INFO_PANEL_REMOVAL.getBoolean()) {
blockList.add("publisher_transparency_panel");
blockList.add("single_item_information_panel");
}
if (SettingsEnum.ADREMOVER_HIDE_SUGGESTIONS.getBoolean()) {
blockList.add("horizontal_video_shelf");
}
if (SettingsEnum.ADREMOVER_HIDE_LATEST_POSTS.getBoolean()) {
blockList.add("post_shelf");
}
if (SettingsEnum.ADREMOVER_HIDE_CHANNEL_GUIDELINES.getBoolean()) {
blockList.add("channel_guidelines_entry_banner");
}
if (containsAny(value,
"home_video_with_context",
"related_video_with_context",
"search_video_with_context",
"menu",
"root",
"-count",
"-space",
"-button"
)) return false;
if (blockList.stream().anyMatch(value::contains)) {
LogHelper.debug(GeneralBytecodeAdsPatch.class, "Blocking ad: " + value);
return true;
}
if (SettingsEnum.DEBUG.getBoolean()) {
if (value.contains("related_video_with_context")) {
LogHelper.debug(GeneralBytecodeAdsPatch.class, value + " | " + bytesToHex(buffer.array()));
return false;
}
LogHelper.debug(GeneralBytecodeAdsPatch.class, value + " returns false.");
}
return false;
} catch (Exception ex) {
LogHelper.printException(GeneralBytecodeAdsPatch.class, ex.getMessage(), ex);
return false;
}
}
private static boolean containsAny(String value, String... targets) {
for (String string : targets)
if (value.contains(string)) return true;
return false;
}
private static String bytesToHex(byte[] bytes) {
StringBuilder builder = new StringBuilder(bytes.length * 2);
for (byte b : bytes)
builder.append(String.format("%02x", b));
return builder.toString();
}
}

View File

@@ -0,0 +1,41 @@
package app.revanced.integrations.patches;
import android.view.WindowManager;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.swipecontrols.views.SwipeControlsHostLayout;
/**
* Patch class for 'hdr-auto-brightness' patch
*
* @usedBy app/revanced/patches/youtube/misc/hdrbrightness/patch/HDRBrightnessPatch
* @smali app/revanced/integrations/patches/HDRAutoBrightnessPatch
*/
public class HDRAutoBrightnessPatch {
/**
* get brightness override for HDR brightness
*
* @param original brightness youtube would normally set
* @return brightness to set on HRD video
* @smali getHDRBrightness(F)F
*/
public static float getHDRBrightness(float original) {
// do nothing if disabled
if (!SettingsEnum.USE_HDR_AUTO_BRIGHTNESS.getBoolean()) {
return original;
}
// override with brightness set by swipe-controls
// only when swipe-controls is active and has overridden the brightness
final SwipeControlsHostLayout swipeControlsHost = SwipeControlsPatch.CURRENT_HOST.get();
if (swipeControlsHost != null
&& swipeControlsHost.getScreen() != null
&& swipeControlsHost.getConfig().getEnableBrightnessControl()
&& !swipeControlsHost.getScreen().isDefaultBrightness()) {
return swipeControlsHost.getScreen().getRawScreenBrightness();
}
// otherwise, set the brightness to auto
return WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_NONE;
}
}

View File

@@ -0,0 +1,10 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class HideAutoplayButtonPatch {
public static boolean isButtonShown() {
return SettingsEnum.AUTOPLAY_BUTTON_SHOWN.getBoolean();
}
}

View File

@@ -0,0 +1,13 @@
package app.revanced.integrations.patches;
import android.view.View;
import app.revanced.integrations.settings.SettingsEnum;
public class HideCastButtonPatch {
//Used by app.revanced.patches.youtube.layout.castbutton.patch.HideCastButonPatch
public static int getCastButtonOverrideV2(int original) {
return SettingsEnum.CAST_BUTTON_SHOWN.getBoolean() ? original : View.GONE;
}
}

View File

@@ -0,0 +1,18 @@
package app.revanced.integrations.patches;
import android.view.View;
import app.revanced.integrations.adremover.AdRemoverAPI;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.LogHelper;
public class HideCreateButtonPatch {
//Used by app.revanced.patches.youtube.layout.createbutton.patch.CreateButtonRemoverPatch
public static void hideCreateButton(View view) {
boolean show = SettingsEnum.CREATE_BUTTON_SHOWN.getBoolean();
String message = show ? "Create button: Shown" : "Create button: Hidden";
LogHelper.debug(HideCreateButtonPatch.class, message);
view.setVisibility(show ? View.VISIBLE : View.GONE);
}
}

View File

@@ -0,0 +1,20 @@
package app.revanced.integrations.patches;
import android.view.View;
import app.revanced.integrations.adremover.AdRemoverAPI;
import app.revanced.integrations.settings.SettingsEnum;
public class HideHomeAdsPatch {
/**
* Used by package app.revanced.extensions.Extensions
* @param view
*/
public static void HideHomeAds(View view) {
if (!SettingsEnum.HOME_ADS_SHOWN.getBoolean()) {
AdRemoverAPI.HideViewWithLayout1dp(view);
}
}
}

View File

@@ -0,0 +1,14 @@
package app.revanced.integrations.patches;
import android.view.View;
import app.revanced.integrations.settings.SettingsEnum;
public class HideInfoCardSuggestionsPatch {
public static void hideInfoCardSuggestions(View view) {
if (!SettingsEnum.INFO_CARDS_SHOWN.getBoolean()) {
view.setVisibility(View.GONE);
}
}
}

View File

@@ -0,0 +1,20 @@
package app.revanced.integrations.patches;
import android.view.View;
import app.revanced.integrations.adremover.AdRemoverAPI;
import app.revanced.integrations.settings.SettingsEnum;
public class HideReelsPatch {
/**
* Used by app.revanced.patches.youtube.layout.reels.patch.HideReelsPatch
*
* @param view
*/
public static void HideReel(View view) {
if (!SettingsEnum.REEL_BUTTON_SHOWN.getBoolean()) {
AdRemoverAPI.HideViewWithLayout1dp(view);
}
}
}

View File

@@ -0,0 +1,26 @@
package app.revanced.integrations.patches;
import android.view.View;
import app.revanced.integrations.adremover.AdRemoverAPI;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.LogHelper;
public class HideShortsButtonPatch {
//Used by app.revanced.patches.youtube.layout.shorts.button.patch.ShortsButtonRemoverPatch
public static void hideShortsButton(View view) {
if (lastPivotTab != null && lastPivotTab.name() == "TAB_SHORTS") {
boolean show = SettingsEnum.SHORTS_BUTTON_SHOWN.getBoolean();
String message = show ? "Shorts button: shown" : "Shorts button: hidden";
LogHelper.debug(HideShortsButtonPatch.class, message);
if (!show) {
view.setVisibility(show ? View.VISIBLE : View.GONE);
}
}
}
//Needed for the ShortsButtonRemoverPatch
public static Enum lastPivotTab;
}

View File

@@ -0,0 +1,11 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class MinimizedPlaybackPatch {
public static boolean isMinimizedPlaybackEnabled() {
return SettingsEnum.ENABLE_MINIMIZED_PLAYBACK.getBoolean();
}
}

View File

@@ -0,0 +1,14 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class MiniplayerOverridePatch {
//ToDo: Write Patch for it.
//See https://drive.google.com/file/d/1G7jn2EdWgNls0Htgs-wPPjjObZL1emzK/view?usp=sharing
//And https://drive.google.com/file/d/1-QlgSiKzqQ5lHXQnvRUpijk0GH9T1Sn7/view?usp=sharing
// for where it needs to be used.
public static boolean getTabletMiniplayerOverride() {
return SettingsEnum.USE_TABLET_MINIPLAYER.getBoolean();
}
}

View File

@@ -0,0 +1,12 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class NewActionbarPatch {
//Used by app.revanced.patches.youtube.layout.widesearchbar.patch.WideSearchbarPatch
public static boolean getNewActionBar() {
return SettingsEnum.USE_NEW_ACTIONBAR.getBoolean();
}
}

View File

@@ -0,0 +1,35 @@
package app.revanced.integrations.patches;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.LogHelper;
public class OldQualityLayoutPatch {
public static void showOldQualityMenu(ListView listView)
{
if (!SettingsEnum.OLD_STYLE_QUALITY_SETTINGS.getBoolean()) return;
listView.setOnHierarchyChangeListener(new ViewGroup.OnHierarchyChangeListener() {
@Override
public void onChildViewAdded(View parent, View child) {
LogHelper.debug(OldQualityLayoutPatch.class, "Added: " + child);
parent.setVisibility(View.GONE);
final var indexOfAdvancedQualityMenuItem = 4;
if (listView.indexOfChild(child) != indexOfAdvancedQualityMenuItem) return;
LogHelper.debug(OldQualityLayoutPatch.class, "Found advanced menu: " + child);
final var qualityItemMenuPosition = 4;
listView.performItemClick(null, qualityItemMenuPosition, 0);
}
@Override
public void onChildViewRemoved(View parent, View child) {}
});
}
}

View File

@@ -0,0 +1,29 @@
package app.revanced.integrations.patches;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import app.revanced.integrations.shared.PlayerOverlays;
/**
* Hook receiver class for 'player-overlays-hook' patch
*
* @usedBy app.revanced.patches.youtube.misc.playeroverlay.patch.PlayerOverlaysHookPatch
* @smali Lapp/revanced/integrations/patches/PlayerOverlaysHookPatch;
*/
@SuppressWarnings("unused")
public class PlayerOverlaysHookPatch {
/**
* Hook into YouTubePlayerOverlaysLayout.onFinishInflate() method
*
* @param thisRef reference to the view
* @smali YouTubePlayerOverlaysLayout_onFinishInflateHook(Ljava / lang / Object ;)V
*/
public static void YouTubePlayerOverlaysLayout_onFinishInflateHook(@Nullable Object thisRef) {
if (thisRef == null) return;
if (thisRef instanceof ViewGroup) {
PlayerOverlays.attach((ViewGroup) thisRef);
}
}
}

View File

@@ -0,0 +1,32 @@
package app.revanced.integrations.patches;
import androidx.annotation.Nullable;
import app.revanced.integrations.utils.LogHelper;
import app.revanced.integrations.shared.PlayerType;
/**
* Hook receiver class for 'player-type-hook' patch
*
* @usedBy app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch
* @smali Lapp/revanced/integrations/patches/PlayerTypeHookPatch;
*/
@SuppressWarnings("unused")
public class PlayerTypeHookPatch {
/**
* Hook into YouTubePlayerOverlaysLayout.updatePlayerLayout() method
*
* @param type the new player type
* @smali YouTubePlayerOverlaysLayout_updatePlayerTypeHookEX(Ljava/lang/Object;)V
*/
public static void YouTubePlayerOverlaysLayout_updatePlayerTypeHookEX(@Nullable Object type) {
if (type == null) return;
// update current player type
final PlayerType newType = PlayerType.safeParseFromString(type.toString());
if (newType != null) {
PlayerType.setCurrent(newType);
LogHelper.debug(PlayerTypeHookPatch.class, "YouTubePlayerOverlaysLayout player type was updated to " + newType);
}
}
}

View File

@@ -0,0 +1,33 @@
package app.revanced.integrations.patches;
import java.util.concurrent.atomic.AtomicReference;
import app.revanced.integrations.returnyoutubedislike.ReturnYouTubeDislike;
/**
* Used by app.revanced.patches.youtube.layout.returnyoutubedislike.patch.ReturnYouTubeDislikePatch
*/
public class ReturnYouTubeDislikePatch {
/**
* Called when the video id changes
*/
public static void newVideoLoaded(String videoId) {
ReturnYouTubeDislike.newVideoLoaded(videoId);
}
/**
* Called when a litho text component is created
*/
public static void onComponentCreated(Object conversionContext, AtomicReference<Object> textRef) {
ReturnYouTubeDislike.onComponentCreated(conversionContext, textRef);
}
/**
* Called when the like/dislike button is clicked
* @param vote -1 (dislike), 0 (none) or 1 (like)
*/
public static void sendVote(int vote) {
ReturnYouTubeDislike.sendVote(vote);
}
}

View File

@@ -0,0 +1,12 @@
package app.revanced.integrations.patches;
import app.revanced.integrations.settings.SettingsEnum;
public class SeekbarTappingPatch {
//Used by app.revanced.patches.youtube.interaction.seekbar.patch.EnableSeekbarTappingPatch
public static boolean isTapSeekingEnabled() {
return SettingsEnum.TAP_SEEKING_ENABLED.getBoolean();
}
}

Some files were not shown because too many files have changed in this diff Show More