Skip to content
/ gm2chrome Public

Convert your GM script into Chrome content script extension.

Notifications You must be signed in to change notification settings

bcho/gm2chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gm2chrome

A simple script for converting Grease Monkey script to Chrome content script extension.

Example

$ ls
cool-gm-script.js

$ python3 conveter.py cool-gm-script.js cool-gm-script
Convert finished!

$ ls cool-gm-script
cool-gm-script.js jquery-2.0.3.min.js manifest.json

How It Works

This script will parse the grease monkey script's metadata block, and map them into Chrome extension's manifest defination.

It will also retrieve the remote scripts that require by the script.

In order to mock some API that grease monkey provided, you can refer to grantGM_xmlhttpRequest.js.

Contribution

:shipit:

Contribution is welcome, feel free to open an issue and fork. Waiting for your pull request <3

About

Convert your GM script into Chrome content script extension.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published