Skip to content

Commit

Permalink
Show welcome page on update from 2.x to 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
maripo committed Aug 28, 2018
1 parent ddc47a0 commit 01e5830
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 67 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name" : "CustomBlocker",
"version" : "3.0.1",
"version" : "3.0",
"default_locale": "en",
"description" : "__MSG_extDescription__",
"browser_action": {
Expand Down
2 changes: 1 addition & 1 deletion extension/src/background.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 8 additions & 32 deletions extension/welcome_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,19 @@
<body>
<div id="header">
<h1><img src="img/top_title.png" alt="CustomBlocker for Google Chrome"/></h1>
<h2>What's New in CustomBlocker 2.4</h2>
<h3>Simplified Interfaces</h3>
<h2>What's New in CustomBlocker 3.0</h2>
<h3>Remote sync</h3>
<p>
The user interfaces of CustomBlocker 2.3.x was too complicated.
We simplified them by removing some rarely used fields and restructuring the form.
Now CustomBlocker has "Remote sync" feature!
</p>
<table>
<tr>
<td>Old</td>
<td>New</td>
</tr>
<tr>
<td style="padding:4px">
<img src="img/help/old_ui.png"/>
</td>
<td style="padding:4px">
<img src="img/help/new_ui.png"/>
</td>
</tr>
</table>
<h3>Wildcards</h3>
<p>
Previous versions of CustomBlocker used regular expressions for URL matching.
Regular expressions are hard to read for people other than programmers and computer geeks.
Now, you can use wildcards to specify URLs.
Your rules are synchronized across multiple machines.
When you are logged in with your Google account and "<a href="chrome://settings/syncSetup">Extensions sync</a>" is on,
CustomBlocker syncs your rules automatically.
On/Off states of individual rules and CustomBlocker itself are not synced.
</p>
<dl style="font-size:90%">
<dt style="font-weight:bold">Regular Expression</dt>
<dd>https:\/\/twitter\.com\/.*\/following</dd>
<dt style="font-weight:bold">Wildcard</dt>
<dd>https://twitter.com/*/following</dd>
</dl>
<h3>"Search Range" is Optional</h3>
<p>
Previous versions requires fields named "Elements to Hide" and "Search Range" when you create a rule.
The latter field is now optional.
If "Search Range" is empty, CustomBlocker will search for keywords from whole elements specified with "Elements to Hide"."
"Import/Export" functionalities were removed because they are no longer useful.
</p>
<script type="text/javascript" src="../src/analytics.js"></script>
</body>
Expand Down
40 changes: 8 additions & 32 deletions extension/welcome_ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,19 @@
<body>
<div id="header">
<h1><img src="img/top_title.png" alt="CustomBlocker for Google Chrome"/></h1>
<h2>CustomBlocker 2.4の新要素</h2>
<h3>シンプルになったユーザインターフェイス</h3>
<h2>CustomBlocker 3.0 の新要素</h2>
<h3>リモート同期</h3>
<p>
今まで項目の多かったCustomBlockerのルール作成ダイアログをシンプルにしました。
利用頻度が低いと思われる項目を削り、「URL」「隠す要素」「条件」の3セクションに再構築しました。
CustomBlocker 3.0にはリモート同期機能が追加されました!
</p>
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td style="padding:4px">
<img src="img/help/old_ui.png"/>
</td>
<td style="padding:4px">
<img src="img/help/new_ui.png"/>
</td>
</tr>
</table>
<h3>ワイルドカードでURLを指定</h3>
<p>
今まではURLの指定に正規表現を用いていましたが、正規表現は直感的には読みにくく、プログラミングの経験のある人以外にはあまり親しみのないものです。
そこで、より簡単なワイルドカードを用いてURLを指定することができるようにしました。
「*」はあらゆる文字と一致します。
複数のマシンでルールを同期することができます。
Googleアカウントでログインし、 "<a href="chrome://settings/syncSetup">拡張機能の同期</a>" がオンになっていると、
CustomBlockerはルールを自動で同期します。
個別のルールや拡張自体のオン/オフは同期されません。
</p>
<dl style="font-size:90%">
<dt style="font-weight:bold">Regular Expression</dt>
<dd>https:\/\/twitter\.com\/.*\/following</dd>
<dt style="font-weight:bold">Wildcard</dt>
<dd>https://twitter.com/*/following</dd>
</dl>
<h3>「検索範囲」が必須ではなくなりました</h3>
<p>
以前のバージョンでは、「隠す要素」と「検索範囲」(「検索する要素」と表記していたバージョンもあります)の両方が必須となっていましたが、「検索範囲」は必須ではなくなりました。
「検索範囲」を省略した場合は、「隠す要素」全体からキーワードを探し、フィルタするかどうかを判断します。
複雑なルールを作りたいときだけ、「検索範囲」を指定してください。
このアップデートに伴い、インポート/エクスポート機能は無くなりました。
</p>
<script type="text/javascript" src="../src/analytics.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion ts/src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ chrome.runtime.onInstalled.addListener(function(details) {
console.log("New install.");
window.open(chrome.extension.getURL('/welcome_install_'+chrome.i18n.getMessage("extLocale")+'.html?install'));
}
else if (details.reason=="update" && details.previousVersion && details.previousVersion.match(/^2\.3\./)) {
else if (details.reason=="update" && details.previousVersion && details.previousVersion.match(/^2\./)) {
window.open(chrome.extension.getURL('/welcome_'+chrome.i18n.getMessage("extLocale")+'.html'));
}
});
Expand Down

0 comments on commit 01e5830

Please sign in to comment.