Here is a patch repository for Taberareloo.
- Google Chrome 26+
- Taberareloo 3.0.3+
A patch for Taberareloo must have an extension .tbrl.js
. Otherwise, it won't be installed.
The file name is a key in the Taberareloo patch system, so it must be unique in the entire system.
A patch must have a metadata about its patch.
// ==Taberareloo==
// {
// "name" : "Patch Name"
// , "description" : "Patch Description"
// , "include" : ["background", "content"]
// , "match" : ["https://*/*"]
// , "version" : "1.0.0"
// , "downloadURL" : "https://raw.github.com/taberareloo/patches-for-taberareloo/master/patches/patch_file_name.tbrl.js"
// }
// ==/Taberareloo==
-
The metadata area in a patch must start with
// ==Taberareloo==
line and end with// ==/Taberareloo==
line. -
The metadata is a JSON format led by
//
at each line and commented out. -
Each key and value must be quoted by double-quote
""
. -
"name"
: The name of a patch (optional) -
"description"
: The description of a patch (optional) -
"include"
: An array of target contexts ("background", "content", "popup" and/or "options")
"background" : The background context of Taberareloo
"content" : A page context opened in a browser tab
"popup" : The popup window in which the QuickPostForm is (v3.0.1~)
"options" : The option page (v3.0.3~) -
"match"
: An array of target page patterns, if"include"
has "content".
The match patterns are equivalent of Match Patterms of Google Chrome.
If"include"
doesn't have "content", it's ignored. -
"version"
: The version of a patch (optional)
The version format uses Semantic Versioning. -
"downloadURL"
: A URL where a patch can be found and installed (optional)
Taberareloo uses this URL and"version"
to check updates of its patch and notifies it to you.
A patch can be installed by right-clicking and selecting Patch - Install this
in the Taberareloo context menu on a remote file like "downloadURL"
, or from a local file at the Patch tab in the options page of Taberareloo.
If the metadata in a patch has "downloadURL"
and "version"
, Taberareloo will check updates of its patch automatically by comparing "version"
in "downloadURL"
and "version"
in the installed patch.
And also users can check manually by clicking the button "Check Updates" at the Patch tab in the options page of Taberareloo.
- Fork it.
- Create a branch (git checkout -b my_patch)
- Commit your changes (git commit -am "Added My Patch")
- Push to the branch (git push origin my_patch)
- Open a Pull Request