Commit Graph

377 Commits

Author SHA1 Message Date
ᴍᴏᴏɴD4ʀᴋ
eed1d12282
dev: refactor items and update repo deploy (#278)
* refactor: Refactor file paths and use map to store item names

- Refactored file paths for various browsing data types to use a consistent method of generating temporary file names
- Modified parsing functions in many browsing data types to use the new temporary file naming scheme
- Renamed `FileName` to `Filename` for consistency in the `item` package
- Removed unnecessary code and comments throughout various files
- Made minor improvements to some Item methods such as `TempFilename` and `FileName`

* ci: Optimize GitHub actions and update Go versions. (#274)

* ci: Optimize GitHub actions and update Go versions.

- Add GitHub actions for unit testing, linting, building, and releasing
- Use a matrix strategy to test on different versions and platforms
- Update setup-go and go-version options for compatibility
- Format code and build zip files for different operating systems
- Upload releases to GitHub with specific asset names and types

* fix: Refactor item file naming convention

- Update `filename()` function to return `UnsupportedItem` in specific cases
- Replace `UnknownItem` with `UnsupportedItem` in `Filename` method of `Item` struct
- Refactor code for clarity and consistency

* ci: Update GitHub workflow with latest setup-go version

- Update setup-go action to v3 in lint.yml GitHub workflow
- Omits some big changes in file diff summary
- Improve overall workflow reliability and efficiency

* ci: Improve GitHub actions across platforms

- Improve Windows compatibility in build workflow
- Optimize unit testing for pull requests
- Upgrade Coveralls GitHub action to v2 for improved coverage tracking

* build: Optimize build process for consistency and efficiency

- Ensure consistency of line endings by disabling Git's automatic conversion
- Add format check for Windows systems
- Update Go version in strategy matrix to `1.21.x`
- Remove unused dependencies from build process
- Include all packages in repository in build command

* ci: Refactor GitHub workflow configuration

- Remove unnecessary checks for `windows-latest` in github workflow
- Change `gofmt` check to `diff` for formatting
- Remove unneeded Git configuration for encoding of line endings
- Close #273

* ci: Update default branch references in GitHub Actions workflows (#277)

- Update Github Actions workflows to use `main` branch instead of `master`.
- Rename `master` branch to `main` in `lint.yml` and `build.yml` files.
- Change default branch to `main` in `contributors.yml` workflow file.
2024-01-13 15:58:53 +08:00
ᴍᴏᴏɴD4ʀᴋ
f4b4ad1258 chore: remove auto released github actions 2024-01-09 20:57:42 +08:00
github-actions[bot]
f93d8d6c95
chore: update contributors [skip ci] 2024-01-09 12:37:51 +00:00
moonD4rk
58bca21713 fix: Improve error handling in browsing data and file copying functions
- Improve error handling in browsingdata.go Recovery function
- Add logging for file copy errors in chromium.go
- Modify copyItemToLocal function to continue copying files on error
2024-01-09 20:36:56 +08:00
moonD4rk
5a34d1c176 chore: Downgrade version number and remove unused flag
Refactor version number changes and remove unused flag in CLI

- Downgrade version number from `0.4.7` to `0.4.5` in main.go and README files
- Remove `HelpCommand` flag from `cli.App`
- Update `Github Link` in usage text of hack-browser-data CLI
2024-01-09 18:10:14 +08:00
moonD4rk
baac121610 chore: Refactor and update dependencies in go.mod file
- Refactor and optimize parsing function in browsingdata extension
- Update dependency versions and indirect versions in go.mod
2024-01-09 18:10:14 +08:00
moonD4rk
23daf093b8 chore: Update version number to 0.4.7 in README and main.go files
- Update version number to `0.4.7` in `README` and `README_ZH`
- Update version number to `0.4.7` in `cmd/hack-browser-data/main.go`
2024-01-09 18:10:14 +08:00
stevenlele
53e9447713 refactor: optimize JSON indent output format (#236) 2024-01-09 18:10:14 +08:00
stevenlele
07561f56fa feat: improve extension parsing (#235)
* feat: improve extension parsing

* refactor: Refactor extension parsing and update file names.

- Refactor extension parsing function for clarity and DRYness
- Update name of a file to "Secure Preferences"
- Add TODO comment for future work on extension files and folders
- Remove unnecessary file write operation and import statement

---------

Co-authored-by: moonD4rk <moond4rk13@gmail.com>
2024-01-09 18:10:14 +08:00
stevenlele
368e2f50a8 fix: add logger info when unable to decrypt the master key (#234) 2024-01-09 18:10:14 +08:00
stevenlele
038e97e2dc chore: fix typos (#232) 2024-01-09 18:10:14 +08:00
github-actions[bot]
c4ce4fe890
chore: update contributors [skip ci] 2024-01-09 07:24:19 +00:00
guangwu
e1420832c4
chore: use better bytes comparison method (#257) 2024-01-09 15:24:03 +08:00
moonD4rk
83fc248195
chore: update Go version and dependencies for builds
- Update Go version from `1.20` to `1.21` in go.mod, .github/workflows/build.yml, and .github/workflows/lint.yml
2023-10-02 22:37:42 +08:00
moonD4rk
142d9e99e2
refactor: disable paralleltest lint ruler 2023-10-02 22:35:33 +08:00
github-actions[bot]
ecb8db1854
chore: update contributors [skip ci] 2023-07-16 01:33:27 +00:00
Andrii Ursulenko
ab4d3e14db
fix: nil browsing data in case error and walkdir instead of walk (#229)
* fix: nil browsing data in case error

Signed-off-by: Andrii Ursulenko <a.ursulenko@gmail.com>

* fix: ignore walk error, use walkdir instead of walk

---------

Signed-off-by: Andrii Ursulenko <a.ursulenko@gmail.com>
Co-authored-by: Andrii Ursulenko <a.ursulenko@gmail.com>
2023-07-10 17:53:13 +08:00
ᴍᴏᴏɴD4ʀᴋ
a2c3cd1090
Merge pull request #227 from moonD4rk/static/update-logo
chore: update logo filetype
2023-07-06 11:49:38 +08:00
moonD4rk
93c0d42b46
chore: update logo filetype convert svg to png 2023-07-06 11:47:03 +08:00
ᴍᴏᴏɴD4ʀᴋ
3eaa2dd2bf
Merge pull request #220 from moonD4rk/dev
feat: support Arc Browser for macOS
2023-06-06 19:49:11 +08:00
moonD4rk
3316067af9
chore: Allow all library in depguard linter settings
- Add depguard linter settings to deny pkg github.com/pkg/errors in .golangci.yml file.
2023-06-06 19:45:53 +08:00
moonD4rk
5406ee768e
docs: Improve arc browser support and compilation instructions in README. 2023-06-06 19:00:27 +08:00
moonD4rk
71cee38b0c
feat: Add support for Arc browser for macOS 2023-06-06 18:57:01 +08:00
moonD4rk
0a7f19ab91
refactor: lowercase library module name 2023-06-04 13:47:43 +08:00
moonD4rk
6c1f653b4f refactor: Refactor storage queries and filters.
- Update local storage query constant and function calls
- Remove null and control characters from UTF-8 split function
2023-05-08 19:24:15 +08:00
Mingxing Liu
5376184c7e fix: wrong session storage key if contains map 2023-05-08 19:23:55 +08:00
Mingxing Liu
d1bff59b8e feat: support export session storage in chromium 2023-05-08 19:23:31 +08:00
Mingxing Liu
115e1d29c6 feat: support export session storage for chromium 2023-05-08 19:22:55 +08:00
moonD4rk
01bf9806e0 fix: renaming unused parameter 2023-05-08 19:22:55 +08:00
moonD4rk
c9acb11536 docs: add star hisory to readme 2023-05-08 19:22:55 +08:00
moonD4rk
6351e74f16 fix: add parallel options for unit test 2023-05-08 19:22:55 +08:00
moonD4rk
a685be362b chore: set max local storage value length is 2kb 2023-05-08 19:22:55 +08:00
moonD4rk
4fb2acd85c feat: test case for convert utf16 value to utf8 2023-05-08 19:22:55 +08:00
moonD4rk
b824f74fae fix: missing key and value in localstorage 2023-05-08 19:22:55 +08:00
moonD4rk
c070323e86 refactor: format parse browsing data 2023-05-08 19:22:55 +08:00
moonD4rk
4b2c15088b docs: update readme 2023-05-08 19:22:55 +08:00
ᴍᴏᴏɴD4ʀᴋ
dae8edad60
chore: upgrade cross compile ghaction-xgo actions verison 2023-03-11 23:27:20 +08:00
moonD4rk
bd56109824 chore: update go version to 1.20 2023-03-11 21:23:22 +08:00
moonD4rk
60772a47f4 chore: update actions go version to 1.20 2023-03-11 21:22:22 +08:00
ᴍᴏᴏɴD4ʀᴋ
ee619dace9
Merge pull request #200 from moonD4rk/fix/profile-folder
feat: add full-export browsing data option
2023-03-11 20:16:21 +08:00
moonD4rk
84ab4005f9
feat: add is full export browsing data option 2023-03-11 20:09:10 +08:00
moonD4rk
fbe61a2cf4
chore: upgrade package dependencies 2023-03-11 19:18:11 +08:00
moonD4rk
89cd0de693
refactor: rename funciton name 2023-03-11 18:41:05 +08:00
moonD4rk
4b7ad4d505
feat: add is export full data option 2023-03-11 17:51:40 +08:00
moonD4rk
cc4edc5cb6
refactor: initial default logger 2023-03-10 15:58:10 +08:00
ᴍᴏᴏɴD4ʀᴋ
1214bf8342
Merge pull request #199 from moonD4rk/feat/layout
feat/layout: format project layout
2023-03-10 15:12:27 +08:00
moonD4rk
4fca1a514f
refactor: rename provider name 2023-03-10 15:09:50 +08:00
moonD4rk
b0cb59ec2c
chore: update version flag 2023-03-10 14:54:47 +08:00
moonD4rk
b65d3186c4
chore: update project layout 2023-03-10 14:52:26 +08:00
ᴍᴏᴏɴD4ʀᴋ
9850624d45
Merge pull request #198 from moonD4rk/feat/log
fix: wrong log caller skip level
2023-03-09 19:13:26 +08:00