Punkjs

Punkjs is a Chrome extension that allows you to load local Javascript files into web pages based on the filename.

什么是Punkjs?

Punkjs是由Jonathan Cremin开发的Chrome扩展程序,该扩展的主要功能是“Punkjs is a Chrome extension that allows you to load local Javascript files into web pages based on the filename.”。

扩展截图

screenshot

下载Punkjs扩展crx文件

下载Punkjs扩展crx格式的文件,手动将Chrome插件安装到浏览器中,也可以将crx文件分享给朋友,轻松安装Chrome插件。

扩展使用说明

                        It can load them from a directory of your choosing (like ~/.js) into web pages that match the domain, like google.com.js on www.google.com.

> Punk is the phonetic spelling of the Irish word for dot, "ponc". I wanted to call this "Poncjs", but I also didn't want it to be difficult to search for.

It is the spiritual successor to dotjs, which is no longer maintained.

Extensions have security restrictions that stop them reading from the filesystem, so you'll also need to install the Punkjs Bridge App (https://chrome.google.com/webstore/detail/ecnapnimgoienbogbgcmchpgjbgeaobk).

## How to Use

* Install the extension (https://chrome.google.com/webstore/detail/dkjpmglejjkidbgnokkgkiablgbdabpk).
* Install the app (https://chrome.google.com/webstore/detail/ecnapnimgoienbogbgcmchpgjbgeaobk).
* Create your ~/.js directory.
* Launch the app to configure the directory.
* Hack on some js.

## How it Works

The Punkjs extension and Punkjs Bridge app use the Chrome runtime messaging API for communicating.

Whenever you navigate to a webpage the extension will tell the bridge what domain the page is on. The bridge will try to find matching files, starting with the TLD and working down through the levels. The extension then runs the returned Javascript in the context of the page.

## Requirements

* Google Chrome.                    

扩展基本信息

名称 Punkjs Punkjs
ID dkjpmglejjkidbgnokkgkiablgbdabpk
官方URL https://chromewebstore.google.com/detail/punkjs/dkjpmglejjkidbgnokkgkiablgbdabpk
简介 Punkjs is a Chrome extension that allows you to load local Javascript files into web pages based on the filename.
文件大小 10.67 KB
安装次数 45
当前版本 0.1.1
更新时间 2015-12-06
上架时间 2015-12-06
评分 5.00/5 共1次评分
开发者 Jonathan Cremin
付费类型 free
扩展官网 https://github.com/kudos/punkjs
帮助页面URL https://github.com/kudos/punkjs/issues
支持的语言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "name": "Punkjs",
    "version": "0.1.1",
    "manifest_version": 2,
    "description": "Punkjs is a Chrome extension that allows you to load local Javascript files into web pages based on the filename.",
    "author": "Jonathan Cremin ",
    "homepage_url": "https:\/\/github.com\/kudos\/punkjs",
    "minimum_chrome_version": "46",
    "icons": {
        "128": "icon-128.png"
    },
    "content_scripts": [
        {
            "matches": [
                ""
            ],
            "js": [
                "bridge-id.js",
                "index.js"
            ]
        }
    ],
    "options_ui": {
        "chrome_style": true,
        "page": "options.html"
    }
}