Skip to content

Commit

Permalink
Merge pull request gorhill#98 from NanoAdblocker/sync-latest
Browse files Browse the repository at this point in the history
Sync 1.14.25.101
  • Loading branch information
jspenguin2017 authored Jan 21, 2018
2 parents f9f75e7 + 8d51121 commit 3b563be
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 73 deletions.
5 changes: 4 additions & 1 deletion assets/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,10 @@
"off": true,
"title": "IRN: Adblock-Iran",
"lang": "fa",
"contentURL": "https://raw.githubusercontent.com/farrokhi/adblock-iran/master/filter.txt",
"contentURL": [
"https://cdn.rawgit.com/farrokhi/adblock-iran/master/filter.txt",
"https://raw.githubusercontent.com/farrokhi/adblock-iran/master/filter.txt"
],
"supportURL": "https://github.com/farrokhi/adblock-iran"
},
"ISL-0": {
Expand Down
4 changes: 2 additions & 2 deletions dist/description/description-fa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

بررسی تصویری از کارایی این محصول: https://github.com/gorhill/uBlock/wiki/uBlock-vs.-ABP:-efficiency-compared

کاربرد: دکمه ی پاور بزرگ در پنجره برای فعال یا غیر فعال کردن uBlock برای صفحه ی جاری است. فقط برای همین سایت اعمال میشود، دکمه ی پاوری برای تمام سایت ها نیست.
روش استفاده: دکمۀ قدرت بزرگ در پنجرۀ بالاپَر برای فعال یا غیرفعال کردن دائمی یوبلاک برای وب‌سایت فعلی می‌باشد. این فقط برای همین سایت اعمال میشود، این دکمه ی قدرتی برای تمام سایت ها نیست.

***

انعطاف پذیری آن بیشتر از "ad blocker" است: همچنین می تواند فیلتر ها را از هاست میزبان، بخواند و بسازد.
انعطاف پذیری آن بیشتر از "ad blocker" است: این یکی همچنین می تواند فیلتر‌هایی را از فایل‌های هاست‌های میزبان، خوانده و بسازد.

بیرون از جعبه، این لیست فیلترها بارگذاری و اجرا میشوند:

Expand Down
47 changes: 21 additions & 26 deletions platform/webext/vapi-webrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,46 +61,41 @@ vAPI.net.registerListeners = function() {
var wrApi = browser.webRequest;

// legacy Chromium understands only these network request types.
var validTypes = {
main_frame: true,
sub_frame: true,
stylesheet: true,
script: true,
image: true,
object: true,
xmlhttprequest: true,
other: true
};
var validTypes = new Set([
'image',
'main_frame',
'object',
'other',
'script',
'stylesheet',
'sub_frame',
'xmlhttprequest',
]);
// modern Chromium/WebExtensions: more types available.
if ( wrApi.ResourceType ) {
for ( let typeKey in wrApi.ResourceType ) {
if ( wrApi.ResourceType.hasOwnProperty(typeKey) ) {
validTypes[wrApi.ResourceType[typeKey]] = true;
validTypes.add(wrApi.ResourceType[typeKey]);
}
}
}

var denormalizeTypes = function(aa) {
if ( aa.length === 0 ) {
return Object.keys(validTypes);
return Array.from(validTypes);
}
var out = [];
var i = aa.length,
type,
needOther = true;
var out = new Set(),
i = aa.length;
while ( i-- ) {
type = aa[i];
if ( validTypes[type] ) {
out.push(type);
var type = aa[i];
if ( validTypes.has(type) ) {
out.add(type);
}
if ( type === 'other' ) {
needOther = false;
if ( type === 'image' && validTypes.has('imageset') ) {
out.add('imageset');
}
}
if ( needOther ) {
out.push('other');
}
return out;
return Array.from(out);
};

var punycode = self.punycode;
Expand Down Expand Up @@ -144,7 +139,7 @@ vAPI.net.registerListeners = function() {
let urls = this.onBeforeRequest.urls || ['<all_urls>'];
let types = this.onBeforeRequest.types || undefined;
if (
(validTypes.websocket) &&
(validTypes.has('websocket')) &&
(types === undefined || types.indexOf('websocket') !== -1) &&
(urls.indexOf('<all_urls>') === -1)
) {
Expand Down
22 changes: 11 additions & 11 deletions src/_locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "extension name."
},
"extShortDesc": {
"message": "Konečně efektivní blokovač, který nezatěžuje CPU a paměť.",
"message": "Konečně efektivní blokovač. Nezatěžuje CPU a paměť.",
"description": "this will be in the chrome web store: must be 132 characters or less"
},
"dashboardName": {
Expand Down Expand Up @@ -52,7 +52,7 @@
"description": "Message to be read by screen readers"
},
"popupPowerSwitchInfo2": {
"message": "Click to enable uBlock₀ for this site.",
"message": "Kliknutím povolíte uBlock₀ pro tento web.",
"description": "Message to be read by screen readers"
},
"popupBlockedRequestPrompt": {
Expand Down Expand Up @@ -96,47 +96,47 @@
"description": "Tooltip for the no-popups per-site switch"
},
"popupTipNoPopups1": {
"message": "Click to block all popups on this site",
"message": "Kliknutím zablokujete všechny popupy pro tento web",
"description": "Tooltip for the no-popups per-site switch"
},
"popupTipNoPopups2": {
"message": "Zhbllokoj të gjitha dritaret automatike të faqes",
"message": "Kliknutím vypnete blokování všech popupů pro tento web",
"description": "Tooltip for the no-popups per-site switch"
},
"popupTipNoLargeMedia": {
"message": "Přepnout blokování velkých multimediálních prvků na tomto webu",
"description": "Tooltip for the no-large-media per-site switch"
},
"popupTipNoLargeMedia1": {
"message": "Click to block large media elements on this site",
"message": "Kliknutím zablokujete velké multimediální prvky na tomto webu",
"description": "Tooltip for the no-large-media per-site switch"
},
"popupTipNoLargeMedia2": {
"message": "Click to no longer block large media elements on this site",
"message": "Kliknutím vypnete blokování velkých multimediálních prvků na tomto webu",
"description": "Tooltip for the no-large-media per-site switch"
},
"popupTipNoCosmeticFiltering": {
"message": "Přepnout kosmetické filtrování na tomto webu",
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
},
"popupTipNoCosmeticFiltering1": {
"message": "Click to disable cosmetic filtering on this site",
"message": "Kliknutím zakážete kosmetické filtrování na tomto webu",
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
},
"popupTipNoCosmeticFiltering2": {
"message": "Click to enable cosmetic filtering on this site",
"message": "Kliknutím povolíte kosmetické filtrování na tomto webu",
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
},
"popupTipNoRemoteFonts": {
"message": "Přepnout blokování vzdálených fontů pro tento web",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipNoRemoteFonts1": {
"message": "Click to block remote fonts on this site",
"message": "Kliknutím zablokujete externí\/vzdálené fonty na tomto webu",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipNoRemoteFonts2": {
"message": "Click to no longer block remote fonts on this site",
"message": "Kliknutím vypnete blokování externích\/vzdálených fontů na tomto webu",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipGlobalRules": {
Expand Down Expand Up @@ -512,7 +512,7 @@
"description": "Pretty name for behind-the-scene network requests"
},
"loggerCurrentTab": {
"message": "Current tab",
"message": "Aktivní list",
"description": "Appears in the logger's tab selector"
},
"logFilterPrompt": {
Expand Down
40 changes: 20 additions & 20 deletions src/_locales/fa/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"description": "appears as tab name in dashboard"
},
"statsPageName": {
"message": "uBlock₀ — لاگ درخواست های شبکه",
"message": "uBlock₀ — واقعه‌نگار",
"description": "Title for the logger window"
},
"aboutPageName": {
Expand Down Expand Up @@ -80,15 +80,15 @@
"description": "English: Click to open the dashboard"
},
"popupTipZapper": {
"message": "ورود به حالت انتخاب اشیاء",
"message": "ورود به حالت له کردن اشیاء",
"description": "Tooltip for the element-zapper icon in the popup panel"
},
"popupTipPicker": {
"message": "ورود به حالت انتخاب اشیاء",
"description": "English: Enter element picker mode"
},
"popupTipLog": {
"message": "رفتن به لاگ درخواست",
"message": "بازکردن واقعه‌نگار",
"description": "Tooltip used for the logger icon in the panel"
},
"popupTipNoPopups": {
Expand All @@ -104,15 +104,15 @@
"description": "Tooltip for the no-popups per-site switch"
},
"popupTipNoLargeMedia": {
"message": "تغییر وضعیت انسداد عناصر مدیای حجیم برای این سایت",
"message": "تغییر وضعیت مسدود کردن عناصر رسانه ای حجیم برای این سایت",
"description": "Tooltip for the no-large-media per-site switch"
},
"popupTipNoLargeMedia1": {
"message": "کلیک کنید تا عناصر رسانه ای حجیم بر روی این سایت مسدود شوند",
"description": "Tooltip for the no-large-media per-site switch"
},
"popupTipNoLargeMedia2": {
"message": "کلیک کنید تا دیگر عناصر رسانه ای حجیم روی این سایت مسدود نشوند",
"message": "کلیک کنید تا از این به بعد عناصر رسانه ای حجیم روی این سایت مسدود نشوند",
"description": "Tooltip for the no-large-media per-site switch"
},
"popupTipNoCosmeticFiltering": {
Expand All @@ -128,19 +128,19 @@
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
},
"popupTipNoRemoteFonts": {
"message": "تغییر وضعیت انسداد فونت های از راه دور برای این سایت",
"message": "تغییر وضعیت انسداد فونت های راه دور برای این سایت",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipNoRemoteFonts1": {
"message": "کلیک کنید تا فونت های راه دور در این سایت مسدود شوند",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipNoRemoteFonts2": {
"message": "کلیک کنید تا دیگر فونت های راه دور در این سایت مسدود نشوند",
"message": "کلیک کنید تا از این به بعد فونت های راه دور در این سایت مسدود نشوند",
"description": "Tooltip for the no-remote-fonts per-site switch"
},
"popupTipGlobalRules": {
"message": "قوانین همگانی: این ستون برای قوانینی است که به تمامی سایت ها اعمال می شود.",
"message": "قوانین همگانی: این ستون برای قوانینی است که برای همۀ سایت ها اعمال می شوند.",
"description": "Tooltip when hovering the top-most cell of the global-rules column."
},
"popupTipLocalRules": {
Expand All @@ -152,7 +152,7 @@
"description": "Tooltip when hovering over the padlock in the dynamic filtering pane."
},
"popupTipRevertRules": {
"message": "برای برگشت تغییرات کلیک کنید.",
"message": "برای دور انداختن تغییراتی که اعمال کرده اید کلیک کنید.",
"description": "Tooltip when hovering over the eraser in the dynamic filtering pane."
},
"popupAnyRulePrompt": {
Expand Down Expand Up @@ -260,15 +260,15 @@
"description": "For the tooltip of a link which gives access to advanced settings"
},
"settingsPrefetchingDisabledPrompt": {
"message": "غیر فعال کردن واکشی اولیه (برای جلوگیری از هر گونه اتصال برای درخواست های شبکه مسدود شده)",
"message": "غیر فعال کردن واکشی اولیه (برای جلوگیری از هر گونه اتصال برای درخواست های مسدود شدۀ شبکه)",
"description": "English: "
},
"settingsHyperlinkAuditingDisabledPrompt": {
"message": "غیرفعال کردن حسابرسی پیوند",
"description": "English: "
},
"settingsWebRTCIPAddressHiddenPrompt": {
"message": "ممنوع کردن WebRTC از افشاسازی آدرس های IP محلی",
"message": "جلوگیری کردن از WebRTC از افشاسازی آدرس های IP محلی",
"description": "English: "
},
"settingPerSiteSwitchGroup": {
Expand All @@ -292,7 +292,7 @@
"description": ""
},
"settingsNoCSPReportsPrompt": {
"message": "مسدود کردن گزارشات سیاست امنیت محتوا",
"message": "مسدود کردن براساس گزارشات سیاست امنیت محتوا",
"description": "background information: https:\/\/github.com\/gorhill\/uBlock\/issues\/3150"
},
"settingsStorageUsed": {
Expand Down Expand Up @@ -332,7 +332,7 @@
"description": "English: Parse and enforce Adblock+ element hiding filters."
},
"3pParseAllABPHideFiltersInfo": {
"message": "<p>این گزینه <a href=\"https:\/\/adblockplus.org\/en\/faq_internal#elemhide\">Adblock Plus-compatible &ldquo;element hiding&rdquo; filters<\/a> را تجزیه و اجرا میکند. این فیلتر ها اساساً فنی هستند، آنها اشیاء موجود در صفحه وب را که مزاحم تلقی میشوند و با موتور فیلترینگ شبکه قابل بلاک کردن نیستند را حذف میکنند.<\/p><p>فعال کردن این قابلیت مصرف حافظه ی <i>uBlock<\/i>را افزایش میدهد.<\/p>",
"message": "<p>این گزینه <a href=\"https:\/\/adblockplus.org\/en\/faq_internal#elemhide\">فیلترهای &ldquo;مخفی‌کردن اشیا&rdquo; سازگار با ادبلاک پلاس<\/a> را تجزیه و اجرا میکند. این فیلتر ها اساساً فنی هستند، آنها اشیاء موجود در صفحه وب را که مزاحم تلقی میشوند و با موتور فیلترینگ شبکه قابل بلاک کردن نیستند را حذف میکنند.<\/p><p>فعال کردن این قابلیت مصرف حافظه ی uBlock را افزایش میدهد.<\/p>",
"description": "Describes the purpose of the 'Parse and enforce cosmetic filters' feature."
},
"3pIgnoreGenericCosmeticFilters": {
Expand Down Expand Up @@ -396,7 +396,7 @@
"description": "used as a tooltip for the spinner icon beside a list"
},
"3pNetworkError": {
"message": "یک خطای شبکه از بروزشدن منابع جلوگیری کرد.",
"message": "یک خطای شبکه از بروزشدن این منبع جلوگیری کرد.",
"description": "used as a tooltip for error icon beside a list"
},
"1pFormatHint": {
Expand Down Expand Up @@ -524,7 +524,7 @@
"description": "Tooltip informaing that the input field is to set the maximum number of entries in the log"
},
"loggerURLFilteringContextLabel": {
"message": "محتوی:",
"message": "زمینه:",
"description": "Label for the context selector"
},
"loggerURLFilteringTypeLabel": {
Expand Down Expand Up @@ -576,7 +576,7 @@
"description": "Used in the static filtering wizard"
},
"loggerStaticFilteringFinderSentence1": {
"message": "انسداد ایستا {{filter}} یاقت شد در:",
"message": "انسداد ایستا {{filter}} یافت شد در:",
"description": "Below this sentence, the filter lists in which the filter was found"
},
"aboutChangelog": {
Expand Down Expand Up @@ -624,15 +624,15 @@
"description": "Message to display when an error occurred during restore"
},
"aboutResetDataConfirm": {
"message": "تمام تنظیمات شده حذف و uBlock₀ دوباره راه اندازی خواهد شد.\n\nتنظیم مجدد uBlock₀ به تنظیمات کارخانه؟",
"message": "تمام تنظیمات شما حذف شده و uBlock₀ دوباره راه اندازی خواهد شد.\n\nتنظیم مجدد uBlock₀ به تنظیمات کارخانه؟",
"description": "Message asking user to confirm reset"
},
"errorCantConnectTo": {
"message": "خطای شبکه: {{msg}}",
"description": "English: Network error: {{msg}}"
},
"subscriberConfirm": {
"message": "uBlock₀: لینک زیر به لیست فیلتر ها اضافه شود؟\n\nعنوان: \"{{title}}\"\nآدرس: {{url}}",
"message": "uBlock₀: آدرس اینترنتی زیر به فهرست فیلتر های سفارشی شما اضافه شود؟\n\nعنوان: \"{{title}}\"\nآدرس: {{url}}",
"description": "English: The message seen by the user to confirm subscription to a ABP filter list"
},
"elapsedOneMinuteAgo": {
Expand Down Expand Up @@ -664,7 +664,7 @@
"description": "Firefox\/Fennec-specific: Show Dashboard"
},
"showNetworkLogButton": {
"message": "نمایش درخواست ثبت شبکه",
"message": "نمایش واقعه‌نگار",
"description": "Firefox\/Fennec-specific: Show Logger"
},
"fennecMenuItemBlockingOff": {
Expand All @@ -680,7 +680,7 @@
"description": "English: Because of the following filter"
},
"docblockedNoParamsPrompt": {
"message": "بدون پارامتر",
"message": "بدون پارامترها",
"description": "label to be used for the parameter-less URL: https:\/\/cloud.githubusercontent.com\/assets\/585534\/9832014\/bfb1b8f0-593b-11e5-8a27-fba472a5529a.png"
},
"docblockedFoundIn": {
Expand Down
Loading

0 comments on commit 3b563be

Please # to comment.