Skip to content

nanzhipro/SSChromExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScheduleSage Chrome Extension

A Chrome extension that sends the current tab's URL to the ScheduleSage app on macOS.

Features

  • Sends URLs of the current browser tab to the ScheduleSage app with a single click
  • Uses Native Messaging to communicate with the ScheduleSage macOS application
  • Shows notifications when sending is successful or encounters errors

Installation

Chrome Extension Installation

  1. Clone or download this repository
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" by toggling the switch in the top right corner
  4. Click "Load unpacked" and select the extension directory (the folder containing manifest.json)
  5. Note the extension ID that appears under the extension name (you'll need this for the next step)

Native Host Installation (macOS)

  1. Make the Python script executable:

    chmod +x /path/to/native_host.py
  2. Update the native host manifest file:

    • Open com.tiwenlab.schedulesage.json in a text editor
    • Replace PATH_TO_BE_REPLACED_WITH_ABSOLUTE_PATH with the absolute path to the native_host.py file
    • Replace EXTENSION_ID_TO_BE_REPLACED with your extension ID from step 5 above
  3. Create the Native Messaging Hosts directory (if it doesn't exist):

    mkdir -p ~/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/
  4. Copy the updated manifest file to the Native Messaging Hosts directory:

    cp /path/to/com.tiwenlab.schedulesage.json ~/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/

Usage

  1. Ensure the ScheduleSage app is installed on your macOS system
  2. Click the ScheduleSage extension icon in Chrome's toolbar
  3. The extension will capture the current tab's URL and send it to the ScheduleSage app
  4. A notification will appear indicating success or failure

Troubleshooting

  • If you see a "Connection Error" notification, ensure:

    • The native host Python script is executable (chmod +x /path/to/native_host.py)
    • The path in the native host manifest file is correct
    • The extension ID in the manifest file matches your actual extension ID
    • The manifest file is correctly placed in ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/
    • The ScheduleSage app is installed on your system
  • Check the Chrome extension's background page console for error messages:

    • Go to chrome://extensions/
    • Find ScheduleSage and click "service worker" under "Inspect views"
    • Look for errors in the Console tab

Privacy

The extension only sends URLs when you click its icon. URLs are sent only to the local ScheduleSage application on your computer. No data is sent to any remote servers.

About

ScheduleSage浏览器插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published