Skip to content

hlongvu/runscript-chrome-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Runner

A Chrome extension that allows you to save and run JavaScript snippets on any website.

Features

  • Save JavaScript snippets - Store frequently used JavaScript code for quick access
  • Run scripts on any webpage - Execute saved scripts on the active tab with one click
  • Edit and manage scripts - Edit, update, or delete your saved scripts
  • Clean UI - Simple, intuitive interface with script previews
  • Persistent storage - Scripts are saved locally and persist across sessions

Installation

Load Unpacked (Development)

  1. Clone or download this repository
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" in the top right corner
  4. Click "Load unpacked" and select the extension directory
  5. The extension icon should now appear in your browser toolbar

Usage

  1. Click the extension icon in your browser toolbar to open the popup
  2. Click the "+ Add" button to create a new script
  3. Enter a name and your JavaScript code
  4. Click "Save" to store the script
  5. Navigate to any website and click the "Run" button to execute the script on that page

Managing Scripts

  • Edit Mode: Click the "Edit" button to switch to edit mode
  • Edit Script: In edit mode, click "Edit" on any script to modify it
  • Delete Script: In edit mode, click "Delete" to remove a script
  • Run Script: In normal mode, click "Run" to execute the script on the current page

Project Structure

├── manifest.json       # Extension manifest
├── background.js       # Background service worker
├── content.js          # Content script
├── popup.html          # Popup UI structure
├── popup.js            # Popup logic
├── popup.css           # Popup styling
├── icons/              # Extension icons
└── docs/               # Documentation

Technical Details

  • Manifest Version: 3
  • Permissions: storage, scripting, activeTab
  • Content Security Policy: Compatible with most websites, but may be restricted on pages with strict CSP

Known Limitations

  • Scripts cannot run on Chrome's internal pages (chrome://, chrome-extension://)
  • Some websites with strict Content Security Policy may block script execution
  • Scripts run in the main world of the page context

Browser Compatibility

  • Chrome (Manifest V3)
  • Edge (Manifest V3)
  • Other Chromium-based browsers with Manifest V3 support

License

This project is open source and available for personal and commercial use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published