dgtvan / Page-Editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page Editor

A Google Chrome extension which enables to inject custom javascript scripts to any web page.

Visual Studio Code is integrated as an external powerful editor!

Feature

Script Storage

All scripts are managed locally in a folder which I call working directory using Git, or any other file management I want.

The VSCode's extension takes the responsibility of pushing file changes from the working directory to the Chrome's local storage.

VS Code is required to open only if I want to update my scripts.

Script Configuration

  • Each script file has it own configuration section beginning with \*-Page-Editor- and ending with -Page-Editor-*/. This section should be put at the top of script files.
  • Configurations are pairs of key and value.

Example:

\*-Page-Editor-
urls=foo.com
-Page-Editor-*/

Available configuration.

  1. urls
  • List of urls that the script will be injected to.
  • The list items are separated by semicolons.
  • Urls can be matching by rules below:
    • all means any URL.
    • Ending by * means any url begins with the specified url.
    • Otherwise, exact same matching.

Example:

urls=foo.com;bar.com/foo/*
URLs below are affected:
- foo.com
- Any url starts with bar.com/foo/

urls=all;foo.com;bar.com;
All urls are affected.

Setup

  1. Open Google Chrome browser, load the extension in Developer mode.
  2. Open Visual Studio Code, install another Page Editor extension.
  3. In Visual Studio Code, the extension automatically activates when the opened folder contains a folder named .pageeditor.

  1. Check the connection and ready to work.

Thanks

1/ Icons is downloaded from FlatIcon. 2/ The project has been re-written based on the starter project https://github.com/chibat/chrome-extension-typescript-starter.

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 82.6%Language:TypeScript 16.6%Language:HTML 0.9%