Giter Club home page Giter Club logo

patches-for-taberareloo's Introduction

Patches for Taberareloo

ここは、Taberareloo のパッチ・レポジトリです。

必要なもの

ファイル名

Taberareloo 用のパッチ・ファイルは、.tbrl.js の拡張子が必要です。これ以外の拡張子はインストールされません。

現在の Taberareloo のパッチ機構はファイル名がキーになっているので、インストールするファイル名は拡張内でユニークである必要があります。

メタデータ

パッチ・ファイルの先頭には、以下のようなパッチに関するメタデータが必要です。

// ==Taberareloo==
// {
//	 "name"        : "Patch Name"
// , "description" : "Patch Description"
// , "include"     : ["background", "content"]
// , "match"       : ["https://*/*"]
// , "version"     : "1.0.0"
// , "downloadURL" : "https://raw.github.com/YungSang/patches-for-taberareloo/master/patches/patch_file_name.tbrl.js"
// }
// ==/Taberareloo==
  • メタデータの領域は、// ==Taberareloo== の行で始まり、// ==/Taberareloo== の行で終了しなければなりません。

  • メタデータは、行の先頭を // でコメントアウトされた JSON フォーマットです。

  • JSON のキーや値は、ダブルクォート "" で囲まれていなければなりません。

  • "name" : パッチの名前 (省略可、省略時はファイル名が名前になります)

  • "description" : パッチの説明 (省略可)

  • "include" : パッチが適用されるページを配列で指定します ("background"、"content"、"popup"、"options"、またはそれらの組み合わせ)
    "background" : Taberareloo 拡張本体の Background ページ
    "content" : ブラウザのタブで開かれたページ
    "popup" : QuickPostForm のポップアップ・ウィンドウ (v3.0.1 以降)
    "options" : Option セッティング・ページ (v3.0.3 以降)

  • "match" : "include" に "content" が指定された場合に、適用されるページの URL のパターンを配列で指定します。
    マッチングに使われるパターンの記法は、Match Patterms of Google Chrome に準拠します。
    "include" に "content" が含まれない場合は、無視されます。

  • "version" : パッチのバージョン (省略可)
    バージョンの記法は、Semantic Versioning に準拠します。

  • "downloadURL" : パッチの提供元であるインストール可能なパッチ・ファイルへの URL を指定します。 (省略可)
    Taberareloo は、この URL で示されるファイルのメタ・データの "version" とインストール済みの "version" を比較して更新の通知を行います。

インストール

パッチは、"downloadURL" で示されるようなリモートのパッチ・ファイル上で右クリックから Patch - Install this を選択することでインストール出来ます。 また、Taberareloo のオプション・ページのパッチ・タブでローカル・ファイルからもインストール出来ます。

更新の通知

メタ・データに "downloadURL""version" がある場合、"downloadURL" で示されるファイルの "version" とインストール済みの "version" を比較して自動的に更新の通知を行います。 また、Taberareloo のオプション・ページのパッチ・タブで手動にて、「更新を確認」することも出来ます。

参加の仕方

  1. フォークして、
  2. ブランチを作って、 (git checkout -b my_patch)
  3. パッチをコミットして、 (git commit -am "Added My Patch")
  4. ブランチをプッシュして、 (git push origin my_patch)
  5. Pull Request して下さい

patches-for-taberareloo's People

Contributors

oumu avatar yungsang avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.