Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xf4r/edge-chrome-bookmark-sync
Two-Way Bookmark Sync Between Microsoft Edge and Google Chrome
https://github.com/0xf4r/edge-chrome-bookmark-sync
batch-script google-chrome google-chrome-extension microsoft-edge microsoft-edge-extension powershell-script task-scheduler
Last synced: 5 days ago
JSON representation
Two-Way Bookmark Sync Between Microsoft Edge and Google Chrome
- Host: GitHub
- URL: https://github.com/0xf4r/edge-chrome-bookmark-sync
- Owner: 0xf4r
- License: mit
- Created: 2024-09-06T14:41:06.000Z (27 days ago)
- Default Branch: main
- Last Pushed: 2024-09-06T14:44:06.000Z (27 days ago)
- Last Synced: 2024-09-25T04:31:56.927Z (8 days ago)
- Topics: batch-script, google-chrome, google-chrome-extension, microsoft-edge, microsoft-edge-extension, powershell-script, task-scheduler
- Language: Batchfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Two-Way Bookmark Sync Between Microsoft Edge and Google Chrome
### Description
This project provides a simple automation script to synchronize bookmarks between Microsoft Edge and Google Chrome based on the last modified file. It uses a batch script to compare the modification times of the bookmark files in both browsers, ensuring that the most recent bookmarks are always up-to-date across both platforms.### Features
- **Automatic Bookmark Synchronization**: Syncs the latest modified bookmarks between Edge and Chrome.
- **Customizable Scheduling**: Use Task Scheduler to run the script automatically at specified intervals or events.
- **Simple and Lightweight**: Minimal dependencies, only requiring a batch script and Task Scheduler.### Requirements
- Windows operating system.
- Google Chrome and Microsoft Edge installed.
- Basic understanding of batch scripting and Task Scheduler.### Setup Instructions
1. **Clone the Repository**:
```bash
git clone https://github.com/0xf4r/edge-chrome-bookmark-sync.git
cd edge-chrome-bookmark-sync
```2. **Update the Script**:
- Open `sync_bookmarks.bat` and replace `USERNAME` with your actual Windows username.3. **Batch Script**: `sync_bookmarks.bat`
```batch
@echo off
setlocalREM Define paths to the bookmark files for Edge and Chrome
set CHROME_BOOKMARKS="C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\Bookmarks"
set EDGE_BOOKMARKS="C:\Users\USERNAME\AppData\Local\Microsoft\Edge\User Data\Default\Bookmarks"REM Get the last modified times of the bookmark files
for %%f in (%CHROME_BOOKMARKS%) do set CHROME_MODIFIED=%%~tf
for %%f in (%EDGE_BOOKMARKS%) do set EDGE_MODIFIED=%%~tfREM Compare the last modified times and sync accordingly
if "%CHROME_MODIFIED%" GTR "%EDGE_MODIFIED%" (
copy /Y %CHROME_BOOKMARKS% %EDGE_BOOKMARKS%
echo Chrome bookmarks were newer and copied to Edge.
) else (
copy /Y %EDGE_BOOKMARKS% %CHROME_BOOKMARKS%
echo Edge bookmarks were newer and copied to Chrome.
)endlocal
```4. **Set Up Task Scheduler**:
- Open Task Scheduler.
- Create a new task to run `sync_bookmarks.bat` at your desired schedule (e.g., daily or at logon).### Usage
- Run the batch script manually or let it run automatically through Task Scheduler.
- The script will check which browser's bookmarks were modified last and sync them to the other browser.### Example
```bash
# Clone the repo
git clone https://github.com/0xf4r/edge-chrome-bookmark-sync.git# Customize the script with your paths
notepad sync_bookmarks.bat# Run the script manually or set up Task Scheduler to automate
```### License
This project is licensed under the MIT License.