Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 149 additions & 0 deletions esr153/Addon-Acrobat
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Addon-Acrobat-1: 初期設定を変更するかどうか

:1: 変更する

*.cfg / *.jsc:
// codes to initialize configuration of Adobe Acrobat addon
async function setLocalStorageFor(aAddonId, aValues = {}) {
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
const { Services } = Cu.import('resource://gre/modules/Services.jsm', {});
const { FileUtils } = Cu.import('resource://gre/modules/FileUtils.jsm', {});
const { OS } = Cu.import("resource://gre/modules/osfile.jsm", {});

const file = Services.dirsvc.get('ProfD', Ci.nsIFile);
file.append('browser-extension-data');
if (!file.exists())
file.create(Ci.nsIFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
file.append(aAddonId);
if (!file.exists())
file.create(Ci.nsIFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
file.append('storage.js');

let oldValues = {};
if (file.exists()) {
try {
const contents = await OS.File.read(file.path, {});
oldValues = JSON.parse(contents);
}
catch(e) {
}
}
else {
const fd = await OS.File.open(file.path, { create: true });
fd.close();
}

const newValues = Object.assign({}, oldValues, aValues);
try {
await OS.File.writeAtomic(file.path, JSON.stringify(newValues), { tmpPath: `${file.path}.tmp` });
}
catch(e) {
}
}

:2: 変更しない (既定)

-

Addon-Acrobat-2: 初回起動ページの表示

:1: 表示する(既定)

-

:2: 表示しない

*.cfg / *.jsc:
// Addon-Acrobat-1に依存
setLocalStorageFor('web2pdfextension.17@acrobat.adobe.com', {
// Do not show https://helpx.adobe.com/acrobat/kb/acrobat-pro-firefox-extension.html on firstrun
extnfte: { name: 'fte' }
});

Addon-Acrobat-3: 使用状況の送信の可否

:1: 送信する(既定)

-

:2: 送信しない

defaults\chrome\userContent.css:
input[class="analytics"],
#web2pdfOptions,
#web2pdfOptOut,
#web2pdfPrivacy,
#web2pdfSave {
opacity: 0.5 !important;
pointer-events: none !important;
-moz-user-focus: ignore !important;
}

fainstall.ini:
[userContent.css]
TargetLocation=%AppDir%/defaults/chrome/

*.cfg / *.jsc:
// Addon-Acrobat-1に依存
setLocalStorageFor('web2pdfextension.17@acrobat.adobe.com', {
analyticspref: { value: false }
});

// 旧版Adobe Acrobat 2017向け
let { classes: Cc, interfaces: Ci, utils: Cu } = Components;
let { Services } = Cu.import('resource://gre/modules/Services.jsm', {});
function tryInitializeCookie() {
let { FileUtils } = Cu.import('resource://gre/modules/FileUtils.jsm', {});
let { OS } = Cu.import("resource://gre/modules/osfile.jsm", {});
try {
let uuids = Services.prefs.getCharPref("extensions.webextensions.uuids");
if (uuids) {
let json = JSON.parse(uuids);
let host = json["web2pdfextension.17@acrobat.adobe.com"];
if (host) {
let cm = Cc["@mozilla.org/cookiemanager;1"].getService(Ci.nsICookieManager2);
let expiry = Date.now() + 24 * 60 * 60 * 1000;
if (cm.countCookiesFromHost(host) > 0) {
try {
cm.remove(host, "logAnalytics", "/", false, "");
} catch(e) {
// ignore error for missing cookie value
}
}
cm.add(host, "/", "logAnalytics", false, false, false, false, expiry, {});
}
}
} catch (e) {
}
}
tryInitializeCookie();
Services.prefs.addObserver("extensions.webextensions.uuids", function(aSubject, aTopic, aData) {
if (aData == "extensions.webextensions.uuids" && aTopic == "nsPref:changed")
tryInitializeCookie();
}, false);

// Instal userContent.css
(() => {
let { classes: Cc, interfaces: Ci, utils: Cu } = Components;
let { Services } = Cu.import('resource://gre/modules/Services.jsm', {});
let { FileUtils } = Cu.import('resource://gre/modules/FileUtils.jsm', {});

let destDir = Services.dirsvc.get('ProfD', Ci.nsIFile);
destDir.append('chrome');
if (!destDir.exists())
destDir.create(Ci.nsIFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);

let sourceFile = Services.dirsvc.get('GreD', Ci.nsIFile);
sourceFile.append('defaults');
sourceFile.append('chrome');
sourceFile.append('userContent.css');
let destFile = destDir.clone();
destFile.append('userContent.css');
if (destFile.exists())
destFile.remove(true);
sourceFile.copyTo(destDir, null);
})();
176 changes: 176 additions & 0 deletions esr153/Addon-IEView
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Addon-IEView-1: IEの起動

:1: 自動では起動しない(既定)

-

:2: 特定サイトでIEを自動起動(MCD)

*.cfg / *.jsc:
lockPref("extensions.ieview.forceielist", "(半角スペース区切りのURLのリスト)");

:4: 特定サイトでIEを自動起動(ポリシー設定)

"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"forceielist": "(半角スペース区切りのURLのリスト)"
}
}
},

:3: 特定サイトをIEを自動起動し、Firefox側のタブを閉じる(MCD)

*.cfg / *.jsc:
lockPref("extensions.ieview.forceielist", "(半角スペース区切りのURLのリスト)");
lockPref("extensions.ieview.closeReloadPage", true);

:5: 特定サイトをIEを自動起動し、Firefox側のタブを閉じる(ポリシー設定)

"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"forceielist": "(半角スペース区切りのURLのリスト)",
"closeReloadPage": true
}
}
},

Addon-IEView-2: 起動するIEの設定

:1: パスと起動オプションを指定する(MCD)

*.cfg / *.jsc:
lockPref("extensions.ieview.ieapp", "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe");
lockPref("extensions.ieview.ieargs", "");

:2: パスと起動オプションを指定する(ポリシー設定)

"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"ieapp": "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
"ieargs": ""
}
}
},

Addon-IEView-3: [廃止] 閲覧中のページへの広告の埋め込み(アドウェアとしての動作)

:1: [廃止] 許可する(既定)

[廃止]

:2: [廃止] 禁止する

[廃止]

Addon-IEView-4: IE View WEの使用

:1: [廃止] サイドローディング形式でインストールする

[廃止]

:2: ポリシー設定でインストールする

distribution\policies.json:
"ExtensionSettings": {
"ieview-we@clear-code.com": {
"installation_mode": "force_installed",
"install_url": "file:///c:/Program%20Files/Mozilla%20Firefox/distribution/ieview-we@clear-code.com.xpi"
}
},

fainstall.ini:
[ieview-we@clear-code.com.xpi]
AddonId=ieview-we@clear-code.com
TargetLocation=%AppDir%/distribution
Unpack=false

Addon-IEView-5: IE View WEのコンテキストメニュー

:1: 使用する(既定)

-

:2: 使用しない

distribution\policies.json:
"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"contextMenu": false
}
}
},

Addon-IEView-6: IEで開かない例外サイト

:1: 指定しない(既定)

-

:2: 指定する

distribution\policies.json:
"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"disableException": false,
"sitesOpenedBySelf": "http://...\r\nhttp://...\r\n"
}
}
},

Addon-IEView-7: IEで開くページの検出対象

:1: トップレベルのフレームへの読み込みのみ

distribution\policies.json:
"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"onlyMainFrame": true
}
}
},

:2: すべてのフレームの読み込み

distribution\policies.json:
"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"onlyMainFrame": false
}
}
},

Addon-IEView-8: URLのマッチング時にクエリ文字列を無視するかどうか

:1: 無視する

distribution\policies.json:
"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"ignoreQueryString": true
}
}
},

:2: 無視しない

distribution\policies.json:
"3rdparty": {
"Extensions": {
"ieview-we@clear-code.com": {
"ignoreQueryString": false
}
}
},

18 changes: 18 additions & 0 deletions esr153/Addon-Skysea
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Addon-Skysea-1: Skyseaのインストール

:1: インストールしない(既定)

-

:2: インストールする

distribution\policies.json:
"Extensions": {
"Install": ["C:\\Program Files (x86)\\Sky Product\\SKYSEA Client View\\FxAddonSigned\\skysea-fxaddonWebExt2.xpi.16.1.1.216"],
"Locked": ["addon-firefox-WebExt2@skysea.skygroup.jp"],
"Uninstall": ["addon-firefox-WebExt2@skysea.skygroup.jp.16.1.1.216"]
},
Loading