diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 94a6bbd..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -patreon: itsizzy -ko_fi: itsizzy -github: izzy diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 2fcf1c6..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index bbcbbe7..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 2a33415..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,140 +0,0 @@ -CHANGELOG -============================= -* 5.1.1 - * Fixed a bug where some translations would not be retrieved properly - * Fixed a bug where the Timestamp to Date function would sometimes return [object Object] -* 5.1.0 - * Added browser polyfill in preparation for Firefox compatibility -* 5.0.2 - * Added light/dark mode style to settings - * Slight style improvements for settings -* 5.0.1 - * Added light/dark mode style to injected div -* 5.0.0 - * Upgrade to Extension Manifest v3 -* 4.9.0 - * Upgraded quoted printable decode to newer version -* 4.8.0 - * Upgraded unserialize to newer version -* 4.7.0 - * Added Bengali translation - * Added Bulgarian translation - * Added Chinese(zh_CN) translation - * Added Chinese(zh_TW) translation - * Added Croatian translation - * Added Czech translation - * Added Danish translation - * Added Hindi translation - * Added Hungarian translation - * Added Indonesian translation - * Added Japanese translation - * Added Kanada translation - * Added Ukrainian translation -* 4.6.0 - * Added Turkish translations - * Added Greek translations - * Added Spanish translations -* 4.5.0 - * Added French translations - * Added Russian translations - * Added Spanish translations - * Added Polish translations -* 4.4.0 - * Added Dutch translations -* 4.3.0 - * Added Portuguese - Brazil translation -* 4.2.0 - * Fixes missing permission ClipboardRead - * Removes unneeded permission tabs -* 4.1.0 - * Removed native notifications output type (see #25) -* 4.0.0 - * Added i18n capabilities - * Added English translation - * Added German translation -* 3.0.0 - * Updated Options UI to Chrome's more modern v2 options - * Changed storage to Chrome's sync storage -* 2.1.0 - * Added ASCII to Text function - * Added Text to ASCII function -* 2.0.7 - * Fixed duplicate base64 options entry -* 2.0.5 - * Fixed broken unserialize function -* 2.0.4 - * Fixed update of context menu after disabling menu items -* 2.0.3 - * Fixed broken install -* 2.0.2 - * Small updates to options page -* 2.0.1 - * Bugfix: Fixed broken encryptions -* 2.0.0 - * Rewrite of core code to drop library - * Updated options page theme - * Rewrite of options page code -* 1.3.0 - * Feature: New menu for direct in-clipboard-conversion -* 1.2.6 - * Bugfix: Problems with context menu customization -* 1.2.5 / 1.2.4 - * Packaging problems -* 1.2.3 - * Added function URI encode - * Added function URI decode - * Added link to menu in context menu -* 1.2.2 - * Fixed not-working outputs (manifest v2 regression) -* 1.2.1 - * Fixed not-working options-page (manifest v2 regression) -* 1.2.0 - * Added function reverse -* 1.1.0 - * Changed manifest to version 2 -* 1.0.0 - * Added in-place conversion -* 0.6.0 - * Added automatic clipboard funtionality - * Added div-style clipboard button -* 0.5.0 - * Added function bin2txt - * Added function L33T encode - * Added function L33T decode -* 0.4.2 - * Fixed output of serialize function -* 0.4.1 - * Fixed broken output -* 0.4 - * Instant change of context menu items after removing/adding functions - * Div-output is now resizable in height - * Added function base64 encode - * Added function base64 decode - * Added function unserialize -* 0.3: - * Re-designed the options page to fit better into Chrome - * Removed save and cancel button on options page - * Changes made on the options page are saved immediately - * Added DIV-output - * Added Console.log()-output -* 0.2: - * Moved the options from browser action to options page - * Fixed the image for HTML5 notifications -* 0.1: - * Output via alert() and native HTML5 Notifications - * Functions: - * Timestamp decoding - * rot13 en-/decoding - * base64 encoding - * base64 decoding - * CRC32 hashing - * MD5 hashing - * SHA1 hashing - * bin2hex - * HTML entity encoding - * HTML entity decoding - * HTML specialchars encoding - * HTML specialchars decoding - * Quoted printable decoding - * Quoted printable encoding - * Escapeshellarg \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index fd4561a..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,76 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal -appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at github@unikorn.me. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq diff --git a/LICENSE b/LICENSE index 4cacbb3..2fe9495 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2022 izzy +Copyright (c) 2013 Izzy Kulbe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/README.md b/README.md index 54fcbda..82f9a4a 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,87 @@ -# d3coder +d3coder +============================= -Google Chrome encoding/decoding plugin for various types of encoding like +Google Chrome Encoding/Decoding Plugin for various types of encoding like base64, rot13 or unix timestamp conversion. -## Installation +CHANGELOG +============================= -You can find the extension in both the [chrome web store](https://chrome.google.com/webstore/detail/d3coder/gncnbkghencmkfgeepfaonmegemakcol) as well as on the [Edge Add-Ons site](https://microsoftedge.microsoft.com/addons/detail/d3coder/aoahkgomfkgnhngkoooepnmdfmngcohk) - -This should cover most Chromium-based browser that support web stores. - -### Firefox - -Due to the lack of support for Extension Manifest v3 Firefox is currently not supported. - -## Changelog - -The full changelog can be found in [CHANGELOG.md](CHANGELOG.md) - -## Contributing - -Before contributing please make sure you have understood the [Code of Conduct](CODE_OF_CONDUCT.md). - -Please be aware that the code itself is undergoing a major rewrite at the -moment to accomodate changes needed for the [extension manifest v3](https://developer.chrome.com/docs/extensions/mv3/intro/). - -If you have any questions feel free to drop me a DM at any of my socials or in -my [Discord](https://discord.gg/yRTM7H2tek). +* 2.0.5 + * Fixed broken unserialize function +* 2.0.4 + * Fixed update of context menu after disabling menu items +* 2.0.3 + * Fixed broken install +* 2.0.2 + * Small updates to options page +* 2.0.1 + * Bugfix: Fixed broken encryptions +* 2.0.0 + * Rewrite of core code to drop library + * Updated options page theme + * Rewrite of options page code +* 1.3.0 + * Feature: New menu for direct in-clipboard-conversion +* 1.2.6 + * Bugfix: Problems with context menu customization +* 1.2.5 / 1.2.4 + * Packaging problems +* 1.2.3 + * Added function URI encode + * Added function URI decode + * Added link to menu in context menu +* 1.2.2 + * Fixed not-working outputs (manifest v2 regression) +* 1.2.1 + * Fixed not-working options-page (manifest v2 regression) +* 1.2.0 + * Added function reverse +* 1.1.0 + * Changed manifest to version 2 +* 1.0.0 + * Added in-place conversion +* 0.6.0 + * Added automatic clipboard funtionality + * Added div-style clipboard button +* 0.5.0 + * Added function bin2txt + * Added function L33T encode + * Added function L33T decode +* 0.4.2 + * Fixed output of serialize function +* 0.4.1 + * Fixed broken output +* 0.4 + * Instant change of context menu items after removing/adding functions + * Div-output is now resizable in height + * Added function base64 encode + * Added function base64 decode + * Added function unserialize +* 0.3: + * Re-designed the options page to fit better into Chrome + * Removed save and cancel button on options page + * Changes made on the options page are saved immediately + * Added DIV-output + * Added Console.log()-output +* 0.2: + * Moved the options from browser action to options page + * Fixed the image for HTML5 notifications +* 0.1: + * Output via alert() and native HTML5 Notifications + * Functions: + * Timestamp decoding + * rot13 en-/decoding + * base64 encoding + * base64 decoding + * CRC32 hashing + * MD5 hashing + * SHA1 hashing + * bin2hex + * HTML entity encoding + * HTML entity decoding + * HTML specialchars encoding + * HTML specialchars decoding + * Quoted printable decoding + * Quoted printable encoding + * Escapeshellarg diff --git a/_locales/ar/messages.json b/_locales/ar/messages.json deleted file mode 100644 index 1be3c2e..0000000 --- a/_locales/ar/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Encoding/Decoding Plugin for various types of encoding like base64, rot13 or unix timestamp conversion", - "description": "Short description of the extension" - }, - "settings": { - "message": "الإعدادات", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "نوع الرسالة", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "استعمال alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "سجل في وحدة التحكم (console)", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "إضافة عنصر HTML أسفل الصفحة", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "استخدم التحديد واستبدل النص في مكانه", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "انسخ النتائج إلى الحافظة (Clipboard) بعد التحويل (اعلم أن هذا قد يتجاوز البيانات الموجودة في الحافظة الخاصة بك ، لذا استخدم بحذر!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "تفعيل المهام", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "يمكنك تفعيل أو إلغاء المهام", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "تحويل الطابع الزمني", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "النظام الثنائي إلى النظام السداسي عشري (bin2hex)", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "النظام الثنائي إلى نص", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII إلى النظام السداسي عشري", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "النظام السداسي عشري إلى ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "فك تشفير HTML entity", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "تشفير URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "فك تشفير URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "تشفير الرموز الخاصة HTML", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "فك تشفير الرموز الخاصة HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "فك تشفير Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "تشفير Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "تشفير Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "فك تشفير Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "فك تشفير L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "تشفير L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "عكس النص", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "تم نسخ النص إلى الحافظة!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "نسخ التحويلات السابقة إلى الحافظة", - "description": "" - }, - "options_saved": { - "message": "تم حفظ الإعدادات.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/bg/messages.json b/_locales/bg/messages.json deleted file mode 100644 index 17fc9e4..0000000 --- a/_locales/bg/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Име на разширението" - }, - "extDescription": { - "message": "Encoding/Decoding Plugin за различни типове кодиране като base64, rot13 или unix timestamp преобразуване", - "description": "Кратко описание на разширението" - }, - "settings": { - "message": "Настройки", - "description": "Заглавие на диалоговия прозорец за настройки за разширението" - }, - "message_type": { - "message": "Тип съобщение", - "description": "Как ще изглежда преобразуваният текст" - }, - "type_alert": { - "message": "Използване на alert()", - "description": "Настройка, която позволява съобщенията да се показват в полето за предупреждение" - }, - "type_console": { - "message": "Запиши в конзолата", - "description": "Настройка, която позволява съобщенията да се показват в JS конзолата" - }, - "type_html": { - "message": "Добавяне на HTML елемент в долната част на сайта", - "description": "Настройка, която позволява съобщенията да се показват в HTML елемент, вмъкнат в страницата" - }, - "type_inplace": { - "message": "Използвайте селекцията и заменете текста на това място", - "description": "Настройка, която позволява съобщенията да се показват като заместител на оригиналния текст" - }, - "copy_results_to_clipboard": { - "message": "Копирайте резултатите в клипборда след преобразуване (имайте предвид, че това може да замени данните в клипборда, така че използвайте внимателно!)", - "description": "Етикет на квадратчето за отметка, което позволява копиране на клипборда след копиране в настройките" - }, - "activate_functions": { - "message": "Активиране на функции", - "description": "Заглавие на частта от настройките, която (де)активира функции за декодиране / кодиране" - }, - "activate_functions_description": { - "message": "Можете да включвате и изключвате различните функции в контекстното меню.", - "description": "Описание на частта от настройките, която (де)активира функции за декодиране / кодиране" - }, - "function_rot13": { - "message": "ROT13", - "description": "Име на функция за ROT13" - }, - "function_timestamp": { - "message": "Timestamp преобразуване", - "description": "Име на функция за преобразуване на UNIX Timestamp" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Име на функция за bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Име на функция за bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII към Hex", - "description": "Име на функция за ASCII към Hex" - }, - "function_hex2ascii": { - "message": "Hex към ASCII", - "description": "Име на функция за Hex към ASCII" - }, - "function_html_entity_decode": { - "message": "Декодиране на HTML обект", - "description": "Име на функция за декодиране на HTML обект" - }, - "function_html_entities": { - "message": "HTML обекти", - "description": "Име на функция за HTML обекти" - }, - "function_uri_encode": { - "message": "URI кодиране", - "description": "Име на функция за URI кодиране" - }, - "function_uri_decode": { - "message": "URI декодиране", - "description": "Име на функция за URI декодиране" - }, - "function_htmlspecialchars": { - "message": "Кодиране на специални символи в HTML", - "description": "Име на функция за кодиране на специални символи в HTML" - }, - "function_htmlspecialchars_decode": { - "message": "Декодиране на специални символи в HTML", - "description": "Име на функция за декодиране на специални символи в HTML" - }, - "function_md5": { - "message": "MD5", - "description": "Име на функция за MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Име на функция за SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Име на функция за CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable декодиране", - "description": "Име на функция за Quoted printable декодиране" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable кодиране", - "description": "Име на функция за Quoted printable кодиране" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Име на функцията за Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 кодиране", - "description": "Име на функцията за Base64 кодиране" - }, - "function_base64_decode": { - "message": "Base64 декодиране", - "description": "Име на функцията за Base64 декодиране" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Име на функцията за Unserialize" - }, - "function_leet_decode": { - "message": "L33T декодиране", - "description": "Име на функцията за L33T декодиране" - }, - "function_leet_encode": { - "message": "L33T кодиране", - "description": "Име на функцията за L33T кодиране" - }, - "function_reverse_text": { - "message": "Обратен текст", - "description": "Име на функция за обратен текст" - }, - "message_copied_to_clipboard": { - "message": "Съобщението е копирано в клипборда!", - "description": "Съобщение при успешно копиране на текст в клипборда" - }, - "copy_last_conversion_to_clipboard": { - "message": "Копирайте последното преобразуване в клипборда", - "description": "" - }, - "options_saved": { - "message": "Настройките са запазени.", - "description": "Съобщение за успех, когато потребителските настройки са успешно запазени" - } -} \ No newline at end of file diff --git a/_locales/bn/messages.json b/_locales/bn/messages.json deleted file mode 100644 index 9f2c556..0000000 --- a/_locales/bn/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "বেস 64, রট 13 বা ইউনিক্স টাইমস্ট্যাম্প রূপান্তর যেমন এনকোডিংয়ের বিভিন্ন ধরণের জন্য এনকোডিং / ডিকোডিং প্লাগইন", - "description": "Short description of the extension" - }, - "settings": { - "message": "সেটিংস", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "বার্তা প্রকার", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "ব্যবহার alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "কনসোলে লগইন করুন", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "সাইটের নীচে একটি HTML উপাদান যুক্ত করা", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "নির্বাচনটি ব্যবহার করুন এবং স্থানটিতে পাঠ্যটি প্রতিস্থাপন করুন", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "রূপান্তরের পরে ক্লিপবোর্ডে ফলাফলগুলি অনুলিপি করুন (সচেতন হন যে এটি আপনার ক্লিপবোর্ডের ডেটা ওভাররাইড করতে পারে, তাই সতর্কতার সাথে ব্যবহার করুন!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "সক্রিয় ক্রিয়াকলাপ", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "আপনি প্রসঙ্গ মেনুতে বিভিন্ন ফাংশনটি চালু এবং বন্ধ করতে পারেন।", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "টাইমস্ট্যাম্প রূপান্তর", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII to Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex to ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML সত্তা ডিকোড", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML সত্তা", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI এনকোড", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI ডিকোড", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML বিশেষ অক্ষর এনকোড", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML বিশেষ অক্ষর ডিকোড", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "উদ্ধৃত মুদ্রণযোগ্য ডিকোড", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "উদ্ধৃত মুদ্রণযোগ্য এনকোড", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "এস্কেপশেল্লার্গ", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "বেস 64 এনকোডেড", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "বেস 64 ডিকোড", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "আনসিরিয়ালাইজ করুন", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T ডিকোড", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T এনকোড", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "বিপরীত পাঠ্য", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "ক্লিপ বোর্ডে বার্তা অনুলিপি করা হয়েছে!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "ক্লিপবোর্ডে সর্বশেষ রূপান্তর অনুলিপি করুন", - "description": "" - }, - "options_saved": { - "message": "বিকল্পগুলি সংরক্ষিত।", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/ca/messages.json b/_locales/ca/messages.json deleted file mode 100644 index bdc5cf3..0000000 --- a/_locales/ca/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Plugin de Codificació/Decodificació per a diferents tipus de codificació com base64, rot13 o unix", - "description": "Short description of the extension" - }, - "settings": { - "message": "Configuració", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Tipus de Missatge", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Utilitzant alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Enviar a consola", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Afegir un element HTML al final de la pàgina", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Utilitzar la selecció i reemplaci el text del seu lloc", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Copiar els resultats al portapapers després de la conversió (tindre en compte que aixo pot anular les dades del seu portapapers, Utilitzar amb precaució!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Activar Funcions", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Es pot activar i desactivar les diferents funcions del menú contextual", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Conversió Timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII a Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex a ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Decodificar entitat HTML ", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "Entitats HTML", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Codificació URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Decodificació URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Codificació de caracters especials HTML", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Decodificació de caracters especials a HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Decodificació de Citat imprimible", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Codificació de Citat imprimible", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Codificació Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Decodificació Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Deserialitzar", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Decodificació L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Codificació L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Invertir text", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Missatge copiat al portapapers!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Copiar l'última conversió al portapapers", - "description": "" - }, - "options_saved": { - "message": "Opcions guardades.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/cs/messages.json b/_locales/cs/messages.json deleted file mode 100644 index fd1b1ef..0000000 --- a/_locales/cs/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "(De)kódovací plugin pro různé typy kódování jako base64, rot13 nebo unix timestamp", - "description": "Short description of the extension" - }, - "settings": { - "message": "nastavení", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Forma výstupu", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Použití alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Logování do konzole", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Přidání HTML elementu na konec stránky", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Nahrazení označeného textu", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Kopírování textu do schránky (pozor, tohle přepíše data ve schránce!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Aktivovat funkce", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Můžete zapnout nebo vypnout jednotlivé funkce v kontextovém menu.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Unix timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "z ASCII do Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "z Hex do ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "dekódovat z HTML entities", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "zakódvat do HTML entities", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "zakódovat do URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "dekódovat z URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "zakódovat do HTML special chars", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "dekódvat z HTML special chars", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "dekódovat z Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "zakódovat do Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "zakódovat do Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "dekódovat z Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "dekódovat z L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "zakódovat do L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Obrátit text", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Zpráva zkopírována do schránky!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Zkopírovat poslední výsledek do schránky", - "description": "" - }, - "options_saved": { - "message": "Nastavení uloženo.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/da/messages.json b/_locales/da/messages.json deleted file mode 100644 index a966266..0000000 --- a/_locales/da/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Navnet på extensionen" - }, - "extDescription": { - "message": "Encoding/Decoding plugin for forskellige typer af encodings såsom base65, rot13 eller unix tidsstempel konvertering", - "description": "Kort beskrivelse af extensionen" - }, - "settings": { - "message": "Indstillinger", - "description": "Titlen på indstillings dialogen for extensionen" - }, - "message_type": { - "message": "Besked type", - "description": "Hvordan den konverterede tekst vil blive vist" - }, - "type_alert": { - "message": "Bruger alert()", - "description": "Indstilling der gør det muligt for beskederne at blive vist i en alert box" - }, - "type_console": { - "message": "Log til konsolen", - "description": "Indstilling der gør det muligt for beskederne at blive vist i JS konsolen" - }, - "type_html": { - "message": "Læg et HTML element til bunden af siden", - "description": "Indstilling der gør det muligt for beskerne at blive vist i et HTML element indsat på siden" - }, - "type_inplace": { - "message": "Brug det valgte og erstat teksten på stedet", - "description": "Indstilling der gør det muligt for beskerne at blive som en erstatning af den orginale text" - }, - "copy_results_to_clipboard": { - "message": "Kopier resultater fra udklipsholder efter konvertering (vær opmærksom på at dette kan overskrive data i din udklipsholder, så brug med omhu)", - "description": "Mærkat på checkboxen der aktivere udklipsholder-kopier efter-konvertering i indstillingen" - }, - "activate_functions": { - "message": "Aktiver funktioner", - "description": "Titlen på den del af indstillingerne der (de)aktivere de/encoding funktionerne" - }, - "activate_functions_description": { - "message": "Du kan slå de forskellige funktiner i context menuen til og fra", - "description": "Beskrivelse af den del af indstillingerne der (de)aktivere de/encoding funktionerne" - }, - "function_rot13": { - "message": "ROT13", - "description": "Funktions navnet for ROT13" - }, - "function_timestamp": { - "message": "Tidsstempel konvertering", - "description": "Funktions navnet for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Funktions navnet for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Funktions navnet for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII til Hex", - "description": "Funktions navnet for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex til ASCII", - "description": "Funktions navnet for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML entity decode", - "description": "Funktions navnet for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Funktions navnet for HTML entities" - }, - "function_uri_encode": { - "message": "URI encode", - "description": "Funktions navnet for URI encode" - }, - "function_uri_decode": { - "message": "URI decode", - "description": "Funktions navnet for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML special chars encode", - "description": "Funktions navnet for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML special chars decode", - "description": "Funktions navnet for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Funktions navnet for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Funktions navnet for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Funktions navnet for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable decode", - "description": "Funktions navnet for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable encode", - "description": "Funktions navnet for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Funktions navnet for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 encode", - "description": "Funktions navnet for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 decode", - "description": "Funktions navnet for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Funktions navnet for Unserialize" - }, - "function_leet_decode": { - "message": "L33T Decode", - "description": "Funktions navnet for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T Encode", - "description": "Funktions navnet for L33T Encode" - }, - "function_reverse_text": { - "message": "Spejlvende Text", - "description": "Funktions navnet for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Besked kopieret til udklipsholder!", - "description": "Beskeden da teksten var kopieret til udklipsholderen succesfuld" - }, - "copy_last_conversion_to_clipboard": { - "message": "Kopier sidste konvertering til udklipsholder", - "description": "" - }, - "options_saved": { - "message": "Indstilling gemt", - "description": "Succes besked når bruger indstillingerne blev gemt sucessfuldt" - } -} \ No newline at end of file diff --git a/_locales/de/messages.json b/_locales/de/messages.json deleted file mode 100644 index 82885db..0000000 --- a/_locales/de/messages.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Encoding/Decoding Erweiterung für verschiedene Encodings wie base64, rot13 oder Unixzeit", - "description": "Short description of the extension" - }, - "settings": { - "message": "Einstellungen", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Art der Anzeige", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "alert() nutzen", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "In die Konsole schreiben", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Ein HTML Element in das Ende der Seite anfügen", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Den selektierten Text ersetzen", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Ergebnisse nach der Konvertierung in die Zwischenablage kopieren(kann existierende Daten in der Zwischenablage ersetzen)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Aktive Funktionen", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Funktionen im Kontextmenü aktivieren oder deaktivieren.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_timestamp": { - "message": "Unixzeit konvertieren", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_reverse_text": { - "message": "Text umkehren", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Text erfolgreich in die Zwischenablage kopiert!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Letzten konvertierten Text in die Zwischenablage konvertieren", - "description": "" - }, - "options_saved": { - "message": "Einstellungen gespeichert", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/el/messages.json b/_locales/el/messages.json deleted file mode 100644 index a7fcbd5..0000000 --- a/_locales/el/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Plugin για κρυπτογράφηση/αποκρυπτογράφηση πολλαπλών τύπων όπως base64, rot13 ή μετατροπή unix timestamp", - "description": "Short description of the extension" - }, - "settings": { - "message": "Ρυθμίσεις", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Τύπος κειμένου", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Χρήση alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Εγγραφή στην κονσόλα", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Προσθήκη HTML element στο τέλος της σελίδας", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Χρήση επιλογής και αντικατάσταση αρχικού κειμένου", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Αντιγραφή αποτελέσματος μετά την μετατροπή (προσοχή αν υπάρχει ήδη κείμενο στο πρόχειρο θα χαθεί)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Ενεργοποίηση λειτουργίας", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Μπορείτε να ενεργοποιήσετε και απενεργοποιήσετε τις λειτουργίες απο το μενού", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Μετατροπή Timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII σε Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex σε ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "αποκρυπτογράφηση HTML entity", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "κρυπτογράφηση URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "αποκρυπτογράφηση URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "κρυπτογράφηση ειδικών χαρακτήρων HTML", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "αποκρυπτογράφηση ειδικών χαρακτήρων HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "αποκρυπτογράφηση Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "κρυπτογράφηση Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "κρυπτογράφηση Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "αποκρυπτογράφηση Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "αποκρυπτογράφηση L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "κρυπτογράφηση L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Αντιστροφή κειμένου", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Το μήνυμα αντιγράφηκε στο πρόχειρο", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Αντιγραφή τελευταίας μετατροπής στο πρόχειρο", - "description": "" - }, - "options_saved": { - "message": "Οι ρυθμίσεις αποθηκεύτηκαν", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/en/messages.json b/_locales/en/messages.json deleted file mode 100644 index 34c1689..0000000 --- a/_locales/en/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Encoding/Decoding Plugin for various types of encoding like base64, rot13 or unix timestamp conversion", - "description": "Short description of the extension" - }, - "settings": { - "message": "settings", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Message Type", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Using alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Log to console", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Adding an HTML element to the bottom of the site", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Use the selection and replace the text in-place", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Copy results to clipboard after conversion (be aware that this might override data in your clipboard, so use with caution!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Activate Functions", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "You can turn the different functions in the context menu on and off.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Timestamp conversion", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII to Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex to ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML entity decode", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI encode", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI decode", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML special chars encode", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML special chars decode", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable decode", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable encode", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 encode", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 decode", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T Decode", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T Encode", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Reverse Text", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Message copied to clip board!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Copy last conversion to clipboard", - "description": "" - }, - "options_saved": { - "message": "Options saved.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/es/messages.json b/_locales/es/messages.json deleted file mode 100644 index a21939a..0000000 --- a/_locales/es/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Plugin de Codificación/Decodificación para varios tipos de codificación como base64, rot13 o unix", - "description": "Short description of the extension" - }, - "settings": { - "message": "Configuración", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Tipo de Mensaje", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Usando alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Enviar a console", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Agregar un elemento HTML al final de la página", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Usar la selección y reemplace el texto en su lugar", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Copiar los resultados al portapapeles después de la conversión (tener en cuenta que esto puede anular los datos en su portapapeles, ¡así que úselo con precaución!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Activar Funciones", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Puedes activar y desactivar las diferentes funciones del menú contextual", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Conversión Timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII a Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex a ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Decodificar entidad HTML ", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "Entidades HTML", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Codificación URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Decodificación URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Codificación de caracteres especiales HTML", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Decodificación de caracteres especiales HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Decodificación de Citado imprimible", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Codificación de Citado imprimible", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Codificación Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Decodificación Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Deserializar", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Decodificación L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Codificación L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Invertir texto", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "¡Mensaje copiado al portapapeles!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Copiar la última conversión al portapapeles", - "description": "" - }, - "options_saved": { - "message": "Opciones guardadas.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json deleted file mode 100644 index 9a53a11..0000000 --- a/_locales/fi/messages.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Enkoodaus/Dekoodaus laajennus usealle eri enkoodausmenetelmälle, kuten base64, rot13 tai unix aikaleimojen käännöksille.", - "description": "Short description of the extension" - }, - "settings": { - "message": "asetukset", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Viestin Tyyppi", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Käytä alert() ilmoitusta", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Näytä lokit konsolissa", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Lisää HTML elementti sivuston pohjalle", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Vaihda tekstit valittuun elementtiin", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Kopioi tulokset leikepöydälle käännöksen jälkeen (huomaa, että tämä saattaa ylikirjoittaa leikepöydällä olevia tietoja, joten käytä varoen!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Aktivoi Funktioita", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Voit määrittää mitä funktioita näytetään kontekstivalikossa.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_timestamp": { - "message": "UNIX aikaleimojen kääännökset", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_htmlspecialchars": { - "message": "HTML erikoismerkkien enkoodaus", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML erikoismerkkien dekoodaus", - "description": "Function name for HTML special chars decode" - }, - "function_reverse_text": { - "message": "Käänteinen teksti", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Viesti kopioitu leikepöydälle!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Kopioi edellinen käännös leikepöydälle", - "description": "" - }, - "options_saved": { - "message": "Asetukset tallennettu.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/fil/messages.json b/_locales/fil/messages.json deleted file mode 100644 index 0edc686..0000000 --- a/_locales/fil/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Pangalan ng extensyon" - }, - "extDescription": { - "message": "Encoding o Decoding Plugin para sa iba'y ibang tipo ng encoding tulad ng base64, rot13 o unix timestamp conversyon", - "description": "Short description of the extension" - }, - "settings": { - "message": "Mga settings", - "description": "Title ng mga settings dialog para sa extensyon" - }, - "message_type": { - "message": "Tipo ng mensahe", - "description": "Paano ma i-didisplay ang na-covert na text" - }, - "type_alert": { - "message": "Gamit ang alert()", - "description": "Setting para ma-display ang mga mensahe sa alert box" - }, - "type_console": { - "message": "Mag Log sa console", - "description": "Setting para ma-display ang mga mensahe sa JS console" - }, - "type_html": { - "message": "Magdagdag ng HTML element sa dulo ng site", - "description": "Setting para ma-display ang mga mensahe sa HTML element na ininsert sa page" - }, - "type_inplace": { - "message": "Gamitin ang selekshon at palitan ang text in-place", - "description": "Setting para ma-display ang mga mensahe bilang kapalit ng orihinal na text" - }, - "copy_results_to_clipboard": { - "message": "Kopyahin ang mga resulta sa clipboard pag tapos ng conbersyon (Tandaan na maaari nitong ma-override ang data sa iyong clipboard, gamitin ng maingat!)", - "description": "Label ng checkbox para ma ineybol ang clipboard-copy post-conversion sa settings" - }, - "activate_functions": { - "message": "I-activate ang mga Functions", - "description": "Taytel ng bahagi ng settings na (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Pwede mong i-on at i-off ang mga functions sa context menu.", - "description": "Paglalarawan sa parte ng settings na nag (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Pangalan ng function para sa ROT13" - }, - "function_timestamp": { - "message": "Timestamp Konbersyon", - "description": "Pangalan ng function para sa UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Pangalan ng function para sa bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Pangalan ng function para sa bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII to Hex", - "description": "Pangalan ng function para sa ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex to ASCII", - "description": "Pangalan ng function para sa Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML entity decode", - "description": "Pangalan ng function para sa HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Pangalan ng function para sa HTML entities" - }, - "function_uri_encode": { - "message": "URI encode", - "description": "Pangalan ng function para sa URI encode" - }, - "function_uri_decode": { - "message": "URI decode", - "description": "Pangalan ng function para sa URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML special chars encode", - "description": "Pangalan ng function para sa HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML special chars decode", - "description": "Pangalan ng function para sa HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Pangalan ng function para sa MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Pangalan ng function para sa SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable decode", - "description": "Pangalan ng function para sa Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable encode", - "description": "Pangalan ng function para sa Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Pangalan ng function para sa Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 encode", - "description": "Pangalan ng function para sa Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 decode", - "description": "Pangalan ng function para sa Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Pangalan ng function para sa Unserialize" - }, - "function_leet_decode": { - "message": "L33T Decode", - "description": "Pangalan ng function para sa L33T Decode" - }, - "function_leet_encode": { - "message": "L33T Encode", - "description": "Pangalan ng function para sa L33T Encode" - }, - "function_reverse_text": { - "message": "I-reverse ang Text", - "description": "Pangalan ng function para sa pag Reverse ng Text" - }, - "message_copied_to_clipboard": { - "message": "Ang mensahe ay na kopya na sa clip board!", - "description": "Mensahe kapag ang text ay na kopya na sa clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Kopyahin ang huling Konbersyon sa clipboard", - "description": "" - }, - "options_saved": { - "message": "I-save ang Options.", - "description": "Mensahe kapag ang user settings ay nai-save na" - } -} diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json deleted file mode 100644 index d4dfa8b..0000000 --- a/_locales/fr/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Nom de l'extension" - }, - "extDescription": { - "message": "Plugin d'encodage / décodage de différents types comme: base64, rot13 ou unix", - "description": "Brève description de l'extension" - }, - "settings": { - "message": "Paramètres", - "description": "Titre de la page des paramètres de l'extension" - }, - "message_type": { - "message": "Type de message", - "description": "Comment le texte converti sera affiché" - }, - "type_alert": { - "message": "Utiliser alert()", - "description": "Paramètre permettant d'afficher les messages dans une boîte d'alerte" - }, - "type_console": { - "message": "Log dans la console", - "description": "Paramètre permettant d'afficher les messages dans la console JS" - }, - "type_html": { - "message": "Ajout d'un élément HTML en bas du site", - "description": "Paramètre permettant d'afficher les messages dans un élément HTML dans la page" - }, - "type_inplace": { - "message": "Utilisez la sélection et remplacez le texte", - "description": "Paramètre permettant d'afficher les messages en remplacement du texte d'origine" - }, - "copy_results_to_clipboard": { - "message": "Copiez les résultats dans le presse-papiers après la conversion (cela peut remplacer les données de votre presse-papiers, utilisez-le avec prudence!)", - "description": "Label de la case à cocher permettant la post-conversion de la copie du presse-papiers dans les paramètres" - }, - "activate_functions": { - "message": "Activer les fonctions", - "description": "Titre de la partie des paramètres qui (in)active les fonctions de/encodage" - }, - "activate_functions_description": { - "message": "Vous pouvez activer et désactiver les différentes fonctions du menu contextuel.", - "description": "Titre de la partie des paramètres qui dés/active les fonctions de dé/encodage" - }, - "function_rot13": { - "message": "ROT13", - "description": "Nom de la fonction pour ROT13" - }, - "function_timestamp": { - "message": "Conversion des timestamp", - "description": "Nom de la fonction pour la conversion de timestamp UNIX" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Nom de fonction pour bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Nom de fonction pour bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII à Hex", - "description": "Nom de la fonction pour ASCII à Hex" - }, - "function_hex2ascii": { - "message": "Hex à ASCII", - "description": "Nom de la fonction pour Hex à ASCII" - }, - "function_html_entity_decode": { - "message": "Décodage d'entité HTML", - "description": "Nom de la fonction pour le décodage d'entité HTML" - }, - "function_html_entities": { - "message": "Entités HTML", - "description": "Nom de fonction pour les entités HTML" - }, - "function_uri_encode": { - "message": "Encodage URI", - "description": "Nom de la fonction pour l'encodage URI" - }, - "function_uri_decode": { - "message": "Décodage URI", - "description": "Nom de la fonction pour le décodage URI" - }, - "function_htmlspecialchars": { - "message": "Encodage des caractères spéciaux HTML", - "description": "Nom de fonction pour l'encodage des caractères spéciaux HTML" - }, - "function_htmlspecialchars_decode": { - "message": "Décodage des caractères spéciaux HTML", - "description": "Nom de fonction pour le décodage des caractères spéciaux HTML" - }, - "function_md5": { - "message": "MD5", - "description": "Nom de fonction pour MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Nom de fonction pour SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Nom de fonction pour CRC32" - }, - "function_quoted_printable_decode": { - "message": "Cité le décodage", - "description": "Nom de la fonction pour \"Cité le décodage\"" - }, - "function_quoted_printable_encode": { - "message": "Cité l'encodage", - "description": "Nom de la fonction pour \"Cité l'encodage\"" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Nom de la fonction pour Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 encodage", - "description": "Nom de la fonction pour Base64 encodage" - }, - "function_base64_decode": { - "message": "Base64 décodage", - "description": "Nom de la fonction pour Base64 décodage" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Nom de la fonction pour Unserialize" - }, - "function_leet_decode": { - "message": "L33T décodage", - "description": "Nom de la fonction pour L33T décodage" - }, - "function_leet_encode": { - "message": "L33T encodage", - "description": "Nom de la fonction pourL33T encodage" - }, - "function_reverse_text": { - "message": "Reverse Text", - "description": "Nom de la fonction pour Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Message copié dans le presse-papiers !", - "description": "message lorsque le texte a été copié avec succès dans le presse-papiers" - }, - "copy_last_conversion_to_clipboard": { - "message": "Copier la dernière conversion dans le presse-papiers", - "description": "" - }, - "options_saved": { - "message": "Options enregistrées.", - "description": "Message de réussite lorsque les paramètres utilisateur ont été enregistrés avec succès" - } -} diff --git a/_locales/hi/messages.json b/_locales/hi/messages.json deleted file mode 100644 index 77db239..0000000 --- a/_locales/hi/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "विभिन्न प्रकार के इनकोडिंग और डिकोडिंग प्लग-इन जैसे Base 64, rot13 और unix टाइमस्टैम्प परिवर्तन", - "description": "Short description of the extension" - }, - "settings": { - "message": "सेटिंग्स", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "मैसेज टाइप", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "alert() का उपयोग", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "कंसोल में लॉग", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "साइट के अंत में HTML एलिमेंट जोड़ना", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "चयन का उपयोग करें और टेक्स्ट को उसकी जगह में बदलें", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "रिजल्ट को बदलने के बाद क्लिपबोर्ड पर कॉपी करें(सावधानी से इस्तेमाल करें!, हो सकता है कि यह क्लिपबोर्ड का डाटा ओवरराइड कर दे)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "एक्टिवेट फंक्शंस", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "आप विभिन्न फंक्शंस को कॉन्टेक्स्ट मैन्यू में से ऑन और ऑफ कर सकते हैं", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "टाइमस्टैंप परिवर्तन", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "बायनरी से हेक्साडेसिमल", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "बायनरी से टेक्स्ट", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII से हेक्साडेसिमल", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "हेक्साडेसिमल से ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML एंटिटी डीकोड", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML एनटीटी", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI एनकोड", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI डीकोड", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML स्पेशल chars एनकोड", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML स्पेशल chars डीकोड", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable डीकोड", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable एनकोड", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 एनकोड", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 डीकोड", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T डीकोड", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T एनकोड", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "उल्टा टेक्स्ट", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "मैसेज क्लिपबोर्ड पर कॉपी हो गया है", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "पिछले परिवर्तन को क्लिपबोर्ड पर कॉपी करें", - "description": "Copy last conversion to clipboard" - }, - "options_saved": { - "message": "ऑप्शन सेव", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/hr/messages.json b/_locales/hr/messages.json deleted file mode 100644 index eadd6fa..0000000 --- a/_locales/hr/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Ime ekstenzije" - }, - "extDescription": { - "message": "Enkoding/Dekoding dodatak za različite tipove enkodiranja kao što su base64, rot13 ili unix timestamp konverzija", - "description": "Kratki opis ekstenzije" - }, - "settings": { - "message": "Postavke", - "description": "Naslov prozora za postavke ekstenzije" - }, - "message_type": { - "message": "Tip poruke", - "description": "Način prikaza konvertiranog teksta" - }, - "type_alert": { - "message": "Korištenje alert()", - "description": "Omogućuje prikaz poruka u prozoru upozorenja" - }, - "type_console": { - "message": "Logiraj u konzolu", - "description": "Omogućuje prikaz poruka u JS konzoli" - }, - "type_html": { - "message": "Dodavanje HTML elementa na dno mrežne stranice", - "description": "Omogućuje prikaz poruke unutar HTML elementa koji je ubačen na mrežnu stranicu" - }, - "type_inplace": { - "message": "Iskoristi selekciju i zamjeni tekst 'na-mjestu' (in-place)", - "description": "Postavke koje omogućuju prikaz poruka kao zamjenu za izvorni tekst" - }, - "copy_results_to_clipboard": { - "message": "Kopiraj rezultat u međuspremnik poslije konverzije (obrati pozornost da će to prepisati postojeće podatke u međuspremniku, koristi sa oprezom!)", - "description": "Labela na potvrdnom okviru (checkbox) koja omogućava kopiranje u međuspremnik poslije konverzije u postavkama" - }, - "activate_functions": { - "message": "Aktiviraj funkcije", - "description": "Naslov dijela postavki koje (de)aktiviraju funkcije za dekodiranje/enkodiranje" - }, - "activate_functions_description": { - "message": "Možeš uključiti/isključiti različite funkcije u kontekstnom izborniku", - "description": "Opis dijela postavki koje (de)aktiviraju funkcije za dekodiranje/enkodiranje" - }, - "function_rot13": { - "message": "ROT13", - "description": "Ime funkcije za ROT13" - }, - "function_timestamp": { - "message": "Timestamp konverzija", - "description": "Ime funkcije za UNIX Timestamp konverziju" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Ime funkcije za bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Ime funkcije za bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII u Hex", - "description": "Ime funkcije za ASCII u Hex" - }, - "function_hex2ascii": { - "message": "Hex u ASCII", - "description": "Ime funkcije za Hex u ASCII" - }, - "function_html_entity_decode": { - "message": "Dekodiranje HTML entiteta", - "description": "Ime funkcije za dekodiranje HTML entiteta" - }, - "function_html_entities": { - "message": "HTML entiteti", - "description": "Ime funkcije za HTML entitete" - }, - "function_uri_encode": { - "message": "URI enkodiranje", - "description": "Ime funkcije za URI enkodiranje" - }, - "function_uri_decode": { - "message": "URI dekodiranje", - "description": "Ime funkcije za URI dekodiranje" - }, - "function_htmlspecialchars": { - "message": "Enkodiranje posebnih HTML znakova", - "description": "Ime funkcije za enkodiranje posebnih HTML znakova" - }, - "function_htmlspecialchars_decode": { - "message": "Dekodiranje posebnih HTML znakova", - "description": "Ime funkcije za dekodiranje posebnih HTML znakova" - }, - "function_md5": { - "message": "MD5", - "description": "Ime funkcije za MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Ime funkcije za SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Ime funkcije za CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable dekodiranje", - "description": "Ime funkcije za Quoted printable dekodiranje" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable enkodiranje", - "description": "Ime funkcije za Quoted printable enkodiranje" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Ime funkcije za Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 enkodiranje", - "description": "Ime funkcije za Base64 enkodiranje" - }, - "function_base64_decode": { - "message": "Base64 dekodiranje", - "description": "Ime funkcije za Base64 dekodiranje" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Ime funkcije za Unserialize" - }, - "function_leet_decode": { - "message": "L33T dekodiranje", - "description": "Ime funkcije za L33T dekodiranje" - }, - "function_leet_encode": { - "message": "L33T enkodiranje", - "description": "Ime funkcije za L33T enkodiranje" - }, - "function_reverse_text": { - "message": "Reverse Text", - "description": "Ime funkcije za Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Poruka kopirana u međuspremnik!", - "description": "Poruka koja se prikazuje kada je tekst uspješno kopiran u međuspremnik." - }, - "copy_last_conversion_to_clipboard": { - "message": "Kopiraj posljednju konverziju u međuspremnik", - "description": "Poruka koja se prikazuje kada se posljednja konverzija uspješno kopira u međuspremnik" - }, - "options_saved": { - "message": "Opcije pohranjene.", - "description": "Poruka uspjeha kada se postavke korisnika uspješno pohrane." - } -} diff --git a/_locales/hu/messages.json b/_locales/hu/messages.json deleted file mode 100644 index cde7f2e..0000000 --- a/_locales/hu/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Bővítmény neve" - }, - "extDescription": { - "message": "Kódoló/Dekódoló beépülő modul több típusú kódoláshoz pl. base64, rot13 vagy UNIX időbélyeg konverzió", - "description": "A bővítmény rövid leírása" - }, - "settings": { - "message": "beállítások", - "description": "A bővítmény beállításai párbeszédpanel címe" - }, - "message_type": { - "message": "Üzenet típusok", - "description": "Hogyan lesz a konvertált szöveg megjelenítve" - }, - "type_alert": { - "message": "alert() használata", - "description": "Beállítás, amely engedélyezi az üzenetek megjelenítését egy alert dobozban" - }, - "type_console": { - "message": "Logolás a konzolra", - "description": "Beállítás, amely engedélyezi az üzenetek megjelenítését a JS konzolban" - }, - "type_html": { - "message": "HTML elem hozzáadása az oldal alján", - "description": "Beállítás, amely engedélyezi az üzenetek megjelenítését egy az oldal alján hozzáadott HTML elemben" - }, - "type_inplace": { - "message": "Használja a kijelölést, és cserélje a szöveget helyben", - "description": "Beállítás, amely engedélyezzi az üzenetek megjelenítését az eredeti szöveg helyett" - }, - "copy_results_to_clipboard": { - "message": "Másolja az eredményt a vágólapra konvertálás után (figyelem, ez felülírhatja a meglévő adatokat a vágólapon, használd óvatosan!)", - "description": "A jelölőnégyzet címkéje a beállításokban, amely engedélyezi a vágólapra másolást a konvertálás után" - }, - "activate_functions": { - "message": "Funkciók aktiválása", - "description": "A beállítások egy pontjának a címe, amely (de)aktiválja a (de)kódoló funkciókat" - }, - "activate_functions_description": { - "message": "Ki/bekapcsolhatók a különböző funkciók a kontextus menüben", - "description": "A beállítások egy pontjának a leírása, amely (de)aktiválja a (de)kódoló funkciókat" - }, - "function_rot13": { - "message": "ROT13", - "description": "ROT13 funkció neve" - }, - "function_timestamp": { - "message": "Időbélyeg konverzió", - "description": "Funkció neve UNIX időbélyeg konverzióhoz" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "bin2hex funkció neve" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "bin2txt funkció neve" - }, - "function_ascii2hex": { - "message": "ASCII-ból Hex", - "description": "ASCII-ból Hex funkció neve" - }, - "function_hex2ascii": { - "message": "Hex-ből ASCII", - "description": "Hex-ből ASCII funkció neve" - }, - "function_html_entity_decode": { - "message": "HTML entitás dekódolása", - "description": "HTML entitás dekódolása funkció neve" - }, - "function_html_entities": { - "message": "HTML entitások", - "description": "HTML entitások funkció neve" - }, - "function_uri_encode": { - "message": "URI kódolás", - "description": "URI kódolás funkció neve" - }, - "function_uri_decode": { - "message": "URI dekódolás", - "description": "URI dekódolás funkció neve" - }, - "function_htmlspecialchars": { - "message": "HTML speciális karakterek kódolása", - "description": "HTML speciális karakterek kódolása funkció neve" - }, - "function_htmlspecialchars_decode": { - "message": "HTML speciális karakterek dekódolása", - "description": "HTML speciális karakterek dekódolása funkció neve" - }, - "function_md5": { - "message": "MD5", - "description": "MD5 funkció neve" - }, - "function_sha1": { - "message": "SHA1", - "description": "SHA1 funkció neve" - }, - "function_crc32": { - "message": "CRC32", - "description": "CRC32 funkció neve" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable dekódolás", - "description": "Quoted printable dekódolás funkció neve" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable kódolás", - "description": "Quoted printable kódolás funkció neve" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Escapeshellarg funkció neve" - }, - "function_base64_encode": { - "message": "Base64 kódolás", - "description": "Base64 kódolás funkció neve" - }, - "function_base64_decode": { - "message": "Base64 dekódolás", - "description": "Base64 dekódolás funkció neve" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Unserialize funkció neve" - }, - "function_leet_decode": { - "message": "L33T dekódolás", - "description": "L33T dekódolás funkció neve" - }, - "function_leet_encode": { - "message": "L33T kódolás", - "description": "L33T kódolás funkció neve" - }, - "function_reverse_text": { - "message": "Fordított szöveg", - "description": "Fordított szöveg funkció neve" - }, - "message_copied_to_clipboard": { - "message": "Üzenet a vágólapra másolva!", - "description": "üzenet a szöveg sikeres vágólapra másolásakor" - }, - "copy_last_conversion_to_clipboard": { - "message": "Az utolsó konverzió másolása a vágólapra", - "description": "" - }, - "options_saved": { - "message": "Beállítások mentve", - "description": "Sikeres üzenet, mikor a felhasználó beállításai sikeresen mentésre kerültek" - } -} \ No newline at end of file diff --git a/_locales/id/messages.json b/_locales/id/messages.json deleted file mode 100644 index 234e936..0000000 --- a/_locales/id/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Encoding/Decoding Plugin digunakan untuk bermacam-macam tipe penyandian seperti base64, rot13 atau konversi unix timestamp", - "description": "Short description of the extension" - }, - "settings": { - "message": "pengaturan", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Tipe Pesan", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Gunakan alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Catat ke console", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Menambahkan sebuah elemen HTML ke bagian bawah situs", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Gunakan seleksi dan mengganti teks di tempat", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Salin hasil ke clipboard setelah melakukan konversi (perhatikan bahwa ini mungkin menimpa data pada clipboard-mu, maka gunakan dengan hati-hati!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Aktifkan Fungsi", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Anda dapat mengaktifkan dan menonaktifkan berbagai fungsi yang berbeda di menu konteks.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Konversi Timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII ke Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex ke ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Decode entitas HTML", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "Entitas HTML", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Encode URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Decode URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Encode karakter khusus HTML", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Decode karakter khusus HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Mengutip decode yang dapat dicetak", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Mengutip encode yang dapat dicetak", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Encode Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Decode Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Decode L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Encode L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Teks Terbalik", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Pesan telah disalin ke clipboard!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Salin konversi terakhir ke clipboard", - "description": "" - }, - "options_saved": { - "message": "Opsi disimpan.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/it/messages.json b/_locales/it/messages.json deleted file mode 100644 index 89884a4..0000000 --- a/_locales/it/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Plugin di codifica/decodifica per vari tipi di codifica come base64, rot13 o conversione timestamp unix", - "description": "Short description of the extension" - }, - "settings": { - "message": "Impostazioni", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Tipo di Messaggio", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Utilizzando alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Log nella console", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Aggiungendo un elemento HTML nella parte inferiore del sito", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Utilizzando la selezione e sostituendo il testo al suo posto", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Copia i risultati negli appunti dopo la conversione (tieni presente che ciò potrebbe sovrascrivere i dati negli appunti, quindi usa questa impostazione con cautela!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Attiva Funzioni", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "È possibile attivare e disattivare le diverse funzioni nel menu contestuale.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Conversione del timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII ad Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex ad ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Decodifica entità HTML", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "Codifica entità HTML", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Codifica URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Decodifica URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Codifica caratteri speciali HTML", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Decodifica caratteri speciali HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Decodifica quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Codifica quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Codifica Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Decodifica Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Deserializza", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Decodifica L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Codifica L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Inverti Testo", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Messaggio copiato negli appunti!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Copia l'ultima conversione negli appunti", - "description": "" - }, - "options_saved": { - "message": "Opzioni salvate.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json deleted file mode 100644 index c9a356c..0000000 --- a/_locales/ja/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "base64, rot13, unix タイムスタンプ変換といった様々なタイプのエンコーディングのためのエンコーディング/デコーディングプラグイン", - "description": "Short description of the extension" - }, - "settings": { - "message": "設定", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "メッセージタイプ", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "アラートの使用()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "コンソールへのログ出力", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "サイトの下部にHTML要素を追加する", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "選択範囲を使用して、その場でテキストを置き換える", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "変換後に結果をクリップボードにコピーします(クリップボード内のデータを上書きしてしまう可能性があるので注意してください。)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "機能を有効にする", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "コンテキストメニューのさまざまな機能をオンまたはオフにすることができます。", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "タイムスタンプの変換", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCIIから6進数へ", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "6進数をASCIIへ", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTMLエンティティのデコード", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTMLエンティティ", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URIのエンコード", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URIのデコード", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML特殊文字のエンコード", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML特殊文字のデコード", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted-printableのデコード", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted-printableのエンコード", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64のエンコード", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64のデコード", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33Tのデコード", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33Tのエンコード", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "テキストの反転", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "メッセージをクリップボードにコピー!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "最後の変換をクリップボードにコピー", - "description": "" - }, - "options_saved": { - "message": "オプションが保存されました。", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/kn/messages.json b/_locales/kn/messages.json deleted file mode 100644 index 7315815..0000000 --- a/_locales/kn/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "ಬೇಸ್ 64, ರಾಟ್ 13 ಅಥವಾ ಯುನಿಕ್ಸ್ ಟೈಮ್‌ಸ್ಟ್ಯಾಂಪ್ ಪರಿವರ್ತನೆಯಂತಹ ವಿವಿಧ ರೀತಿಯ ಎನ್‌ಕೋಡಿಂಗ್‌ಗಾಗಿ ಎನ್‌ಕೋಡಿಂಗ್ / ಡಿಕೋಡಿಂಗ್ ಪ್ಲಗಿನ್", - "description": "Short description of the extension" - }, - "settings": { - "message": "ಸಂಯೋಜನೆಗಳು", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "ಸಂದೇಶ ಪ್ರಕಾರ", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "ಎಚ್ಚರಿಕೆ ಬಳಸುವುದು ()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "ಕನ್ಸೋಲ್‌ಗೆ ಲಾಗ್ ಇನ್ ಮಾಡಿ", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "ಸೈಟ್ನ ಕೆಳಭಾಗದಲ್ಲಿ HTML ಅಂಶವನ್ನು ಸೇರಿಸಲಾಗುತ್ತಿದೆ", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "ಆಯ್ಕೆಯನ್ನು ಬಳಸಿ ಮತ್ತು ಪಠ್ಯವನ್ನು ಸ್ಥಳದಲ್ಲಿ ಬದಲಾಯಿಸಿ", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "ಪರಿವರ್ತನೆಯ ನಂತರ ಫಲಿತಾಂಶಗಳನ್ನು ಕ್ಲಿಪ್‌ಬೋರ್ಡ್‌ಗೆ ನಕಲಿಸಿ (ಇದು ನಿಮ್ಮ ಕ್ಲಿಪ್‌ಬೋರ್ಡ್‌ನಲ್ಲಿನ ಡೇಟಾವನ್ನು ಅತಿಕ್ರಮಿಸುತ್ತದೆ ಎಂದು ತಿಳಿದಿರಲಿ, ಆದ್ದರಿಂದ ಎಚ್ಚರಿಕೆಯಿಂದ ಬಳಸಿ!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "ಕಾರ್ಯಗಳನ್ನು ಸಕ್ರಿಯಗೊಳಿಸಿ", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "ಸಂದರ್ಭ ಮೆನುವಿನಲ್ಲಿ ನೀವು ವಿಭಿನ್ನ ಕಾರ್ಯಗಳನ್ನು ಆನ್ ಮತ್ತು ಆಫ್ ಮಾಡಬಹುದು.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "ಟೈಮ್‌ಸ್ಟ್ಯಾಂಪ್ ಪರಿವರ್ತನೆ", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ಎಎಸ್ಸಿಐಐ ಟು ಹೆಕ್ಸ್", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "ಎಎಸ್ಸಿಐಐಗೆ ಹೆಕ್ಸ್", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML ಅಸ್ತಿತ್ವದ ಡಿಕೋಡ್", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML ಘಟಕಗಳು", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "ಯುಆರ್ಐ ಎನ್ಕೋಡ್", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "ಯುಆರ್ಐ ಡಿಕೋಡ್", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML ವಿಶೇಷ ಅಕ್ಷರಗಳು ಎನ್ಕೋಡ್", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML ವಿಶೇಷ ಅಕ್ಷರಗಳು ಡಿಕೋಡ್", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "ಎಂಡಿ 5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "ಸಿಆರ್ಸಿ 32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "ಉಲ್ಲೇಖಿಸಬಹುದಾದ ಮುದ್ರಿಸಬಹುದಾದ ಡಿಕೋಡ್", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "ಉಲ್ಲೇಖಿಸಬಹುದಾದ ಮುದ್ರಿಸಬಹುದಾದ ಎನ್‌ಕೋಡ್", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "ಎಸ್ಕೇಪ್ಶೆಲ್ಲಾರ್ಗ್", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "ಬೇಸ್ 64 ಎನ್ಕೋಡ್", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "ಬೇಸ್ 64 ಡಿಕೋಡ್", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "ಅನ್ಸೆರಿಯಲೈಸ್ ಮಾಡಿ", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "ಎಲ್ 33 ಟಿ ಡಿಕೋಡ್", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "ಎಲ್ 33 ಟಿ ಎನ್ಕೋಡ್", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "ರಿವರ್ಸ್ ಟೆಕ್ಸ್ಟ್", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "ಕ್ಲಿಪ್ ಬೋರ್ಡ್‌ಗೆ ಸಂದೇಶವನ್ನು ನಕಲಿಸಲಾಗಿದೆ!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "ಕೊನೆಯ ಪರಿವರ್ತನೆಯನ್ನು ಕ್ಲಿಪ್‌ಬೋರ್ಡ್‌ಗೆ ನಕಲಿಸಿ", - "description": "" - }, - "options_saved": { - "message": "ಆಯ್ಕೆಗಳನ್ನು ಉಳಿಸಲಾಗಿದೆ.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/ko/messages.json b/_locales/ko/messages.json deleted file mode 100644 index b4361a8..0000000 --- a/_locales/ko/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "base64, rot13 또는 unix 타임 스탬프 변환과 같은 여러 유형의 암호화 / 복호화를위한 플러그인", - "description": "Short description of the extension" - }, - "settings": { - "message": "설정", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "메시지 유형", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "alert() 사용", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "콘솔에 로그인", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "사이트 하단에 HTML 요소 추가", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "선택 항목을 사용하고 제자리에서 텍스트를 바꿉니다.", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "환 후 결과를 클립 보드에 복사 (이는 클립 보드의 데이터를 재정의 할 수 있으므로주의해서 사용하십시오!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "기능 활성화", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "상황에 맞는 메뉴에서 다양한 기능을 켜고 끌 수 있습니다.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "타임 스탬프 변환", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII에서 16 진수로", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "16 진수에서 ASCII로", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML 엔티티 디코딩", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML 엔티티", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI 인코딩", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI 디코딩", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML 특수 문자 인코딩", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML 특수 문자 디코딩", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "인용 된 인쇄 가능한 디코딩", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "인용 된 인쇄 가능한 인코딩", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "탈출", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 인코딩", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 디코딩", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "직렬화 해제", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T 디코딩", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T 인코딩", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "텍스트 반전", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "클립 보드에 메시지가 복사되었습니다!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "마지막 변환을 클립 보드에 복사", - "description": "" - }, - "options_saved": { - "message": "옵션이 저장되었습니다.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/lt/messages.json b/_locales/lt/messages.json deleted file mode 100644 index ede83fe..0000000 --- a/_locales/lt/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Užkodavimo/dekodavimo plėtinys įvairių tipų kodavimui, pvz.: base64, rot13 ar unix laiko žymos konvertavimas", - "description": "Short description of the extension" - }, - "settings": { - "message": "nustatymai", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Pranšimo tipas", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Naudojant alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Spausdinti į konsolę", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "HTML elementas pridedamas i tinklapio pabaigą", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Naudokite pasirinkimą ir pakeiskite tekstą vietoje", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Nukopijuokite rezultatus į iškarpinę po konvertavimo (atminkite, kad tai gali perrašyti jūsų iškarpinės duomenis, todėl naudokite atsargiai!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Aktyvuoti Funkcijas", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Galite įjungti ir išjungti įvairias funkcijas konteksto meniu.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Laiko žymos konvertavimas", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2txt" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for ASCII to Hex" - }, - "function_ascii2hex": { - "message": "ASCII į Hex", - "description": "Function name for Hex to ASCII" - }, - "function_hex2ascii": { - "message": "Hex į ASCII", - "description": "Function name for HTML entity decode" - }, - "function_html_entity_decode": { - "message": "HTML objekto dekodavimas", - "description": "Function name for HTML entities" - }, - "function_html_entities": { - "message": "HTML objektai", - "description": "Function name for URI encode" - }, - "function_uri_encode": { - "message": "URI užkodavimas", - "description": "Function name for URI decode" - }, - "function_uri_decode": { - "message": "URI dekodavimas", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars": { - "message": "HTML specialiųjų simbolių užkodavimas", - "description": "Function name for HTML special chars decode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML specialiųjų simbolių dekodavimas", - "description": "Function name for MD5" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for SHA1" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for CRC32" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_decode": { - "message": "Cituoto spausdinamo dekodavimas", - "description": "Function name for Quoted printable encode" - }, - "function_quoted_printable_encode": { - "message": "Cituoto spausdinamo užkodavimas", - "description": "Function name for Escapeshellarg" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Base64 encode" - }, - "function_base64_encode": { - "message": "Base64 užkodavimas", - "description": "Function name for Base64 decode" - }, - "function_base64_decode": { - "message": "Base64 dekodavimas", - "description": "Function name for Unserialize" - }, - "function_unserialize": { - "message": "Atserializavimas", - "description": "Function name for L33T Decode" - }, - "function_leet_decode": { - "message": "L33T dekodavimas", - "description": "Function name for L33T Encode" - }, - "function_leet_encode": { - "message": "L33T užkodavimas", - "description": "Function name for Reverse Text" - }, - "function_reverse_text": { - "message": "Atvirkštinis tekstas", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Pranešimas nukopijuotas į iškarpinę!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Nukopijuoti paskutinį konvertavima į iškarpinę", - "description": "" - }, - "options_saved": { - "message": "Nustatymai išsaugoti.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/mr/messages.json b/_locales/mr/messages.json deleted file mode 100644 index ee94ae9..0000000 --- a/_locales/mr/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "base64, rot13 किंवा unix timestamp रूपांतरण अशा विविध प्रकारच्या एन्कोडिंग / डिकोडिंग साठी प्लगइन", - "description": "Short description of the extension" - }, - "settings": { - "message": "सेटिंग्स", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "संदेशाचा प्रकार", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "alert() वापरत आहोत", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "कन्सोलवर नोंद (लॉग) करा", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "साइटच्या तळाशी एक HTML element जोडत आहोत", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "सिलेक्शन केलेल्या ठिकाणी मजकूर पुनर्स्थित करा", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "रूपांतरणानंतर क्लिपबोर्डवर परिणाम कॉपी करा (हे लक्षात घ्या की हे आपल्या क्लिपबोर्डमधील डेटा ओव्हरराइड करेल, म्हणून सावधगिरीने वापरा!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "फंक्शन्सना कार्यान्वित करा", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "आपण कॉन्टेक्स्ट मेन्यूमधील भिन्न कार्ये चालू किंवा बंद करू शकता.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Timestamp रुपांतरण", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII ते Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex ते ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML entity डिकोड", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI एन्कोड", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI डिकोड", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML special chars एन्कोड", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML special chars डिकोड", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable डिकोड", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable एन्कोड", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 एन्कोड", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 डिकोड", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T डिकोड", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T एन्कोड", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "मजकूर उलट करा", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "संदेश क्लिपबोर्डवर कॉपी केला!", - "description": "Message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "क्लिपबोर्डवर मागील रूपांतर कॉपी करा", - "description": "" - }, - "options_saved": { - "message": "पर्याय जतन केले.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/ms/messages.json b/_locales/ms/messages.json deleted file mode 100644 index acc1ce7..0000000 --- a/_locales/ms/messages.json +++ /dev/null @@ -1,155 +0,0 @@ - -{ - "extName": { - "message": "d3coder", - "description": "Nama peluasan" - }, - "extDescription": { - "message": "Pengekodan / Penyahkodan Plugin untuk pelbagai jenis pengekodan seperti penukaran cap waktu base64, rot13 atau unix", - "description": "Penerangan ringkas mengenai peluasan" - }, - "settings": { - "message": "tetapan", - "description": "Tajuk dialog tetapan untuk peluasan" - }, - "message_type": { - "message": "Jenis Mesej", - "description": "Bagaimana teks yang ditukar akan dipaparkan" - }, - "type_alert": { - "message": "Menggunakan amaran()", - "description": "Pengaturan yang membolehkan mesej ditampilkan dalam kotak amaran" - }, - "type_console": { - "message": "Log ke konsol", - "description": "Tetapan yang membolehkan mesej dipaparkan di konsol JS" - }, - "type_html": { - "message": "Menambah elemen HTML ke bahagian bawah laman web", - "description": "Pengaturan yang membolehkan mesej ditampilkan dalam elemen HTML yang dimasukkan ke dalam halaman" - }, - "type_inplace": { - "message": "Gunakan pilihan dan ganti teks di tempat", - "description": "Pengaturan yang membolehkan mesej ditampilkan sebagai pengganti teks asal" - }, - "copy_results_to_clipboard": { - "message": "Salin hasil ke papan keratan selepas penukaran (ketahuilah bahawa ini mungkin menggantikan data di papan keratan anda, jadi gunakan dengan berhati-hati!)", - "description": "Label kotak pilihan yang membolehkan pasca penukaran salinan papan klip dalam tetapan" - }, - "activate_functions": { - "message": "Aktifkan Fungsi", - "description": "Tajuk bahagian tetapan yang (in) mengaktifkan fungsi de / encoding" - }, - "activate_functions_description": { - "message": "Anda boleh menghidupkan dan mematikan fungsi yang berbeza dalam menu konteks.", - "description": "Keterangan untuk bahagian tetapan yang (in) mengaktifkan fungsi de / encoding" - }, - "function_rot13": { - "message": "ROT13", - "description": "Nama fungsi untuk ROT13" - }, - "function_timestamp": { - "message": "Penukaran cap waktu", - "description": "Nama fungsi untuk penukaran Cap Waktu UNIX" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Nama fungsi untuk bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Nama fungsi untuk bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII ke Hex", - "description": "Nama fungsi untuk ASCII ke Hex" - }, - "function_hex2ascii": { - "message": "Hex ke ASCII", - "description": "Nama fungsi untuk Hex ke ASCII" - }, - "function_html_entity_decode": { - "message": "Decode entiti HTML", - "description": "Nama fungsi untuk penyahkodan entiti HTML" - }, - "function_html_entities": { - "message": "Entiti HTML", - "description": "Nama fungsi untuk entiti HTML" - }, - "function_uri_encode": { - "message": "Pengekodan URI", - "description": "Nama fungsi untuk pengekodan URI" - }, - "function_uri_decode": { - "message": "Penyahkodan URI", - "description": "Nama fungsi untuk penyahkodan URI" - }, - "function_htmlspecialchars": { - "message": "Pengekodan watak khas HTML", - "description": "Nama fungsi untuk pengkodan watak khas HTML" - }, - "function_htmlspecialchars_decode": { - "message": "Decode watak khas HTML", - "description": "Nama fungsi untuk penyahkod watak khas HTML" - }, - "function_md5": { - "message": "MD5", - "description": "Nama fungsi untuk MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Nama fungsi untuk SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Nama fungsi untuk CRC32" - }, - "function_quoted_printable_decode": { - "message": "Nyatakan decode yang boleh dicetak", - "description": "Nama fungsi untuk decode yang boleh dicetak Dipetik" - }, - "function_quoted_printable_encode": { - "message": "Kod yang boleh dicetak dipetik", - "description": "Nama fungsi untuk pengekodan yang boleh dicetak Dipetik" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Nama fungsi untuk Escapeshellarg" - }, - "function_base64_encode": { - "message": "Pengekod Base64", - "description": "Nama fungsi untuk pengekod Base64" - }, - "function_base64_decode": { - "message": "Penyahkod Base64", - "description": "Nama fungsi untuk penyahkodan Base64" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Nama fungsi untuk Unserialize" - }, - "function_leet_decode": { - "message": "Dekod L33T", - "description": "Nama fungsi untuk L33T Decode" - }, - "function_leet_encode": { - "message": "Pengekodan L33T", - "description": "Nama fungsi untuk L33T Encode" - }, - "function_reverse_text": { - "message": "Teks Balik", - "description": "Nama fungsi untuk Teks Terbalik" - }, - "message_copied_to_clipboard": { - "message": "Mesej disalin ke papan keratan!", - "description": "mesej apabila teks berjaya disalin ke papan keratan" - }, - "copy_last_conversion_to_clipboard": { - "message": "Salin penukaran terakhir ke papan keratan", - "description": "" - }, - "options_saved": { - "message": "Pilihan disimpan.", - "description": "Mesej kejayaan apabila tetapan pengguna berjaya disimpan" - } -} diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json deleted file mode 100644 index 8f5e2f1..0000000 --- a/_locales/nl/messages.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Plug-in voor codering/decodering voor verschillende soorten codering, zoals base64-, rot13- of unix-tijdstempel", - "description": "Short description of the extension" - }, - "settings": { - "message": "instellingen", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Weergavetype", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "De alert() gebruiken", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Log in op console", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Voeg een HTML element toe aan de onderkant", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Vervang de tekst op zijn plaats", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Kopieer de resultaten naar het klembord (kan bestaande gegevens op het klembord overschrijven)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Functies", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Schakel de verschillende functies in het contextmenu in of uit.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_timestamp": { - "message": "Unix tijdstempel", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_ascii2hex": { - "message": "ASCII naar Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex naar ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_reverse_text": { - "message": "Omgekeerde tekst", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Tekst gekopieerd naar klembord!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Kopieer de laatste conversie naar het klembord", - "description": "" - }, - "options_saved": { - "message": "Instellingen opgeslagen.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/no/messages.json b/_locales/no/messages.json deleted file mode 100644 index ea4839b..0000000 --- a/_locales/no/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Navn på utvidelsen" - }, - "extDescription": { - "message": "Encoding/Decoding Plugin for ulike kodinger som base64, rot13 og unix timestamp conversion", - "description": "Kort beskrivelse av utvidelsen" - }, - "settings": { - "message": "innstillinger", - "description": "Tittel på innstillings dialogen for utvidelsen" - }, - "message_type": { - "message": "Meldings type", - "description": "Hvordan konvertert tekst vil bli vist" - }, - "type_alert": { - "message": "Bruk alert()", - "description": "Innstilling som lar meldinger bli vist i en alert boks" - }, - "type_console": { - "message": "Logg til console", - "description": "Innstilling som lar meldinger bli vist i JS console" - }, - "type_html": { - "message": "Legg til et HTML element på bunnen av siden", - "description": "Innstilling som lar meldinger bli lagt til på bunnen av siden" - }, - "type_inplace": { - "message": "Bruk valgt område og erstatt teksten", - "description": "Innstilling som lar meldinger bli vist som erstatning av den orginale (valgte) teksten" - }, - "copy_results_to_clipboard": { - "message": "Kopier resultatet til utklippstavlen etter konvertering (dette vil overskrive evt innhold på utklippstavlen!)", - "description": "Innstilling som lar meldinger blir kopiert til utklippstavlen etter konvertering" - }, - "activate_functions": { - "message": "Aktiver funksjoner", - "description": "Tittel på seksjonen for innstillinger som aktiverer eller deaktiverer de/encoding funksjonene" - }, - "activate_functions_description": { - "message": "Du kan skru av og på de ulike funksjonene i kontekstmenyen.", - "description": "Beksrivelse på delen av innstillingene som aktiverer og deaktiverer enkoding/dekoding funksjonene" - }, - "function_rot13": { - "message": "ROT13", - "description": "Funksjonsnavn for ROT13 kodingen" - }, - "function_timestamp": { - "message": "Timestamp konvertering", - "description": "Funksjonsnavn for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Funksjonsnavn for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Funksjonsnavn for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII til Hex", - "description": "Funksjonsnavn for ASCII til Hex" - }, - "function_hex2ascii": { - "message": "Hex til ASCII", - "description": "Funksjonsnavn for Hex til ASCII" - }, - "function_html_entity_decode": { - "message": "HTML entity decode", - "description": "Funksjonsnavn for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Funksjonsnavn for HTML entities" - }, - "function_uri_encode": { - "message": "URI encode", - "description": "Funksjonsnavn for URI encode" - }, - "function_uri_decode": { - "message": "URI decode", - "description": "Funksjonsnavn for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML special chars encode", - "description": "Funksjonsnavn for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML special chars decode", - "description": "Funksjonsnavn for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Funksjonsnavn for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Funksjonsnavn for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Funksjonsnavn for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable decode", - "description": "Funksjonsnavn for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable encode", - "description": "Funksjonsnavn for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Funksjonsnavn for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 encode", - "description": "Funksjonsnavn for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 decode", - "description": "Funksjonsnavn for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Funksjonsnavn for Unserialize" - }, - "function_leet_decode": { - "message": "L33T Decode", - "description": "Funksjonsnavn for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T Encode", - "description": "Funksjonsnavn for L33T Encode" - }, - "function_reverse_text": { - "message": "Speilvendt Tekst", - "description": "Funksjonsnavn for Speilvendt Tekst" - }, - "message_copied_to_clipboard": { - "message": "Melding kopiert til utklippstavlen!", - "description": "Melding når tekst har blitt kopiert til utklippstavlen" - }, - "copy_last_conversion_to_clipboard": { - "message": "Kopier siste konvertering til utklippstavlen", - "description": "" - }, - "options_saved": { - "message": "Innstillinger lagret.", - "description": "Suksess melding når brukerinnstillingene har blitt lagret" - } -} diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json deleted file mode 100644 index fa1722b..0000000 --- a/_locales/pl/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Dodatek do przeglądarki pozwalający na kodowanie i odkodowywanie różnych rodzajów kodowania, takich jak base64, rot13 lub czasu uniksowego", - "description": "Short description of the extension" - }, - "settings": { - "message": "ustawienia", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Rodzaj wiadomości", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Użyj funkcji alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Wyświetl logi w konsoli", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Dodaj element HTML na dole strony", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Wyświetl wiadomość w miejscu zaznaczonego tekstu", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Skopiuj wynik do schowka po konwersji (uwaga, ta funkcja może nadpisać istniejące dane w schowku!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Funkcje", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Możesz włączyć i wyłączyć poszczególne funkcje w menu kontekstowym", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Konwersja czasu uniksowego", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCCI do Xex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex do ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Dekodowanie elementu HTML", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "Elementy HTML", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Enkodowanie URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Dekodowanie URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Enkodowanie znaków specjalnych HTML'a", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Dekodowanie znaków specjalnych HTML'a", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Dekodowanie Quoted-Printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Enkodowanie Quoted-Printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Enkodowanie Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Dekodowanie Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Odserializuj", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Dekodowanie L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Enkodowanie L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Odwróć tekst", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Wiadomość skopiowana do schowka", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Skopiuj ostatni wynik do schowka", - "description": "" - }, - "options_saved": { - "message": "Ustawienia zapisane", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json deleted file mode 100644 index cbe7d5b..0000000 --- a/_locales/pt_BR/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Plugin de Encoding/Decoding para vários tipos de encoding como base64, rot13 ou conversão de unix timestamps", - "description": "Short description of the extension" - }, - "settings": { - "message": "Configurações", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Tipo da mensagem", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Usar alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Enviar para o console", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Adicionar um elemento HTML ao final da página", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Usar a substituição de texto no lugar", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Copiar os resultados para a área de transferência (esteja ciente de que isso pode sobrescrever dados já presentes na área de transferência, então use com cuidado!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Ativar funções", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Você pode ativar e desativar as funções no menu de contexto.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Conversão de Timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII para Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex para ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Decodificar entidade HTML", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "Entidades HTML", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Codificar URI ", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Decodificar URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Codificar caracteres HTML especiais", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Decodificar caracteres HTML especiais", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Decodificar Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Codificar Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Codificar Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Decodificar Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Desserializar", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Decodificar L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Codificar L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Reverter texto", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Mensagem copiada para a área de transferência!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Copiar última conversão para a área de transferência", - "description": "" - }, - "options_saved": { - "message": "Opções salvas.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/pt_PT/messages.json b/_locales/pt_PT/messages.json deleted file mode 100644 index 44f50e0..0000000 --- a/_locales/pt_PT/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Plugin de Encoding/Decoding para vários tipos de encoding como base64, rot13 ou conversão de unix timestamps", - "description": "Short description of the extension" - }, - "settings": { - "message": "Definições", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Tipo da mensagem", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Usar alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Enviar para a consola", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Adicionar um elemento HTML ao final da página", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Usar a substituição de texto no lugar", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Copiar os resultados para a área de transferência (tenha atenção que isto pode sobrepor os dados na sua área de transferência, por isso use com precaução!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Activar as funções", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Você pode ativar e desativar as funções no menu de contexto.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Conversão de Timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII para Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex para ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Decodificar entidade HTML", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "Entidades HTML", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Codificar URI ", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Decodificar URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Codificar caracteres HTML especiais", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Decodificar caracteres HTML especiais", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Decodificar Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Codificar Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Codificar Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Decodificar Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Desserializar", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Decodificar L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Codificar L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Inverter texto", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Mensagem copiada para a área de transferência!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Copiar última conversão para a área de transferência", - "description": "" - }, - "options_saved": { - "message": "Opções gravadas.", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json deleted file mode 100644 index 9ee9db2..0000000 --- a/_locales/ru/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Плагин для кодирования/декодирования различных кодировок: base64, rot13 или преобразования временных меток unix", - "description": "Short description of the extension" - }, - "settings": { - "message": "настройки", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Способ отображения", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Выводить с помощью alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Выводить в консоль", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Выводить в HTML элемент внизу страницы", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Заменять выделенный текст", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Скопировать результат в буфер обмена (имейте в виду, что это может перезаписать данные в вашем буфере обмена, поэтому используйте с осторожностью!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Доступные функции", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Вы можете включить или выключить различные функции в контекстном меню.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Преобразование метки времени UNIX", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII в Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex в ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Декодировать HTML сущности", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML сущности", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Кодировать URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Декодировать URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML special chars encode", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Кодировать специальные символы HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Декодировать Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Кодировать Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Кодировать Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Декодировать Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Десериализовать", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Декодировать L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Кодировать L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Обратный текст", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Сообщение скопировано в буфер обмена!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Копировать последнее преобразование в буфер обмена", - "description": "" - }, - "options_saved": { - "message": "Параметры сохранены.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/th/messages.json b/_locales/th/messages.json deleted file mode 100644 index 2b2c0dc..0000000 --- a/_locales/th/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "ปลั๊กอินส์สำหรับเข้ารหัสหรือถอดรหัสในรูปแบบต่างๆ เช่น base64, rot13, หรือ แปลง unix timestamp", - "description": "Short description of the extension" - }, - "settings": { - "message": "ตั่งค่า", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "รูปแบบข้อความ", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "ใช้ alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Log ใน console", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "เพิ่ม HTML element ที่ต่อท้ายเว็บไซต์", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "แทนที่ข้อความที่เลือก", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "คัดลอกผลแปลงไปที่คลิปบอร์ด (โปรดระวัง อาจทับข้อมูลที่อยู่ในคลิปบอร์ด)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "เปิดใช้งานฟังก์ชั่น", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "คุณสามารถ เปิดหรือปิดฟังก์ชั่นต่างๆใน context menu ได้", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "แปลง Timestamp", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII to Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex to ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "ถอดรหัส HTML entity", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "เข้ารหัส URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "ถอดรหัส URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "เข้ารหัสตัวอักษร HTML พิเศษ", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "ถอดรหัสตัวอักษร HTML พิเศษ", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "ถอดรหัส Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "เข้ารหัส Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "เข้ารหัส Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "ถอดรหัส Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "ถอดรหัส L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "เข้ารหัส L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "กลับด้านข้อความ", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "ข้อความคัดลอกไปที่คลิปบอร์ดเรียบร้อย!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "คัดลอกการแปลงข้อมูลล่าสุดไปที่คลิปบอร์ด", - "description": "" - }, - "options_saved": { - "message": "ตั้งค่าเรียบร้อย", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json deleted file mode 100644 index dbfbfbb..0000000 --- a/_locales/tr/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Base64, rot13 veya unix timestamp dönüşümü gibi çeşitli kodlama türleri için Kodlama / Kod Çözme Eklentisi", - "description": "Short description of the extension" - }, - "settings": { - "message": "ayarlar", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "mesaj tipi", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "alert() kullanımı", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Konsol'a logla", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Sitenin altına HTML elemanı eklemek", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Seçimi kullanın ve yerinde metni değiştirin", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Dönüştürmeden sonra sonuçları panoya kopyalayın (bunun panonuzdaki verileri geçersiz kılabileceğini unutmayın, bu nedenle dikkatli kullanın!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "İşlevleri Etkinleştir", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Bağlam menüsündeki farklı işlevleri açıp kapatabilirsiniz.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Timestamp dönüşümü", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII to Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex to ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML entity decode", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML entities", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI encode", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI decode", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML special chars encode", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML special chars decode", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Quoted printable decode", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Quoted printable encode", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 encode", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 decode", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Unserialize", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T Decode", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T Encode", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Ters Metin", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Mesaj panoya kopyalandı!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Son dönüşümü panoya kopyala", - "description": "" - }, - "options_saved": { - "message": "Ayarlar kayıt edildi.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/uk/messages.json b/_locales/uk/messages.json deleted file mode 100644 index fd5d0e1..0000000 --- a/_locales/uk/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "Плагін для кодування/декодування різноманітних видів кодувань, таких як: base64, rot13 або перетворення часових міток unix", - "description": "Short description of the extension" - }, - "settings": { - "message": "налаштування", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "Тип повідомлення", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "Використовуючи alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "Логувати до консолі", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "Додаючи HTML-елемент в нижній частині сайту", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "Використовувати виділення та замінювати текст на місці", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "Після перетворення копіювати результати до буферу обміну (пам’ятайте, що це може замінити дані у вашому буфері обміну, тому використовуйте з обережністю!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "Функції", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "Ви можете вмикати та вимикати окремі функції в контекстному меню.", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "Перетворення часової мітки UNIX", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin2hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin2txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII до Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex до ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "Декодувати HTML-сутності", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML-сутності", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "Кодувати URI", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "Декодувати URI", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "Кодувати спеціальні символи HTML", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "Декодувати спеціальні символи HTML", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "Декодувати Quoted printable", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "Кодувати Quoted printable", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Кодувати Base64", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Декодувати Base64", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "Десеріалізувати", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "Декодувати L33T", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "Кодувати L33T", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "Зворотний текст", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "Повідомлення скопійовано до буферу обміну!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "Копіювати останнє перетворення до буферу обміну", - "description": "" - }, - "options_saved": { - "message": "Налаштування збережено.", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json deleted file mode 100644 index 2180e2b..0000000 --- a/_locales/zh_CN/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "编码/解码插件,支持包括base64,rot13 或unix timestamp编码的转换", - "description": "Short description of the extension" - }, - "settings": { - "message": "设置", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "消息类型", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "使用alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "记录到控制台", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "在网页底部添加一个HTML元素", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "启用选择并直接替换文本", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "在转换后复制文本到剪贴板(注意,这可能会覆写你剪切板中的数据!)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "启用功能", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "你可以在上下文菜单中开关不同的功能。", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "ROT13", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "时间戳转换", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "bin转hex", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "bin转txt", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII转Hex", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "Hex转ASCII", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML实体解码", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML实体", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI编码", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI解码", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML特殊字符编码", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML特殊字符解码", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "可打印字符引用编码(Quoted printable)解码", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "可打印字符引用编码(Quoted printable)编码", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64编码", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64解码", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "反序列化", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T解码", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T编码", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "反转文本", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "文本已复制到剪贴板!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "复制最后一次转换到剪切板", - "description": "" - }, - "options_saved": { - "message": "选项已保存。", - "description": "Success message when the user settings where successfully saved" - } -} \ No newline at end of file diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json deleted file mode 100644 index 13b3b9e..0000000 --- a/_locales/zh_TW/messages.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "extName": { - "message": "d3coder", - "description": "Name of the extension" - }, - "extDescription": { - "message": "提供編碼/解碼功能的套件,支持 base64,rot13 或 unix timestamp 編碼轉換", - "description": "Short description of the extension" - }, - "settings": { - "message": "設定", - "description": "Title of the settings dialog for the extension" - }, - "message_type": { - "message": "訊息類型", - "description": "How the converted text will be displayed" - }, - "type_alert": { - "message": "使用 alert()", - "description": "Setting that enables the messages to be displayed in an alert box" - }, - "type_console": { - "message": "紀錄到主控台", - "description": "Setting that enables the messages to be displayed in the JS console" - }, - "type_html": { - "message": "在網頁底部添加一個 HTML 元素", - "description": "Setting that enables the messages to be displayed in a HTML element inserted into the page" - }, - "type_inplace": { - "message": "使用選擇並直接替換內容", - "description": "Setting that enables the messages to be displayed as replacement of the original text" - }, - "copy_results_to_clipboard": { - "message": "在轉換後將結果複製到剪貼簿中(注意!這可能會覆蓋剪貼簿中原有的資料)", - "description": "Label of the checkbox that enables clipboard-copy post-conversion in the settings" - }, - "activate_functions": { - "message": "啟用功能", - "description": "Title of the part of the settings that (in)activates de/encoding functions" - }, - "activate_functions_description": { - "message": "你可以在主選單中開啟或關閉不同的功能。", - "description": "Description for the part of the settings that (in)activates de/encoding functions" - }, - "function_rot13": { - "message": "迴轉 13 位(ROT-13)", - "description": "Function name for ROT13" - }, - "function_timestamp": { - "message": "UNIX 時間戳轉換(Unix Timestamp Conversion)", - "description": "Function name for UNIX Timestamp conversion" - }, - "function_bin2hex": { - "message": "二進位制轉換十六進位制(Binary to Hexadecimal)", - "description": "Function name for bin2hex" - }, - "function_bin2txt": { - "message": "二進位制轉換純文字格式(Binary to TXT)", - "description": "Function name for bin2txt" - }, - "function_ascii2hex": { - "message": "ASCII 碼轉換十六進位制(ASCII to Hexadecimal)", - "description": "Function name for ASCII to Hex" - }, - "function_hex2ascii": { - "message": "十六進位制轉換 ASCII 碼(Hexadecimal to ASCII)", - "description": "Function name for Hex to ASCII" - }, - "function_html_entity_decode": { - "message": "HTML 實體解碼(HTML Entity Decode)", - "description": "Function name for HTML entity decode" - }, - "function_html_entities": { - "message": "HTML 實體(HTML Entity)", - "description": "Function name for HTML entities" - }, - "function_uri_encode": { - "message": "URI 編碼(URI Encode)", - "description": "Function name for URI encode" - }, - "function_uri_decode": { - "message": "URI 解碼(URI Decode)", - "description": "Function name for URI decode" - }, - "function_htmlspecialchars": { - "message": "HTML 特殊字元編碼", - "description": "Function name for HTML special chars encode" - }, - "function_htmlspecialchars_decode": { - "message": "HTML 特殊字元解碼", - "description": "Function name for HTML special chars decode" - }, - "function_md5": { - "message": "MD5", - "description": "Function name for MD5" - }, - "function_sha1": { - "message": "SHA1", - "description": "Function name for SHA1" - }, - "function_crc32": { - "message": "CRC32", - "description": "Function name for CRC32" - }, - "function_quoted_printable_decode": { - "message": "可列印字元參照解碼(Quoted Printable Decode)", - "description": "Function name for Quoted printable decode" - }, - "function_quoted_printable_encode": { - "message": "可列印字元參照編碼(Quoted Printable Encode)", - "description": "Function name for Quoted printable encode" - }, - "function_escapeshellarg": { - "message": "Escapeshellarg 轉譯", - "description": "Function name for Escapeshellarg" - }, - "function_base64_encode": { - "message": "Base64 編碼(Base64 Encode)", - "description": "Function name for Base64 encode" - }, - "function_base64_decode": { - "message": "Base64 解碼(Base64 Decode)", - "description": "Function name for Base64 decode" - }, - "function_unserialize": { - "message": "反序列化", - "description": "Function name for Unserialize" - }, - "function_leet_decode": { - "message": "L33T 解碼(L33T Decode)", - "description": "Function name for L33T Decode" - }, - "function_leet_encode": { - "message": "L33T 編碼(L33T Encode)", - "description": "Function name for L33T Encode" - }, - "function_reverse_text": { - "message": "反轉文本", - "description": "Function name for Reverse Text" - }, - "message_copied_to_clipboard": { - "message": "訊息已複製到剪貼簿!", - "description": "message when text was successfully copied to the clipboard" - }, - "copy_last_conversion_to_clipboard": { - "message": "將最後一次的轉換結果複製到剪貼簿中", - "description": "" - }, - "options_saved": { - "message": "選項已儲存。", - "description": "Success message when the user settings where successfully saved" - } -} diff --git a/html/background.html b/html/background.html new file mode 100644 index 0000000..bbf4cb0 --- /dev/null +++ b/html/background.html @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/html/menu.html b/html/menu.html new file mode 100644 index 0000000..894917e --- /dev/null +++ b/html/menu.html @@ -0,0 +1,187 @@ + + + + + +
+
+
+
+

Message Type

+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + Copy results to clipboard after conversion (be aware that this might override data in your clipboard, so use with caution!) +
+
+
+
+

Activate Functions

+ + You can turn the different functions in the context menu on and off. + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+

Miscellaneous

+ +

Also a placeholder for other things. Your idea could be here - just drop me a feature request on the extension page, linux-web-development.de or via mail.

+ +

Decode/encode history

+ +
+ + +
+ +
+
+
+

Credits

+ This extension was developed by Izzy Kulbe <github@unikorn.me> + + Special thanks for several functions to the php.js team, they did a great job on porting some of the most important functions to JS. + +
php.js is dual licensed under the MIT and GPL licenses. + + This means you may use php.js under the terms of either the MIT License or the Gnu General Public License (GPL) Version 2.
+ + Thanks for the images and icons for the webstore to Martin Jost.

+ + Clipboard icon in div-view by Mihaiciuc Bogdan. +
+
+
+ + diff --git a/html/menu_ui.html b/html/menu_ui.html deleted file mode 100644 index 1edde86..0000000 --- a/html/menu_ui.html +++ /dev/null @@ -1,166 +0,0 @@ - - -__MSG_extName__ __MSG_settings__ - - -
-
-
-

__MSG_message_type__

- -
- -
- -
-

- - -

-

 

-
-
- -
-

__MSG_activate_functions__

- -
__MSG_activate_functions_description__
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
-

Credits

- -

This extension was developed by izzy <github@unikorn.me>

- -

Special thanks for several functions to the php.js team, they did a great job on porting some of the most important functions to JS.

- -
php.js is dual licensed under the MIT and GPL licenses. - - This means you may use php.js under the terms of either the MIT License or the - Gnu General Public License (GPL) Version 2.
- -

Thanks for the images and icons for the webstore to Martin Jost.

- -

Clipboard icon in div-view by Mihaiciuc Bogdan.

-
-
- - - - \ No newline at end of file diff --git a/images/clipboard.png b/images/clipboard.png new file mode 100644 index 0000000..8815d91 Binary files /dev/null and b/images/clipboard.png differ diff --git a/images/cross.png b/images/cross.png new file mode 100644 index 0000000..1514d51 Binary files /dev/null and b/images/cross.png differ diff --git a/images/grid.png b/images/grid.png new file mode 100644 index 0000000..d42a6c3 Binary files /dev/null and b/images/grid.png differ diff --git a/images/key.png b/images/key.png new file mode 100644 index 0000000..a9d5e4f Binary files /dev/null and b/images/key.png differ diff --git a/images/popup_menu_background.png b/images/popup_menu_background.png new file mode 100644 index 0000000..4b07bd1 Binary files /dev/null and b/images/popup_menu_background.png differ diff --git a/images/tick.png b/images/tick.png new file mode 100644 index 0000000..a9925a0 Binary files /dev/null and b/images/tick.png differ diff --git a/js/D3.js b/js/D3.js index dd9eed3..f55c31f 100644 --- a/js/D3.js +++ b/js/D3.js @@ -1,295 +1,1335 @@ +/** + * Some functions from php.js (see phpjs.org) + * + * @version 2.0.5 + * @author Izzy Kulbe + * @copyright (c) 2010 - 2018 Izzy Kulbe + */ + /** - * @returns Object containing the current tab + * RegEx escaping */ -async function getCurrentTab() { - let queryOptions = { - active: true, - currentWindow: true - }; - let [tab] = await browser.tabs.query(queryOptions); - return tab; -} +RegExp.escape = function(text) { + return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); +}; /** * KEY FUNCTION NAMESPACE */ -var D3 = { +var D3 = +{ //needs a new Icon - best would be an icon per decoding type //icon: "popupIcon.png", icon: "../images/icon128.png", /** - * Version number - * - * @var String - */ - version: "5.1.0", + * Version number + * + * @var String + */ + version: "2.0.5", + /** + * list all functions so we can use this while saving + * @var Array + */ + checkboxes: Array( "functions_rot13", + "functions_timestamp", + "functions_crc32", + "functions_bin2hex", + "functions_bin2txt", + "functions_html_entity_decode", + "functions_htmlentities", + "functions_htmlspecialchars", + "functions_htmlspecialchars_decode", + "functions_uri_encode", + "functions_uri_decode", + "functions_md5", + "functions_sha1", + "functions_quoted_printable_decode", + "functions_quoted_printable_encode", + "functions_escapeshellarg", + "functions_base64_encode", + "functions_base64_decode", + "functions_unserialize", + "functions_leet_decode", + "functions_leet_encode", + "functions_reverse"), - /** - * Tabs that already had the content worker script injected - * - * @var Array - */ - injected_tabs: incjected_tabs = [], + menuIds: {}, - /** - * list all functions so we can use this while saving - * @var Array - */ - checkboxes: Array("functions_rot13", - "functions_timestamp", - "functions_crc32", - "functions_bin2hex", - "functions_bin2txt", - "functions_txt2hex", - "functions_hex2txt", - "functions_html_entity_decode", - "functions_htmlentities", - "functions_htmlspecialchars", - "functions_htmlspecialchars_decode", - "functions_uri_encode", - "functions_uri_decode", - "functions_md5", - "functions_sha1", - "functions_quoted_printable_decode", - "functions_quoted_printable_encode", - "functions_escapeshellarg", - "functions_base64_encode", - "functions_base64_decode", - "functions_unserialize", - "functions_leet_decode", - "functions_leet_encode", - "functions_reverse"), - - menuIds: {}, - - lastMessage: '', - - checkInstall: function (callback) { - browser.storage.sync.get(null).then((items) => { - console.log("Check Install: Start"); - update = {}; - if (!items["messageType"]) { - update["messageType"] = "inplace"; - } + lastMessage: '', - if (!items["clipboardSave"]) { - update["clipboardSave"] = false; - } + PhrasesEnglish: + new Array('crap', 'dude', 'hacker', + 'hacks', 'you', 'cool', 'oh my god', + 'fear', 'power', 'own', 'lol', + 'what the hell', 'elite', 'for the win', + 'oh really', 'good game'), - update["checkboxes"] = {}; - for (name of D3.checkboxes) { - if (items["checkboxes"] && items["checkboxes"][name] === false) { - update["checkboxes"][name] = false; - } else { - update["checkboxes"][name] = true; - } - } + PhrasesLeet: + new Array('carp', 'dood', 'haxor', 'hax', 'joo', + 'kewl', 'omg', 'ph43', 'powwah', 'pwn', 'lawl', + 'wth', 'leet', 'ftw', 'o rly', 'gg'), - if (!items["version"]) { - update["version"] = D3.version; - } + LettersEnglish: + new Array('n', 'b', 'k', 'd', 'e', 'f', 'g', 'h', + 'p', 'm', 'r', 'l', 'o', 'q', 's', 't', + 'u', 'x', 'w', 'y', 'z', 'c', 'a', 'j', + 'i', 'v', ' '), - browser.storage.sync.set(update).then(() => { - console.log("Installed decoder version " + D3.version); - }); - }); - }, + LettersLeet: + new Array('/\\/', '|}', '|X', '[)', '3', '|=', 'gee', '|-|', + '|*', '(\\/)', '|2', '1', '()', '0', '$', '+', + '|_|', '><', '\\X/', '\'/', '2', '<', '/\\', '_|', + '|', '\\/', ' '), + + checkInstall: function() { + if(!localStorage.getItem('D3installed'+D3.version) || localStorage.getItem('D3installed'+D3.version) != 'true') { + if(!localStorage.getItem("message_type")) + localStorage.setItem("message_type", "alert"); + if(!localStorage.getItem("message_type1")) + localStorage.setItem("message_type1", "1"); + if(!localStorage.getItem("message_type2")) + localStorage.setItem("message_type2", "0"); + if(!localStorage.getItem("message_type3")) + localStorage.setItem("message_type3", "0"); + if(!localStorage.getItem("message_type4")) + localStorage.setItem("message_type4", "0"); + if(!localStorage.getItem("message_type5")) + localStorage.setItem("message_type5", "0"); + + for (var el in D3.checkboxes) { + if (D3.checkboxes.hasOwnProperty(el)) { + if(localStorage.getItem(D3.checkboxes[el]) != "0" && + localStorage.getItem(D3.checkboxes[el]) != "1") { + localStorage.setItem(D3.checkboxes[el], "1"); + } + } + } - createPopup: async (title, text, type, clipboardCopy, tabId) => { - if (clipboardCopy) { + localStorage.setItem('D3installed'+D3.version, 'true'); + if(localStorage.getItem('D3lastversion')) { + localStorage.removeItem('D3installed'+localStorage.getItem('lastversion')); + } + localStorage.setItem('D3lastversion',D3.version); + + } + }, + + createPopup: function(title, text) + { + var type = localStorage.getItem("message_type"); + + if(localStorage.getItem("message_automatic_clipboardcopy") == 1) { D3.copyToClipboard(text); } - - D3.lastMessage = text; - - // Inject the content scripts once at the start - if (!(tabId in D3.injected_tabs)) { - await browser.scripting.insertCSS({ - target: { - tabId: tabId - }, - files: ["styles/content.css"] - }); - await browser.scripting.executeScript({ - target: { - tabId: tabId - }, - files: ['js/contentWorker.js'] - }); - D3.injected_tabs.push(tabId); - } - + + D3.lastMessage = text; + switch (type) { case 'console': - let inject_console = function (title, text) { - console.log(['d3coder:: FUNCTION:' + title, text]); - }; - - browser.scripting.executeScript({ - target: { - tabId: tabId - }, - func: inject_console, - args: [title, text] - }); + text = D3.base64_encode(text); + chrome.tabs.executeScript(null, {file:'js/contentWorker.js'}); + + chrome.tabs.executeScript(null, {code:"console.log('d3coder:: FUNCTION: " + title + "');"}); + chrome.tabs.executeScript(null, {code:"console.log('d3coder:: VALUE:');"}); + window.setTimeout(function(){ + chrome.tabs.executeScript( + null, + {code:"D3content.logConsole('" + text + "');"} + ); + },400); + break; - case 'alert': - let inject_alert = function (title, text) { - alert(title + '\n\n' + text); - }; - - browser.scripting.executeScript({ - target: { - tabId: tabId - }, - func: inject_alert, - args: [title, text] - }); - + case 'alert': + alert(title + '\n\n' + text); + console.log(text); break; case 'div': - let inject_div = function (title, text) { - D3content.createDiv(title, text); - }; - - browser.scripting.executeScript({ - target: { - tabId: tabId - }, - func: inject_div, - args: [title, text] - }); + chrome.tabs.insertCSS(null, {file: "styles/content.css"}); + chrome.tabs.executeScript(null, {file:'js/contentWorker.js'}); + + window.setTimeout(function() { + text = D3.base64_encode(text); + chrome.tabs.executeScript( + null, + {code:"D3content.createDiv('" + title + "', '" + text + "');"} + ); + },400); - break; + break; + case 'inplace': + chrome.tabs.executeScript(null, {file:'js/contentWorker.js'}); + + window.setTimeout(function() { + text = D3.base64_encode(text); + chrome.tabs.executeScript( + null, + {code:"D3content.replaceText('" + text + "');"} + ); + },400); + break; default: - case 'inplace': - let inject_inplace = function (text) { - D3content.replaceText(text); - }; - - browser.scripting.executeScript({ - target: { - tabId: tabId - }, - func: inject_inplace, - args: [text] - }); - + case 'notification': + var popup = window.webkitNotifications.createNotification( D3.icon, title, text); + popup.show(); break; - } + } + }, + copyToClipboard: function(text) { + var bg = chrome.extension.getBackgroundPage(); + var clipboard = bg.document.getElementById("clipboard"); + clipboard.style.display = "block"; + clipboard.value = text; + clipboard.select(); + bg.document.execCommand("Copy"); + clipboard.style.display = "none"; + return true; }, - copyToClipboard: function (text) { - function copyToClipboard(text) { - if (navigator.clipboard) { - navigator.clipboard.writeText(text).then(function () { - console.log('D3: Copied to clipboard'); - }, function (err) { - console.error(['D3: Error writing to clipboard', err]); - }); - } else { - console.error('D3: Clipboard not accessible'); + rot13decode: function(text) + { + var keycode = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + var textrot = new String(); + + for(var i = 0; i < text.length; i++) + { + var codechar = text.substring(i, i + 1); + var pos = keycode.indexOf(codechar.toUpperCase()); + + if(pos >= 0) + { + pos = (pos + keycode.length / 2) % keycode.length; + codechar = (codechar == codechar.toUpperCase()) ? keycode.substring(pos, pos + 1) : keycode.substring(pos, pos + 1).toLowerCase(); } + textrot = textrot + codechar; } - - getCurrentTab().then(function (tab) { - browser.scripting.executeScript({ - target: { - tabId: tab.id - }, - func: copyToClipboard, - args: [text] - }); - }); + + return textrot; }, - function_list: { - 'functions_rot13': ['function_rot13', "rot13decode"], - 'functions_timestamp': ['function_timestamp', "timestampToDate"], - 'functions_bin2hex': ['function_bin2hex', "bin2hex"], - 'functions_bin2txt': ['function_bin2txt', "bin2txt"], - 'functions_txt2hex': ['function_ascii2hex', "txt2hex"], - 'functions_hex2txt': ['function_hex2ascii', "hex2txt"], - 'functions_uri_encode': ['function_uri_encode', "uri_encode"], - 'functions_uri_decode': ['function_uri_decode', "uri_decode"], - 'functions_htmlentities': ['function_html_entities', "htmlentities"], - 'functions_html_entity_decode': ['function_html_entity_decode', "html_entity_decode"], - 'functions_htmlspecialchars': ['function_htmlspecialchars', "htmlspecialchars"], - 'functions_htmlspecialchars_decode': ['function_htmlspecialchars_decode', "htmlspecialchars_decode"], - 'functions_md5': ['function_md5', "md5"], - 'functions_sha1': ['function_sha1', "sha1"], - 'functions_crc32': ['function_crc32', "crc32"], - 'functions_quoted_printable_decode': ['function_quoted_printable_decode', "quoted_printable_decode"], - 'functions_quoted_printable_encode': ['function_quoted_printable_encode', "quoted_printable_encode"], - 'functions_escapeshellarg': ['function_escapeshellarg', "escapeshellarg"], - 'functions_base64_encode': ['function_base64_encode', "base64_encode"], - 'functions_base64_decode': ['function_base64_decode', "base64_decode"], - 'functions_unserialize': ['function_unserialize', "unserialize"], - 'functions_leet_encode': ['function_leet_encode', "leetEncode"], - 'functions_leet_decode': ['function_leet_decode', "leetDecode"], - 'functions_reverse': ['function_reverse_text', "reverseText"], + timestampToDate: function(text) + { + var timestamp = parseInt(text); + + if(!timestamp) return; + + var dateObject = new Date(); + dateObject.setTime (timestamp * 1000); + return dateObject; + }, + crc32: function( str ) { + str = D3.utf8_encode(str); + var table = "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D"; + + var crc = 0; + var x = 0; + var y = 0; + + crc = crc ^ (-1); + for (var i = 0, iTop = str.length; i < iTop; i++) { + y = ( crc ^ str.charCodeAt( i ) ) & 0xFF; + x = "0x" + table.substr( y * 9, 8 ); + crc = ( crc >>> 8 ) ^ x; + } + + return crc ^ (-1); }, + bin2hex: function (s){ + var i, f = 0, a = []; + + s += ''; + f = s.length; + + for (i = 0; i { - clearMenu(); + string += String.fromCharCode(num); + } - for (itemName in items.checkboxes) { - createMenu(items, itemName); - } + return string; + }, + html_entity_decode: function (string, quote_style) { + var hash_map = {}, symbol = '', tmp_str = '', entity = ''; + tmp_str = string.toString(); + + if (false === (hash_map = D3.get_html_translation_table('HTML_ENTITIES', quote_style))) { + return false; + } + + // fix & problem + // http://phpjs.org/functions/get_html_translation_table:416#comment_97660 + delete(hash_map['&']); + hash_map['&'] = '&'; + + for (symbol in hash_map) { + entity = hash_map[symbol]; + tmp_str = tmp_str.split(entity).join(symbol); + } + tmp_str = tmp_str.split(''').join("'"); + + return tmp_str; + }, + htmlentities: function (string, quote_style) { + var hash_map = {}, symbol = '', tmp_str = '', entity = ''; + tmp_str = string.toString(); + + if (false === (hash_map = D3.get_html_translation_table('HTML_ENTITIES', quote_style))) { + return false; + } + hash_map["'"] = '''; + for (symbol in hash_map) { + entity = hash_map[symbol]; + tmp_str = tmp_str.split(symbol).join(entity); + } + + return tmp_str; + }, + htmlspecialchars: function (string, quote_style, charset, double_encode) { + var optTemp = 0, i = 0, noquotes= false; + if (typeof quote_style === 'undefined' || quote_style === null) { + quote_style = 2; + } + string = string.toString(); + if (double_encode !== false) { // Put this first to avoid double-encoding + string = string.replace(/&/g, '&'); + } + string = string.replace(//g, '>'); + + var OPTS = { + 'ENT_NOQUOTES': 0, + 'ENT_HTML_QUOTE_SINGLE' : 1, + 'ENT_HTML_QUOTE_DOUBLE' : 2, + 'ENT_COMPAT': 2, + 'ENT_QUOTES': 3, + 'ENT_IGNORE' : 4 + }; + if (quote_style === 0) { + noquotes = true; + } + if (typeof quote_style !== 'number') { // Allow for a single string or an array of string flags + quote_style = [].concat(quote_style); + for (i=0; i < quote_style.length; i++) { + // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4 + if (OPTS[quote_style[i]] === 0) { + noquotes = true; + } + else if (OPTS[quote_style[i]]) { + optTemp = optTemp | OPTS[quote_style[i]]; + } + } + quote_style = optTemp; + } + if (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) { + string = string.replace(/'/g, '''); + } + if (!noquotes) { + string = string.replace(/"/g, '"'); + } + + return string; + }, + htmlspecialchars_decode: function (string, quote_style) { + var optTemp = 0, i = 0, noquotes= false; + if (typeof quote_style === 'undefined') { + quote_style = 2; + } + string = string.toString().replace(/</g, '<').replace(/>/g, '>'); + var OPTS = { + 'ENT_NOQUOTES': 0, + 'ENT_HTML_QUOTE_SINGLE' : 1, + 'ENT_HTML_QUOTE_DOUBLE' : 2, + 'ENT_COMPAT': 2, + 'ENT_QUOTES': 3, + 'ENT_IGNORE' : 4 + }; + if (quote_style === 0) { + noquotes = true; + } + if (typeof quote_style !== 'number') { // Allow for a single string or an array of string flags + quote_style = [].concat(quote_style); + for (i=0; i < quote_style.length; i++) { + // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4 + if (OPTS[quote_style[i]] === 0) { + noquotes = true; + } + else if (OPTS[quote_style[i]]) { + optTemp = optTemp | OPTS[quote_style[i]]; + } + } + quote_style = optTemp; + } + if (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) { + string = string.replace(/�*39;/g, "'"); // PHP doesn't currently escape if more than one 0, but it should + // string = string.replace(/'|�*27;/g, "'"); // This would also be useful here, but not a part of PHP + } + if (!noquotes) { + string = string.replace(/"/g, '"'); + } + // Put this in last place to avoid escape being double-decoded + string = string.replace(/&/g, '&'); + + return string; + }, + uri_encode: function (str) { + return encodeURIComponent(str); + }, + uri_decode: function (str) { + return decodeURIComponent(str); + }, + md5: function (str) { + var xl; + + var rotateLeft = function (lValue, iShiftBits) { + return (lValue<>>(32-iShiftBits)); + }; + + var addUnsigned = function (lX,lY) { + var lX4,lY4,lX8,lY8,lResult; + lX8 = (lX & 0x80000000); + lY8 = (lY & 0x80000000); + lX4 = (lX & 0x40000000); + lY4 = (lY & 0x40000000); + lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF); + if (lX4 & lY4) { + return (lResult ^ 0x80000000 ^ lX8 ^ lY8); + } + if (lX4 | lY4) { + if (lResult & 0x40000000) { + return (lResult ^ 0xC0000000 ^ lX8 ^ lY8); + } else { + return (lResult ^ 0x40000000 ^ lX8 ^ lY8); + } + } else { + return (lResult ^ lX8 ^ lY8); + } + }; + + var _F = function (x,y,z) { return (x & y) | ((~x) & z); }; + var _G = function (x,y,z) { return (x & z) | (y & (~z)); }; + var _H = function (x,y,z) { return (x ^ y ^ z); }; + var _I = function (x,y,z) { return (y ^ (x | (~z))); }; + + var _FF = function (a,b,c,d,x,s,ac) { + a = addUnsigned(a, addUnsigned(addUnsigned(_F(b, c, d), x), ac)); + return addUnsigned(rotateLeft(a, s), b); + }; + + var _GG = function (a,b,c,d,x,s,ac) { + a = addUnsigned(a, addUnsigned(addUnsigned(_G(b, c, d), x), ac)); + return addUnsigned(rotateLeft(a, s), b); + }; + + var _HH = function (a,b,c,d,x,s,ac) { + a = addUnsigned(a, addUnsigned(addUnsigned(_H(b, c, d), x), ac)); + return addUnsigned(rotateLeft(a, s), b); + }; + + var _II = function (a,b,c,d,x,s,ac) { + a = addUnsigned(a, addUnsigned(addUnsigned(_I(b, c, d), x), ac)); + return addUnsigned(rotateLeft(a, s), b); + }; + + var convertToWordArray = function (str) { + var lWordCount; + var lMessageLength = str.length; + var lNumberOfWords_temp1=lMessageLength + 8; + var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64; + var lNumberOfWords = (lNumberOfWords_temp2+1)*16; + var lWordArray=new Array(lNumberOfWords-1); + var lBytePosition = 0; + var lByteCount = 0; + while ( lByteCount < lMessageLength ) { + lWordCount = (lByteCount-(lByteCount % 4))/4; + lBytePosition = (lByteCount % 4)*8; + lWordArray[lWordCount] = (lWordArray[lWordCount] | (str.charCodeAt(lByteCount)<>>29; + return lWordArray; + }; + + var wordToHex = function (lValue) { + var wordToHexValue="",wordToHexValue_temp="",lByte,lCount; + for (lCount = 0;lCount<=3;lCount++) { + lByte = (lValue>>>(lCount*8)) & 255; + wordToHexValue_temp = "0" + lByte.toString(16); + wordToHexValue = wordToHexValue + wordToHexValue_temp.substr(wordToHexValue_temp.length-2,2); + } + return wordToHexValue; + }; + + var x=[], + k,AA,BB,CC,DD,a,b,c,d, + S11=7, S12=12, S13=17, S14=22, + S21=5, S22=9 , S23=14, S24=20, + S31=4, S32=11, S33=16, S34=23, + S41=6, S42=10, S43=15, S44=21; + + str = D3.utf8_encode(str); + x = convertToWordArray(str); + a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476; + + xl = x.length; + for (k=0;k>>(32-s)); + return t4; + }; + + var cvt_hex = function (val) { + var str=""; + var i; + var v; + + for (i=7; i>=0; i--) { + v = (val>>>(i*4))&0x0f; + str += v.toString(16); + } + return str; + }; + + var blockstart; + var i, j; + var W = new Array(80); + var H0 = 0x67452301; + var H1 = 0xEFCDAB89; + var H2 = 0x98BADCFE; + var H3 = 0x10325476; + var H4 = 0xC3D2E1F0; + var A, B, C, D, E; + var temp; + + str = D3.utf8_encode(str); + var str_len = str.length; + + var word_array = []; + for (i=0; i>>29 ); + word_array.push( (str_len<<3)&0x0ffffffff ); + + for ( blockstart=0; blockstart-~ ]/gm, + RFC2045Encode1OUT = function (sMatch) { + // Encode space before CRLF sequence to prevent spaces from being stripped + // Keep hard line breaks intact; CRLF sequences + if (sMatch.length > 1) { + return sMatch.replace(' ', '=20'); + } + // Encode matching character + var chr = sMatch.charCodeAt(0); + return '=' + hexChars[((chr >>> 4) & 15)] + hexChars[(chr & 15)]; + }, + RFC2045Encode2IN = /.{1,72}(?!\r\n)[^=]{0,3}/g, + RFC2045Encode2OUT = function (sMatch) { + if (sMatch.substr(sMatch.length - 2) === '\r\n') { + return sMatch; + } + return sMatch + '=\r\n'; + }; + str = str.replace(RFC2045Encode1IN, RFC2045Encode1OUT).replace(RFC2045Encode2IN, RFC2045Encode2OUT); + return str.substr(0, str.length - 3); + }, + escapeshellarg: function (arg) { + var ret = ''; + + ret = arg.replace(/[^\\]'/g, function(m, i, s) { + return m.slice(0, 1)+'\\\''; + }); + + return "'"+ret+"'"; + }, + leetEncode: function (inputString) { + if(!inputString ) return ""; + + for (i = 0; i < D3.PhrasesEnglish.length; ++i) + inputString = inputString.replace( + new RegExp(D3.PhrasesEnglish[i], "gi"), + D3.PhrasesLeet[i] + ); - if (!D3.menuIds["options"]) { - // Menu item for options - menu = { - "title": D3.translate("extName") + " " + D3.translate("settings"), - "contexts": ["all"], - "id": "d3coder-settings" - } + for (i = 0; i < D3.LettersEnglish.length; ++i) + inputString = inputString.replace( + new RegExp(D3.LettersEnglish[i], "gi"), + D3.LettersLeet[i] + ); + return inputString; + }, + leetDecode: function (inputString) { + for (i = 0; i < D3.LettersLeet.length; ++i) + inputString = inputString.replace( + new RegExp(RegExp.escape(D3.LettersLeet[i]), "g"), + D3.LettersEnglish[i] + ); + + for (i = 0; i < D3.PhrasesLeet.length; ++i) + inputString = inputString.replace( + new RegExp(RegExp.escape(D3.PhrasesLeet[i]), "g"), + D3.PhrasesEnglish[i] + ); + return inputString; + }, + reverseText: function (inputString) { + return inputString.split("").reverse().join(""); + }, + base64_encode: function (data) { + var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, ac = 0, enc="", tmp_arr = []; + + if (!data) { + return data; + } + + data = D3.utf8_encode(data+''); + + do { // pack three octets into four hexets + o1 = data.charCodeAt(i++); + o2 = data.charCodeAt(i++); + o3 = data.charCodeAt(i++); + + bits = o1<<16 | o2<<8 | o3; + + h1 = bits>>18 & 0x3f; + h2 = bits>>12 & 0x3f; + h3 = bits>>6 & 0x3f; + h4 = bits & 0x3f; + + // use hexets to index into b64, and append result to encoded string + tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); + } while (i < data.length); + + enc = tmp_arr.join(''); + + switch (data.length % 3) { + case 1: + enc = enc.slice(0, -2) + '=='; + break; + case 2: + enc = enc.slice(0, -1) + '='; + break; + } + + return enc; + }, + base64_decode: function (data) { + var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, ac = 0, dec = "", tmp_arr = []; + + if (!data) { + return data; + } + + data += ''; + + do { // unpack four hexets into three octets using index points in b64 + h1 = b64.indexOf(data.charAt(i++)); + h2 = b64.indexOf(data.charAt(i++)); + h3 = b64.indexOf(data.charAt(i++)); + h4 = b64.indexOf(data.charAt(i++)); + + bits = h1<<18 | h2<<12 | h3<<6 | h4; + + o1 = bits>>16 & 0xff; + o2 = bits>>8 & 0xff; + o3 = bits & 0xff; + + if (h3 == 64) { + tmp_arr[ac++] = String.fromCharCode(o1); + } else if (h4 == 64) { + tmp_arr[ac++] = String.fromCharCode(o1, o2); + } else { + tmp_arr[ac++] = String.fromCharCode(o1, o2, o3); + } + } while (i < data.length); + + dec = tmp_arr.join(''); + dec = D3.utf8_decode(dec); + + return dec; + }, + get_html_translation_table: function (table, quote_style) { + + var entities = {}, hash_map = {}, decimal = 0, symbol = ''; + var constMappingTable = {}, constMappingQuoteStyle = {}; + var useTable = {}, useQuoteStyle = {}; + + // Translate arguments + constMappingTable[0] = 'HTML_SPECIALCHARS'; + constMappingTable[1] = 'HTML_ENTITIES'; + constMappingQuoteStyle[0] = 'ENT_NOQUOTES'; + constMappingQuoteStyle[2] = 'ENT_COMPAT'; + constMappingQuoteStyle[3] = 'ENT_QUOTES'; + + useTable = !isNaN(table) ? constMappingTable[table] : table ? table.toUpperCase() : 'HTML_SPECIALCHARS'; + useQuoteStyle = !isNaN(quote_style) ? constMappingQuoteStyle[quote_style] : quote_style ? quote_style.toUpperCase() : 'ENT_COMPAT'; + + if (useTable !== 'HTML_SPECIALCHARS' && useTable !== 'HTML_ENTITIES') { + throw new Error("Table: "+useTable+' not supported'); + // return false; + } + + entities['38'] = '&'; + if (useTable === 'HTML_ENTITIES') { + entities['160'] = ' '; + entities['161'] = '¡'; + entities['162'] = '¢'; + entities['163'] = '£'; + entities['164'] = '¤'; + entities['165'] = '¥'; + entities['166'] = '¦'; + entities['167'] = '§'; + entities['168'] = '¨'; + entities['169'] = '©'; + entities['170'] = 'ª'; + entities['171'] = '«'; + entities['172'] = '¬'; + entities['173'] = '­'; + entities['174'] = '®'; + entities['175'] = '¯'; + entities['176'] = '°'; + entities['177'] = '±'; + entities['178'] = '²'; + entities['179'] = '³'; + entities['180'] = '´'; + entities['181'] = 'µ'; + entities['182'] = '¶'; + entities['183'] = '·'; + entities['184'] = '¸'; + entities['185'] = '¹'; + entities['186'] = 'º'; + entities['187'] = '»'; + entities['188'] = '¼'; + entities['189'] = '½'; + entities['190'] = '¾'; + entities['191'] = '¿'; + entities['192'] = 'À'; + entities['193'] = 'Á'; + entities['194'] = 'Â'; + entities['195'] = 'Ã'; + entities['196'] = 'Ä'; + entities['197'] = 'Å'; + entities['198'] = 'Æ'; + entities['199'] = 'Ç'; + entities['200'] = 'È'; + entities['201'] = 'É'; + entities['202'] = 'Ê'; + entities['203'] = 'Ë'; + entities['204'] = 'Ì'; + entities['205'] = 'Í'; + entities['206'] = 'Î'; + entities['207'] = 'Ï'; + entities['208'] = 'Ð'; + entities['209'] = 'Ñ'; + entities['210'] = 'Ò'; + entities['211'] = 'Ó'; + entities['212'] = 'Ô'; + entities['213'] = 'Õ'; + entities['214'] = 'Ö'; + entities['215'] = '×'; + entities['216'] = 'Ø'; + entities['217'] = 'Ù'; + entities['218'] = 'Ú'; + entities['219'] = 'Û'; + entities['220'] = 'Ü'; + entities['221'] = 'Ý'; + entities['222'] = 'Þ'; + entities['223'] = 'ß'; + entities['224'] = 'à'; + entities['225'] = 'á'; + entities['226'] = 'â'; + entities['227'] = 'ã'; + entities['228'] = 'ä'; + entities['229'] = 'å'; + entities['230'] = 'æ'; + entities['231'] = 'ç'; + entities['232'] = 'è'; + entities['233'] = 'é'; + entities['234'] = 'ê'; + entities['235'] = 'ë'; + entities['236'] = 'ì'; + entities['237'] = 'í'; + entities['238'] = 'î'; + entities['239'] = 'ï'; + entities['240'] = 'ð'; + entities['241'] = 'ñ'; + entities['242'] = 'ò'; + entities['243'] = 'ó'; + entities['244'] = 'ô'; + entities['245'] = 'õ'; + entities['246'] = 'ö'; + entities['247'] = '÷'; + entities['248'] = 'ø'; + entities['249'] = 'ù'; + entities['250'] = 'ú'; + entities['251'] = 'û'; + entities['252'] = 'ü'; + entities['253'] = 'ý'; + entities['254'] = 'þ'; + entities['255'] = 'ÿ'; + } + + if (useQuoteStyle !== 'ENT_NOQUOTES') { + entities['34'] = '"'; + } + if (useQuoteStyle === 'ENT_QUOTES') { + entities['39'] = '''; + } + entities['60'] = '<'; + entities['62'] = '>'; + + + // ascii decimals to real symbols + for (decimal in entities) { + symbol = String.fromCharCode(decimal); + hash_map[symbol] = entities[decimal]; + } + + return hash_map; + }, + unserialize: function (data) { + var that = this; + var utf8Overhead = function(chr) { + var code = chr.charCodeAt(0); + if (code < 0x0080) { + return 0; + } + if (code < 0x0800) { + return 1; + } + return 2; + }; + + + var error = function (type, msg, filename, line){throw new that.window[type](msg, filename, line);}; + var read_until = function (data, offset, stopchr){ + var buf = []; + var chr = data.slice(offset, offset + 1); + var i = 2; + while (chr != stopchr) { + if ((i+offset) > data.length) { + error('Error', 'Invalid'); + } + buf.push(chr); + chr = data.slice(offset + (i - 1),offset + i); + i += 1; + } + return [buf.length, buf.join('')]; + }; + var read_chrs = function (data, offset, length){ + var buf; + + buf = []; + for (var i = 0;i < length;i++){ + var chr = data.slice(offset + (i - 1),offset + i); + buf.push(chr); + length -= utf8Overhead(chr); + } + return [buf.length, buf.join('')]; + }; + var _unserialize = function (data, offset){ + var readdata; + var readData; + var chrs = 0; + var ccount; + var stringlength; + var keyandchrs; + var keys; + + if (!offset) {offset = 0;} + var dtype = (data.slice(offset, offset + 1)).toLowerCase(); + + var dataoffset = offset + 2; + var typeconvert = function(x) {return x;}; + + switch (dtype){ + case 'i': + typeconvert = function (x) {return parseInt(x, 10);}; + readData = read_until(data, dataoffset, ';'); + chrs = readData[0]; + readdata = readData[1]; + dataoffset += chrs + 1; + break; + case 'b': + typeconvert = function (x) {return parseInt(x, 10) !== 0;}; + readData = read_until(data, dataoffset, ';'); + chrs = readData[0]; + readdata = readData[1]; + dataoffset += chrs + 1; + break; + case 'd': + typeconvert = function (x) {return parseFloat(x);}; + readData = read_until(data, dataoffset, ';'); + chrs = readData[0]; + readdata = readData[1]; + dataoffset += chrs + 1; + break; + case 'n': + readdata = null; + break; + case 's': + ccount = read_until(data, dataoffset, ':'); + chrs = ccount[0]; + stringlength = ccount[1]; + dataoffset += chrs + 2; + + readData = read_chrs(data, dataoffset+1, parseInt(stringlength, 10)); + chrs = readData[0]; + readdata = readData[1]; + dataoffset += chrs + 2; + if (chrs != parseInt(stringlength, 10) && chrs != readdata.length){ + error('SyntaxError', 'String length mismatch'); + } + + // Length was calculated on an utf-8 encoded string + // so wait with decoding + readdata = D3.utf8_decode(readdata); + break; + case 'a': + readdata = {}; + + keyandchrs = read_until(data, dataoffset, ':'); + chrs = keyandchrs[0]; + keys = keyandchrs[1]; + dataoffset += chrs + 2; + + for (var i = 0; i < parseInt(keys, 10); i++){ + var kprops = _unserialize(data, dataoffset); + var kchrs = kprops[1]; + var key = kprops[2]; + dataoffset += kchrs; + + var vprops = _unserialize(data, dataoffset); + var vchrs = vprops[1]; + var value = vprops[2]; + dataoffset += vchrs; + + readdata[key] = value; + } + + dataoffset += 1; + break; + default: + error('SyntaxError', 'Unknown / Unhandled data type(s): ' + dtype); + break; + } + return [dtype, dataoffset - offset, typeconvert(readdata)]; + }; + + return D3.var_dump(_unserialize((data+''), 0)[2]); + }, + utf8_encode: function ( argString ) { + var string = (argString+''); // .replace(/\r\n/g, "\n").replace(/\r/g, "\n"); + + var utftext = ""; + var start, end; + var stringl = 0; + + start = end = 0; + stringl = string.length; + for (var n = 0; n < stringl; n++) { + var c1 = string.charCodeAt(n); + var enc = null; + + if (c1 < 128) { + end++; + } else if (c1 > 127 && c1 < 2048) { + enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128); + } else { + enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128); + } + if (enc !== null) { + if (end > start) { + utftext += string.substring(start, end); + } + utftext += enc; + start = end = n+1; + } + } + + if (end > start) { + utftext += string.substring(start, string.length); + } + + return utftext; + }, + utf8_decode: function ( str_data ) { + var tmp_arr = [], i = 0, ac = 0, c1 = 0, c2 = 0, c3 = 0; + + str_data += ''; + + while ( i < str_data.length ) { + c1 = str_data.charCodeAt(i); + if (c1 < 128) { + tmp_arr[ac++] = String.fromCharCode(c1); + i++; + } else if ((c1 > 191) && (c1 < 224)) { + c2 = str_data.charCodeAt(i+1); + tmp_arr[ac++] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63)); + i += 2; + } else { + c2 = str_data.charCodeAt(i+1); + c3 = str_data.charCodeAt(i+2); + tmp_arr[ac++] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); + i += 3; + } + } + + return tmp_arr.join(''); + }, + + /** + * Concatenates the values of a variable into an easily readable string + * by Matt Hackett [scriptnode.com] + * @param {Object} x The variable to debug + * @param {Number} max The maximum number of recursions allowed (keep low, around 5 for HTML elements to prevent errors) [default: 10] + * @param {String} sep The separator to use between [default: a single space ' '] + * @param {Number} l The current level deep (amount of recursion). Do not use this parameter: it's for the function's own use + */ + var_dump: function (x, max, sep, l) { + + l = l || 0; + max = max || 10; + sep = sep || ' '; + + if (l > max) { + return "[WARNING: Too much recursion]\n"; + } + + var + i, + r = '', + t = typeof x, + tab = ''; + + if (x === null) { + r += "(null)\n"; + } else if (t == 'object') { + + l++; + + for (i = 0; i < l; i++) { + tab += sep; + } + + if (x && x.length) { + t = 'array'; + } + + r += '(' + t + ") :\n"; + + for (i in x) { + try { + r += tab + '[' + i + '] : ' + D3.var_dump(x[i], max, sep, (l + 1)); + } catch(e) { + return "[ERROR: " + e + "]\n"; + } + } + + } else { + + if (t == 'string') { + if (x == '') { + x = '(empty)'; + } + } + + r += '(' + t + ') ' + x + "\n"; + + } + + return r; - try { - D3.menuIds["options"] = browser.contextMenus.create(menu); - } catch (e) { - console.log(e); - } - } - }); }, + + menus: false, + + menuLoadTime: 1000, + + createContextMenu: function() { + var changed = false, + createMenu = function(name, infotext, ptFunction) { + var menu; + + if(localStorage.getItem("functions_" + name) == '1' && !D3.menuIds[name]) { + // Menu for selected text + menu = { + "title" : infotext, + "contexts" : ["selection", "editable"], + "onclick" : function (info, tab) { + D3.createPopup(infotext, ptFunction(info.selectionText)); + } + }; + D3.menuIds[name]=chrome.contextMenus.create(menu); + + // Menu for normal page + menu = { + "title" : infotext, + "contexts" : ["page"], + "onclick" : function (info, tab) { + + var bg = chrome.extension.getBackgroundPage(), + clipboard = bg.document.getElementById("clipboard"), + clipboardText; + + clipboard.style.display = "block"; + clipboard.select(); + bg.document.execCommand("Paste"); + clipboardText = clipboard.value; + clipboard.style.display = "none"; - translate: function (name) { - let e_msg = "Could not translate " + name; + D3.copyToClipboard(ptFunction(clipboardText)); + } + }; + D3.menuIds[name + '_c']=chrome.contextMenus.create(menu); + + changed = true; + } else if(localStorage.getItem("functions_" + name) == '0') { + if (D3.menuIds[name]) { + console.log(D3.menuIds[name]); + chrome.contextMenus.remove(D3.menuIds[name]); + D3.menuIds[name] = null; + } + + if (D3.menuIds[name + '_c']) { + console.log(D3.menuIds[name + '_c']); + chrome.contextMenus.remove(D3.menuIds[name + '_c']); + D3.menuIds[name + '_c'] = null; + } + } + }; + + D3.menus = true; + + /** + * MENU ITEM DEFINITIONS + */ + createMenu('rot13', 'Rot13 Decode', D3.rot13decode); + createMenu('timestamp', 'Unix timestamp to date conversion', D3.timestampToDate); + createMenu('bin2hex', 'bin2hex', D3.bin2hex); + createMenu('bin2txt', 'bin2txt', D3.bin2txt); + createMenu('uri_encode', 'URI encode', D3.uri_encode); + createMenu('uri_decode', 'URI decode', D3.uri_decode); + createMenu('htmlentities', 'HTML entities', D3.htmlentities); + createMenu('html_entity_decode', 'HTML entity decode', D3.html_entity_decode); + createMenu('htmlspecialchars', 'HTML specialchars', D3.htmlspecialchars); + createMenu('htmlspecialchars_decode', 'HTML specialchars decode', D3.htmlspecialchars_decode); + createMenu('md5', 'MD5', D3.md5); + createMenu('sha1', 'SHA1', D3.sha1); + createMenu('crc32', 'CRC32', D3.crc32); + createMenu('quoted_printable_decode', 'Quoted printable decode', D3.quoted_printable_decode); + createMenu('quoted_printable_encode', 'Quoted printable encode', D3.quoted_printable_encode); + createMenu('escapeshellarg', 'Escapeshellarg', D3.escapeshellarg); + createMenu('base64_encode', 'Base64 encode', D3.base64_encode); + createMenu('base64_decode', 'Base64 decode', D3.base64_decode); + createMenu('unserialize', 'Unserialize', D3.unserialize); + createMenu('leet_encode', 'L33T Encode', D3.leetEncode); + createMenu('leet_decode', 'L33T Decode', D3.leetDecode); + createMenu('reverse', 'Reverse text', D3.reverseText); + + if (changed === true && D3.menuIds["options"]) { + chrome.contextMenus.remove(D3.menuIds['options']); + D3.menuIds["options"] = null; + } + + if (!D3.menuIds["options"]) { + // Menu item for options + menu = { + "title" : "d3coder options", + "contexts" : ["all"], + "onclick" : function(info, tab) {chrome.tabs.create({url:"html/menu.html"});} + } - return browser.i18n.getMessage(name) || e_msg; + D3.menuIds["options"]=chrome.contextMenus.create(menu); } -}; \ No newline at end of file + } +}; diff --git a/js/D3lib.js b/js/D3lib.js deleted file mode 100644 index ad4b250..0000000 --- a/js/D3lib.js +++ /dev/null @@ -1,1396 +0,0 @@ -/** - * RegEx escaping - */ -RegExp.escape = function (text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); -}; - - -var D3lib = { - PhrasesEnglish: new Array('crap', 'dude', 'hacker', - 'hacks', 'you', 'cool', 'oh my god', - 'fear', 'power', 'own', 'lol', - 'what the hell', 'elite', 'for the win', - 'oh really', 'good game'), - - PhrasesLeet: new Array('carp', 'dood', 'haxor', 'hax', 'joo', - 'kewl', 'omg', 'ph43', 'powwah', 'pwn', 'lawl', - 'wth', 'leet', 'ftw', 'o rly', 'gg'), - - LettersEnglish: new Array('n', 'b', 'k', 'd', 'e', 'f', 'g', 'h', - 'p', 'm', 'r', 'l', 'o', 'q', 's', 't', - 'u', 'x', 'w', 'y', 'z', 'c', 'a', 'j', - 'i', 'v', ' '), - - LettersLeet: new Array('/\\/', '|}', '|X', '[)', '3', '|=', 'gee', '|-|', - '|*', '(\\/)', '|2', '1', '()', '0', '$', '+', - '|_|', '><', '\\X/', '\'/', '2', '<', '/\\', '_|', - '|', '\\/', ' '), - - rot13decode: function (text) { - var keycode = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - var textrot = new String(); - - for (var i = 0; i < text.length; i++) { - var codechar = text.substring(i, i + 1); - var pos = keycode.indexOf(codechar.toUpperCase()); - - if (pos >= 0) { - pos = (pos + keycode.length / 2) % keycode.length; - codechar = (codechar == codechar.toUpperCase()) ? keycode.substring(pos, pos + 1) : keycode.substring(pos, pos + 1).toLowerCase(); - } - textrot = textrot + codechar; - } - - return textrot; - }, - - timestampToDate: function (text) { - var timestamp = parseInt(text); - - if (!timestamp) return; - - var dateObject = new Date(); - dateObject.setTime(timestamp * 1000); - return dateObject.toString(); - }, - - crc32: function (str) { - str = D3lib.utf8_encode(str); - const table = "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D"; - - let crc = 0; - let x = 0; - let y = 0; - - crc = crc ^ (-1); - for (let i = 0, iTop = str.length; i < iTop; i++) { - y = (crc ^ str.charCodeAt(i)) & 0xFF; - x = "0x" + table.substr(y * 9, 8); - crc = (crc >>> 8) ^ x; - } - - return "0x" + (crc ^ (-1)).toString(16); - }, - - bin2hex: function (s) { - var i, f = 0, - a = []; - - s += ''; - f = s.length; - - for (i = 0; i < f; i++) { - a[i] = s.charCodeAt(i).toString(16).replace(/^([\da-f])$/, "0$1"); - } - - return a.join(''); - }, - - bin2txt: function (binary) { - binary = binary.replace(/(\s)/gm, ""); - - var string = ""; - - for (i = 0; i < binary.length / 8; i++) { - sub = binary.substr(i * 8, 8); - num = 0; - - for (j = 0; j < sub.length; j++) { - if (sub.charAt(j) != '0') { - num += Math.pow(2, 7 - j); - } - } - - string += String.fromCharCode(num); - } - - return string; - }, - - txt2hex: function (text) { - var arr = []; - for (var i = 0, l = text.length; i < l; i++) { - var hex = Number(text.charCodeAt(i)).toString(16); - arr.push(hex); - } - return arr.join(''); - }, - - hex2txt: function (data) { - data = data.toString(); // Force conversion - data = data.replace(/[^0-9a-fA-F]+/g, ""); // Strip all non-HEX characters - var str = ''; - for (var i = 0; i < data.length; i += 2) - str += String.fromCharCode(parseInt(data.substr(i, 2), 16)); - return str; - }, - - html_entity_decode: function (string, quote_style) { - var hash_map = {}, - symbol = '', - tmp_str = '', - entity = ''; - tmp_str = string.toString(); - - if (false === (hash_map = D3lib.get_html_translation_table('HTML_ENTITIES', quote_style))) { - return false; - } - - // fix & problem - // http://phpjs.org/functions/get_html_translation_table:416#comment_97660 - delete(hash_map['&']); - hash_map['&'] = '&'; - - for (symbol in hash_map) { - entity = hash_map[symbol]; - tmp_str = tmp_str.split(entity).join(symbol); - } - tmp_str = tmp_str.split(''').join("'"); - - return tmp_str; - }, - - htmlentities: function (string, quote_style) { - var hash_map = {}, - symbol = '', - tmp_str = '', - entity = ''; - tmp_str = string.toString(); - - if (false === (hash_map = D3lib.get_html_translation_table('HTML_ENTITIES', quote_style))) { - return false; - } - hash_map["'"] = '''; - for (symbol in hash_map) { - entity = hash_map[symbol]; - tmp_str = tmp_str.split(symbol).join(entity); - } - - return tmp_str; - }, - - htmlspecialchars: function (string, quote_style, charset, double_encode) { - var optTemp = 0, - i = 0, - noquotes = false; - if (typeof quote_style === 'undefined' || quote_style === null) { - quote_style = 2; - } - string = string.toString(); - if (double_encode !== false) { // Put this first to avoid double-encoding - string = string.replace(/&/g, '&'); - } - string = string.replace(//g, '>'); - - var OPTS = { - 'ENT_NOQUOTES': 0, - 'ENT_HTML_QUOTE_SINGLE': 1, - 'ENT_HTML_QUOTE_DOUBLE': 2, - 'ENT_COMPAT': 2, - 'ENT_QUOTES': 3, - 'ENT_IGNORE': 4 - }; - if (quote_style === 0) { - noquotes = true; - } - if (typeof quote_style !== 'number') { // Allow for a single string or an array of string flags - quote_style = [].concat(quote_style); - for (i = 0; i < quote_style.length; i++) { - // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4 - if (OPTS[quote_style[i]] === 0) { - noquotes = true; - } else if (OPTS[quote_style[i]]) { - optTemp = optTemp | OPTS[quote_style[i]]; - } - } - quote_style = optTemp; - } - if (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) { - string = string.replace(/'/g, '''); - } - if (!noquotes) { - string = string.replace(/"/g, '"'); - } - - return string; - }, - - htmlspecialchars_decode: function (string, quote_style) { - var optTemp = 0, - i = 0, - noquotes = false; - if (typeof quote_style === 'undefined') { - quote_style = 2; - } - string = string.toString().replace(/</g, '<').replace(/>/g, '>'); - var OPTS = { - 'ENT_NOQUOTES': 0, - 'ENT_HTML_QUOTE_SINGLE': 1, - 'ENT_HTML_QUOTE_DOUBLE': 2, - 'ENT_COMPAT': 2, - 'ENT_QUOTES': 3, - 'ENT_IGNORE': 4 - }; - if (quote_style === 0) { - noquotes = true; - } - if (typeof quote_style !== 'number') { // Allow for a single string or an array of string flags - quote_style = [].concat(quote_style); - for (i = 0; i < quote_style.length; i++) { - // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4 - if (OPTS[quote_style[i]] === 0) { - noquotes = true; - } else if (OPTS[quote_style[i]]) { - optTemp = optTemp | OPTS[quote_style[i]]; - } - } - quote_style = optTemp; - } - if (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) { - string = string.replace(/�*39;/g, "'"); // PHP doesn't currently escape if more than one 0, but it should - // string = string.replace(/'|�*27;/g, "'"); // This would also be useful here, but not a part of PHP - } - if (!noquotes) { - string = string.replace(/"/g, '"'); - } - // Put this in last place to avoid escape being double-decoded - string = string.replace(/&/g, '&'); - - return string; - }, - - uri_encode: function (str) { - return encodeURIComponent(str); - }, - - uri_decode: function (str) { - return decodeURIComponent(str); - }, - - md5: function (str) { - var xl; - - var rotateLeft = function (lValue, iShiftBits) { - return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); - }; - - var addUnsigned = function (lX, lY) { - var lX4, lY4, lX8, lY8, lResult; - lX8 = (lX & 0x80000000); - lY8 = (lY & 0x80000000); - lX4 = (lX & 0x40000000); - lY4 = (lY & 0x40000000); - lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF); - if (lX4 & lY4) { - return (lResult ^ 0x80000000 ^ lX8 ^ lY8); - } - if (lX4 | lY4) { - if (lResult & 0x40000000) { - return (lResult ^ 0xC0000000 ^ lX8 ^ lY8); - } else { - return (lResult ^ 0x40000000 ^ lX8 ^ lY8); - } - } else { - return (lResult ^ lX8 ^ lY8); - } - }; - - var _F = function (x, y, z) { - return (x & y) | ((~x) & z); - }; - var _G = function (x, y, z) { - return (x & z) | (y & (~z)); - }; - var _H = function (x, y, z) { - return (x ^ y ^ z); - }; - var _I = function (x, y, z) { - return (y ^ (x | (~z))); - }; - - var _FF = function (a, b, c, d, x, s, ac) { - a = addUnsigned(a, addUnsigned(addUnsigned(_F(b, c, d), x), ac)); - return addUnsigned(rotateLeft(a, s), b); - }; - - var _GG = function (a, b, c, d, x, s, ac) { - a = addUnsigned(a, addUnsigned(addUnsigned(_G(b, c, d), x), ac)); - return addUnsigned(rotateLeft(a, s), b); - }; - - var _HH = function (a, b, c, d, x, s, ac) { - a = addUnsigned(a, addUnsigned(addUnsigned(_H(b, c, d), x), ac)); - return addUnsigned(rotateLeft(a, s), b); - }; - - var _II = function (a, b, c, d, x, s, ac) { - a = addUnsigned(a, addUnsigned(addUnsigned(_I(b, c, d), x), ac)); - return addUnsigned(rotateLeft(a, s), b); - }; - - var convertToWordArray = function (str) { - var lWordCount; - var lMessageLength = str.length; - var lNumberOfWords_temp1 = lMessageLength + 8; - var lNumberOfWords_temp2 = (lNumberOfWords_temp1 - (lNumberOfWords_temp1 % 64)) / 64; - var lNumberOfWords = (lNumberOfWords_temp2 + 1) * 16; - var lWordArray = new Array(lNumberOfWords - 1); - var lBytePosition = 0; - var lByteCount = 0; - while (lByteCount < lMessageLength) { - lWordCount = (lByteCount - (lByteCount % 4)) / 4; - lBytePosition = (lByteCount % 4) * 8; - lWordArray[lWordCount] = (lWordArray[lWordCount] | (str.charCodeAt(lByteCount) << lBytePosition)); - lByteCount++; - } - lWordCount = (lByteCount - (lByteCount % 4)) / 4; - lBytePosition = (lByteCount % 4) * 8; - lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition); - lWordArray[lNumberOfWords - 2] = lMessageLength << 3; - lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29; - return lWordArray; - }; - - var wordToHex = function (lValue) { - var wordToHexValue = "", - wordToHexValue_temp = "", - lByte, lCount; - for (lCount = 0; lCount <= 3; lCount++) { - lByte = (lValue >>> (lCount * 8)) & 255; - wordToHexValue_temp = "0" + lByte.toString(16); - wordToHexValue = wordToHexValue + wordToHexValue_temp.substr(wordToHexValue_temp.length - 2, 2); - } - return wordToHexValue; - }; - - var x = [], - k, AA, BB, CC, DD, a, b, c, d, - S11 = 7, - S12 = 12, - S13 = 17, - S14 = 22, - S21 = 5, - S22 = 9, - S23 = 14, - S24 = 20, - S31 = 4, - S32 = 11, - S33 = 16, - S34 = 23, - S41 = 6, - S42 = 10, - S43 = 15, - S44 = 21; - - str = D3lib.utf8_encode(str); - x = convertToWordArray(str); - a = 0x67452301; - b = 0xEFCDAB89; - c = 0x98BADCFE; - d = 0x10325476; - - xl = x.length; - for (k = 0; k < xl; k += 16) { - AA = a; - BB = b; - CC = c; - DD = d; - a = _FF(a, b, c, d, x[k + 0], S11, 0xD76AA478); - d = _FF(d, a, b, c, x[k + 1], S12, 0xE8C7B756); - c = _FF(c, d, a, b, x[k + 2], S13, 0x242070DB); - b = _FF(b, c, d, a, x[k + 3], S14, 0xC1BDCEEE); - a = _FF(a, b, c, d, x[k + 4], S11, 0xF57C0FAF); - d = _FF(d, a, b, c, x[k + 5], S12, 0x4787C62A); - c = _FF(c, d, a, b, x[k + 6], S13, 0xA8304613); - b = _FF(b, c, d, a, x[k + 7], S14, 0xFD469501); - a = _FF(a, b, c, d, x[k + 8], S11, 0x698098D8); - d = _FF(d, a, b, c, x[k + 9], S12, 0x8B44F7AF); - c = _FF(c, d, a, b, x[k + 10], S13, 0xFFFF5BB1); - b = _FF(b, c, d, a, x[k + 11], S14, 0x895CD7BE); - a = _FF(a, b, c, d, x[k + 12], S11, 0x6B901122); - d = _FF(d, a, b, c, x[k + 13], S12, 0xFD987193); - c = _FF(c, d, a, b, x[k + 14], S13, 0xA679438E); - b = _FF(b, c, d, a, x[k + 15], S14, 0x49B40821); - a = _GG(a, b, c, d, x[k + 1], S21, 0xF61E2562); - d = _GG(d, a, b, c, x[k + 6], S22, 0xC040B340); - c = _GG(c, d, a, b, x[k + 11], S23, 0x265E5A51); - b = _GG(b, c, d, a, x[k + 0], S24, 0xE9B6C7AA); - a = _GG(a, b, c, d, x[k + 5], S21, 0xD62F105D); - d = _GG(d, a, b, c, x[k + 10], S22, 0x2441453); - c = _GG(c, d, a, b, x[k + 15], S23, 0xD8A1E681); - b = _GG(b, c, d, a, x[k + 4], S24, 0xE7D3FBC8); - a = _GG(a, b, c, d, x[k + 9], S21, 0x21E1CDE6); - d = _GG(d, a, b, c, x[k + 14], S22, 0xC33707D6); - c = _GG(c, d, a, b, x[k + 3], S23, 0xF4D50D87); - b = _GG(b, c, d, a, x[k + 8], S24, 0x455A14ED); - a = _GG(a, b, c, d, x[k + 13], S21, 0xA9E3E905); - d = _GG(d, a, b, c, x[k + 2], S22, 0xFCEFA3F8); - c = _GG(c, d, a, b, x[k + 7], S23, 0x676F02D9); - b = _GG(b, c, d, a, x[k + 12], S24, 0x8D2A4C8A); - a = _HH(a, b, c, d, x[k + 5], S31, 0xFFFA3942); - d = _HH(d, a, b, c, x[k + 8], S32, 0x8771F681); - c = _HH(c, d, a, b, x[k + 11], S33, 0x6D9D6122); - b = _HH(b, c, d, a, x[k + 14], S34, 0xFDE5380C); - a = _HH(a, b, c, d, x[k + 1], S31, 0xA4BEEA44); - d = _HH(d, a, b, c, x[k + 4], S32, 0x4BDECFA9); - c = _HH(c, d, a, b, x[k + 7], S33, 0xF6BB4B60); - b = _HH(b, c, d, a, x[k + 10], S34, 0xBEBFBC70); - a = _HH(a, b, c, d, x[k + 13], S31, 0x289B7EC6); - d = _HH(d, a, b, c, x[k + 0], S32, 0xEAA127FA); - c = _HH(c, d, a, b, x[k + 3], S33, 0xD4EF3085); - b = _HH(b, c, d, a, x[k + 6], S34, 0x4881D05); - a = _HH(a, b, c, d, x[k + 9], S31, 0xD9D4D039); - d = _HH(d, a, b, c, x[k + 12], S32, 0xE6DB99E5); - c = _HH(c, d, a, b, x[k + 15], S33, 0x1FA27CF8); - b = _HH(b, c, d, a, x[k + 2], S34, 0xC4AC5665); - a = _II(a, b, c, d, x[k + 0], S41, 0xF4292244); - d = _II(d, a, b, c, x[k + 7], S42, 0x432AFF97); - c = _II(c, d, a, b, x[k + 14], S43, 0xAB9423A7); - b = _II(b, c, d, a, x[k + 5], S44, 0xFC93A039); - a = _II(a, b, c, d, x[k + 12], S41, 0x655B59C3); - d = _II(d, a, b, c, x[k + 3], S42, 0x8F0CCC92); - c = _II(c, d, a, b, x[k + 10], S43, 0xFFEFF47D); - b = _II(b, c, d, a, x[k + 1], S44, 0x85845DD1); - a = _II(a, b, c, d, x[k + 8], S41, 0x6FA87E4F); - d = _II(d, a, b, c, x[k + 15], S42, 0xFE2CE6E0); - c = _II(c, d, a, b, x[k + 6], S43, 0xA3014314); - b = _II(b, c, d, a, x[k + 13], S44, 0x4E0811A1); - a = _II(a, b, c, d, x[k + 4], S41, 0xF7537E82); - d = _II(d, a, b, c, x[k + 11], S42, 0xBD3AF235); - c = _II(c, d, a, b, x[k + 2], S43, 0x2AD7D2BB); - b = _II(b, c, d, a, x[k + 9], S44, 0xEB86D391); - a = addUnsigned(a, AA); - b = addUnsigned(b, BB); - c = addUnsigned(c, CC); - d = addUnsigned(d, DD); - } - - var temp = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d); - - return temp.toLowerCase(); - }, - - sha1: function (str) { - var rotate_left = function (n, s) { - var t4 = (n << s) | (n >>> (32 - s)); - return t4; - }; - - var cvt_hex = function (val) { - var str = ""; - var i; - var v; - - for (i = 7; i >= 0; i--) { - v = (val >>> (i * 4)) & 0x0f; - str += v.toString(16); - } - return str; - }; - - var blockstart; - var i, j; - var W = new Array(80); - var H0 = 0x67452301; - var H1 = 0xEFCDAB89; - var H2 = 0x98BADCFE; - var H3 = 0x10325476; - var H4 = 0xC3D2E1F0; - var A, B, C, D, E; - var temp; - - str = D3lib.utf8_encode(str); - var str_len = str.length; - - var word_array = []; - for (i = 0; i < str_len - 3; i += 4) { - j = str.charCodeAt(i) << 24 | str.charCodeAt(i + 1) << 16 | - str.charCodeAt(i + 2) << 8 | str.charCodeAt(i + 3); - word_array.push(j); - } - - switch (str_len % 4) { - case 0: - i = 0x080000000; - break; - case 1: - i = str.charCodeAt(str_len - 1) << 24 | 0x0800000; - break; - case 2: - i = str.charCodeAt(str_len - 2) << 24 | str.charCodeAt(str_len - 1) << 16 | 0x08000; - break; - case 3: - i = str.charCodeAt(str_len - 3) << 24 | str.charCodeAt(str_len - 2) << 16 | str.charCodeAt(str_len - 1) << 8 | 0x80; - break; - } - - word_array.push(i); - - while ((word_array.length % 16) != 14) { - word_array.push(0); - } - - word_array.push(str_len >>> 29); - word_array.push((str_len << 3) & 0x0ffffffff); - - for (blockstart = 0; blockstart < word_array.length; blockstart += 16) { - for (i = 0; i < 16; i++) { - W[i] = word_array[blockstart + i]; - } - for (i = 16; i <= 79; i++) { - W[i] = rotate_left(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1); - } - - - A = H0; - B = H1; - C = H2; - D = H3; - E = H4; - - for (i = 0; i <= 19; i++) { - temp = (rotate_left(A, 5) + ((B & C) | (~B & D)) + E + W[i] + 0x5A827999) & 0x0ffffffff; - E = D; - D = C; - C = rotate_left(B, 30); - B = A; - A = temp; - } - - for (i = 20; i <= 39; i++) { - temp = (rotate_left(A, 5) + (B ^ C ^ D) + E + W[i] + 0x6ED9EBA1) & 0x0ffffffff; - E = D; - D = C; - C = rotate_left(B, 30); - B = A; - A = temp; - } - - for (i = 40; i <= 59; i++) { - temp = (rotate_left(A, 5) + ((B & C) | (B & D) | (C & D)) + E + W[i] + 0x8F1BBCDC) & 0x0ffffffff; - E = D; - D = C; - C = rotate_left(B, 30); - B = A; - A = temp; - } - - for (i = 60; i <= 79; i++) { - temp = (rotate_left(A, 5) + (B ^ C ^ D) + E + W[i] + 0xCA62C1D6) & 0x0ffffffff; - E = D; - D = C; - C = rotate_left(B, 30); - B = A; - A = temp; - } - - H0 = (H0 + A) & 0x0ffffffff; - H1 = (H1 + B) & 0x0ffffffff; - H2 = (H2 + C) & 0x0ffffffff; - H3 = (H3 + D) & 0x0ffffffff; - H4 = (H4 + E) & 0x0ffffffff; - } - - temp = cvt_hex(H0) + cvt_hex(H1) + cvt_hex(H2) + cvt_hex(H3) + cvt_hex(H4); - return temp.toLowerCase(); - }, - - quoted_printable_decode: function (str) { - const RFC2045Decode1 = /=\r\n/gm; - const RFC2045Decode2IN = /=([0-9A-F]{2})/gim; - const RFC2045Decode2OUT = function (sMatch, sHex) { - return String.fromCharCode(parseInt(sHex, 16)); - } - - return D3.utf8_decode(str.replace(RFC2045Decode1, '').replace(RFC2045Decode2IN, RFC2045Decode2OUT)); - }, - - quoted_printable_encode: function (str) { - var hexChars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'], - RFC2045Encode1IN = / \r\n|\r\n|[^!-<>-~ ]/gm, - RFC2045Encode1OUT = function (sMatch) { - // Encode space before CRLF sequence to prevent spaces from being stripped - // Keep hard line breaks intact; CRLF sequences - if (sMatch.length > 1) { - return sMatch.replace(' ', '=20'); - } - // Encode matching character - var chr = sMatch.charCodeAt(0); - return '=' + hexChars[((chr >>> 4) & 15)] + hexChars[(chr & 15)]; - }, - RFC2045Encode2IN = /.{1,72}(?!\r\n)[^=]{0,3}/g, - RFC2045Encode2OUT = function (sMatch) { - if (sMatch.substr(sMatch.length - 2) === '\r\n') { - return sMatch; - } - return sMatch + '=\r\n'; - }; - str = str.replace(RFC2045Encode1IN, RFC2045Encode1OUT).replace(RFC2045Encode2IN, RFC2045Encode2OUT); - return str.substr(0, str.length - 3); - }, - - escapeshellarg: function (arg) { - var ret = ''; - - ret = arg.replace(/[^\\]'/g, function (m, i, s) { - return m.slice(0, 1) + '\\\''; - }); - - return "'" + ret + "'"; - }, - - leetEncode: function (inputString) { - if (!inputString) return ""; - - for (i = 0; i < D3lib.PhrasesEnglish.length; ++i) - inputString = inputString.replace( - new RegExp(D3lib.PhrasesEnglish[i], "gi"), - D3lib.PhrasesLeet[i] - ); - - for (i = 0; i < D3lib.LettersEnglish.length; ++i) - inputString = inputString.replace( - new RegExp(D3lib.LettersEnglish[i], "gi"), - D3lib.LettersLeet[i] - ); - return inputString; - }, - - leetDecode: function (inputString) { - for (i = 0; i < D3lib.LettersLeet.length; ++i) - inputString = inputString.replace( - new RegExp(RegExp.escape(D3lib.LettersLeet[i]), "g"), - D3lib.LettersEnglish[i] - ); - - for (i = 0; i < D3lib.PhrasesLeet.length; ++i) - inputString = inputString.replace( - new RegExp(RegExp.escape(D3lib.PhrasesLeet[i]), "g"), - D3lib.PhrasesEnglish[i] - ); - return inputString; - }, - - reverseText: function (inputString) { - return inputString.split("").reverse().join(""); - }, - - base64_encode: function (data) { - var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, - ac = 0, - enc = "", - tmp_arr = []; - - if (!data) { - return data; - } - - data = D3lib.utf8_encode(data + ''); - - do { // pack three octets into four hexets - o1 = data.charCodeAt(i++); - o2 = data.charCodeAt(i++); - o3 = data.charCodeAt(i++); - - bits = o1 << 16 | o2 << 8 | o3; - - h1 = bits >> 18 & 0x3f; - h2 = bits >> 12 & 0x3f; - h3 = bits >> 6 & 0x3f; - h4 = bits & 0x3f; - - // use hexets to index into b64, and append result to encoded string - tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4); - } while (i < data.length); - - enc = tmp_arr.join(''); - - switch (data.length % 3) { - case 1: - enc = enc.slice(0, -2) + '=='; - break; - case 2: - enc = enc.slice(0, -1) + '='; - break; - } - - return enc; - }, - - base64_decode: function (data) { - var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, - ac = 0, - dec = "", - tmp_arr = []; - - if (!data) { - return data; - } - - data += ''; - - do { // unpack four hexets into three octets using index points in b64 - h1 = b64.indexOf(data.charAt(i++)); - h2 = b64.indexOf(data.charAt(i++)); - h3 = b64.indexOf(data.charAt(i++)); - h4 = b64.indexOf(data.charAt(i++)); - - bits = h1 << 18 | h2 << 12 | h3 << 6 | h4; - - o1 = bits >> 16 & 0xff; - o2 = bits >> 8 & 0xff; - o3 = bits & 0xff; - - if (h3 == 64) { - tmp_arr[ac++] = String.fromCharCode(o1); - } else if (h4 == 64) { - tmp_arr[ac++] = String.fromCharCode(o1, o2); - } else { - tmp_arr[ac++] = String.fromCharCode(o1, o2, o3); - } - } while (i < data.length); - - dec = tmp_arr.join(''); - dec = D3lib.utf8_decode(dec); - - return dec; - }, - - get_html_translation_table: function (table, quote_style) { - - var entities = {}, - hash_map = {}, - decimal = 0, - symbol = ''; - var constMappingTable = {}, - constMappingQuoteStyle = {}; - var useTable = {}, - useQuoteStyle = {}; - - // Translate arguments - constMappingTable[0] = 'HTML_SPECIALCHARS'; - constMappingTable[1] = 'HTML_ENTITIES'; - constMappingQuoteStyle[0] = 'ENT_NOQUOTES'; - constMappingQuoteStyle[2] = 'ENT_COMPAT'; - constMappingQuoteStyle[3] = 'ENT_QUOTES'; - - useTable = !isNaN(table) ? constMappingTable[table] : table ? table.toUpperCase() : 'HTML_SPECIALCHARS'; - useQuoteStyle = !isNaN(quote_style) ? constMappingQuoteStyle[quote_style] : quote_style ? quote_style.toUpperCase() : 'ENT_COMPAT'; - - if (useTable !== 'HTML_SPECIALCHARS' && useTable !== 'HTML_ENTITIES') { - throw new Error("Table: " + useTable + ' not supported'); - // return false; - } - - entities['38'] = '&'; - if (useTable === 'HTML_ENTITIES') { - entities['160'] = ' '; - entities['161'] = '¡'; - entities['162'] = '¢'; - entities['163'] = '£'; - entities['164'] = '¤'; - entities['165'] = '¥'; - entities['166'] = '¦'; - entities['167'] = '§'; - entities['168'] = '¨'; - entities['169'] = '©'; - entities['170'] = 'ª'; - entities['171'] = '«'; - entities['172'] = '¬'; - entities['173'] = '­'; - entities['174'] = '®'; - entities['175'] = '¯'; - entities['176'] = '°'; - entities['177'] = '±'; - entities['178'] = '²'; - entities['179'] = '³'; - entities['180'] = '´'; - entities['181'] = 'µ'; - entities['182'] = '¶'; - entities['183'] = '·'; - entities['184'] = '¸'; - entities['185'] = '¹'; - entities['186'] = 'º'; - entities['187'] = '»'; - entities['188'] = '¼'; - entities['189'] = '½'; - entities['190'] = '¾'; - entities['191'] = '¿'; - entities['192'] = 'À'; - entities['193'] = 'Á'; - entities['194'] = 'Â'; - entities['195'] = 'Ã'; - entities['196'] = 'Ä'; - entities['197'] = 'Å'; - entities['198'] = 'Æ'; - entities['199'] = 'Ç'; - entities['200'] = 'È'; - entities['201'] = 'É'; - entities['202'] = 'Ê'; - entities['203'] = 'Ë'; - entities['204'] = 'Ì'; - entities['205'] = 'Í'; - entities['206'] = 'Î'; - entities['207'] = 'Ï'; - entities['208'] = 'Ð'; - entities['209'] = 'Ñ'; - entities['210'] = 'Ò'; - entities['211'] = 'Ó'; - entities['212'] = 'Ô'; - entities['213'] = 'Õ'; - entities['214'] = 'Ö'; - entities['215'] = '×'; - entities['216'] = 'Ø'; - entities['217'] = 'Ù'; - entities['218'] = 'Ú'; - entities['219'] = 'Û'; - entities['220'] = 'Ü'; - entities['221'] = 'Ý'; - entities['222'] = 'Þ'; - entities['223'] = 'ß'; - entities['224'] = 'à'; - entities['225'] = 'á'; - entities['226'] = 'â'; - entities['227'] = 'ã'; - entities['228'] = 'ä'; - entities['229'] = 'å'; - entities['230'] = 'æ'; - entities['231'] = 'ç'; - entities['232'] = 'è'; - entities['233'] = 'é'; - entities['234'] = 'ê'; - entities['235'] = 'ë'; - entities['236'] = 'ì'; - entities['237'] = 'í'; - entities['238'] = 'î'; - entities['239'] = 'ï'; - entities['240'] = 'ð'; - entities['241'] = 'ñ'; - entities['242'] = 'ò'; - entities['243'] = 'ó'; - entities['244'] = 'ô'; - entities['245'] = 'õ'; - entities['246'] = 'ö'; - entities['247'] = '÷'; - entities['248'] = 'ø'; - entities['249'] = 'ù'; - entities['250'] = 'ú'; - entities['251'] = 'û'; - entities['252'] = 'ü'; - entities['253'] = 'ý'; - entities['254'] = 'þ'; - entities['255'] = 'ÿ'; - } - - if (useQuoteStyle !== 'ENT_NOQUOTES') { - entities['34'] = '"'; - } - if (useQuoteStyle === 'ENT_QUOTES') { - entities['39'] = '''; - } - entities['60'] = '<'; - entities['62'] = '>'; - - - // ascii decimals to real symbols - for (decimal in entities) { - symbol = String.fromCharCode(decimal); - hash_map[symbol] = entities[decimal]; - } - - return hash_map; - }, - - unserialize: function (data) { - data = data + ''; - - function initCache() { - const store = [] - // cache only first element, second is length to jump ahead for the parser - const cache = function cache(value) { - store.push(value[0]) - return value - } - - cache.get = (index) => { - if (index >= store.length) { - throw RangeError(`Can't resolve reference ${index + 1}`) - } - - return store[index] - } - - return cache - } - - function expectType(str, cache) { - const types = /^(?:N(?=;)|[bidsSaOCrR](?=:)|[^:]+(?=:))/g - const type = (types.exec(str) || [])[0] - - if (!type) { - throw SyntaxError('Invalid input: ' + str) - } - - switch (type) { - case 'N': - return cache([null, 2]) - case 'b': - return cache(expectBool(str)) - case 'i': - return cache(expectInt(str)) - case 'd': - return cache(expectFloat(str)) - case 's': - return cache(expectString(str)) - case 'S': - return cache(expectEscapedString(str)) - case 'a': - return expectArray(str, cache) - case 'O': - return expectObject(str, cache) - case 'C': - return expectClass(str, cache) - case 'r': - case 'R': - return expectReference(str, cache) - default: - throw SyntaxError(`Invalid or unsupported data type: ${type}`) - } - } - - function expectBool(str) { - const reBool = /^b:([01]);/ - const [match, boolMatch] = reBool.exec(str) || [] - - if (!boolMatch) { - throw SyntaxError('Invalid bool value, expected 0 or 1') - } - - return [boolMatch === '1', match.length] - } - - function expectInt(str) { - const reInt = /^i:([+-]?\d+);/ - const [match, intMatch] = reInt.exec(str) || [] - - if (!intMatch) { - throw SyntaxError('Expected an integer value') - } - - return [parseInt(intMatch, 10), match.length] - } - - function expectFloat(str) { - const reFloat = /^d:(NAN|-?INF|(?:\d+\.\d*|\d*\.\d+|\d+)(?:[eE][+-]\d+)?);/ - const [match, floatMatch] = reFloat.exec(str) || [] - - if (!floatMatch) { - throw SyntaxError('Expected a float value') - } - - let floatValue - - switch (floatMatch) { - case 'NAN': - floatValue = Number.NaN - break - case '-INF': - floatValue = Number.NEGATIVE_INFINITY - break - case 'INF': - floatValue = Number.POSITIVE_INFINITY - break - default: - floatValue = parseFloat(floatMatch) - break - } - - return [floatValue, match.length] - } - - function readBytes(str, len, escapedString = false) { - let bytes = 0 - let out = '' - let c = 0 - const strLen = str.length - let wasHighSurrogate = false - let escapedChars = 0 - - while (bytes < len && c < strLen) { - let chr = str.charAt(c) - const code = chr.charCodeAt(0) - const isHighSurrogate = code >= 0xd800 && code <= 0xdbff - const isLowSurrogate = code >= 0xdc00 && code <= 0xdfff - - if (escapedString && chr === '\\') { - chr = String.fromCharCode(parseInt(str.substr(c + 1, 2), 16)) - escapedChars++ - - // each escaped sequence is 3 characters. Go 2 chars ahead. - // third character will be jumped over a few lines later - c += 2 - } - - c++ - - bytes += isHighSurrogate || (isLowSurrogate && wasHighSurrogate) - // if high surrogate, count 2 bytes, as expectation is to be followed by low surrogate - // if low surrogate preceded by high surrogate, add 2 bytes - ? - 2 : - code > 0x7ff - // otherwise low surrogate falls into this part - ? - 3 : - code > 0x7f ? - 2 : - 1 - - // if high surrogate is not followed by low surrogate, add 1 more byte - bytes += wasHighSurrogate && !isLowSurrogate ? 1 : 0; - - out += chr; - wasHighSurrogate = isHighSurrogate; - } - - return [out, bytes, escapedChars]; - } - - function expectString(str) { - // PHP strings consist of one-byte characters. - // JS uses 2 bytes with possible surrogate pairs. - // Serialized length of 2 is still 1 JS string character - const reStrLength = /^s:(\d+):"/g; // also match the opening " char - const [match, byteLenMatch] = reStrLength.exec(str) || []; - - if (!match) { - throw SyntaxError('Expected a string value'); - } - - const len = parseInt(byteLenMatch, 10); - - str = str.substr(match.length); - - const [strMatch, bytes] = readBytes(str, len); - - if (bytes !== len) { - throw SyntaxError(`Expected string of ${len} bytes, but got ${bytes}`); - } - - str = str.substr(strMatch.length); - - // strict parsing, match closing "; chars - if (!str.startsWith('";')) { - throw SyntaxError('Expected ";'); - } - - return [strMatch, match.length + strMatch.length + 2]; // skip last "; - } - - function expectEscapedString(str) { - const reStrLength = /^S:(\d+):"/g; // also match the opening " char - const [match, strLenMatch] = reStrLength.exec(str) || []; - - if (!match) { - throw SyntaxError('Expected an escaped string value'); - } - - const len = parseInt(strLenMatch, 10); - - str = str.substr(match.length); - - const [strMatch, bytes, escapedChars] = readBytes(str, len, true); - - if (bytes !== len) { - throw SyntaxError(`Expected escaped string of ${len} bytes, but got ${bytes}`); - } - - str = str.substr(strMatch.length + escapedChars * 2); - - // strict parsing, match closing "; chars - if (!str.startsWith('";')) { - throw SyntaxError('Expected ";'); - } - - return [strMatch, match.length + strMatch.length + 2]; // skip last "; - } - - function expectKeyOrIndex(str) { - try { - return expectString(str); - } catch (err) {} - - try { - return expectEscapedString(str); - } catch (err) {} - - try { - return expectInt(str); - } catch (err) { - throw SyntaxError('Expected key or index'); - } - } - - function expectObject(str, cache) { - // O::"class name"::{} - // O:8:"stdClass":2:{s:3:"foo";s:3:"bar";s:3:"bar";s:3:"baz";} - const reObjectLiteral = /^O:(\d+):"([^"]+)":(\d+):\{/; - const [objectLiteralBeginMatch, /* classNameLengthMatch */ , className, propCountMatch] = reObjectLiteral.exec(str) || []; - - if (!objectLiteralBeginMatch) { - throw SyntaxError('Invalid input'); - } - - if (className !== 'stdClass') { - throw SyntaxError(`Unsupported object type: ${className}`); - } - - let totalOffset = objectLiteralBeginMatch.length; - - const propCount = parseInt(propCountMatch, 10); - const obj = {}; - cache([obj]); - - str = str.substr(totalOffset); - - for (let i = 0; i < propCount; i++) { - const prop = expectKeyOrIndex(str); - str = str.substr(prop[1]); - totalOffset += prop[1]; - - const value = expectType(str, cache); - str = str.substr(value[1]); - totalOffset += value[1]; - - obj[prop[0]] = value[0]; - } - - // strict parsing, expect } after object literal - if (str.charAt(0) !== '}') { - throw SyntaxError('Expected }'); - } - - return [obj, totalOffset + 1]; // skip final } - } - - function expectClass(str, cache) { - // can't be well supported, because requires calling eval (or similar) - // in order to call serialized constructor name - // which is unsafe - // or assume that constructor is defined in global scope - // but this is too much limiting - throw Error('Not yet implemented'); - } - - function expectReference(str, cache) { - const reRef = /^[rR]:([1-9]\d*);/; - const [match, refIndex] = reRef.exec(str) || []; - - if (!match) { - throw SyntaxError('Expected reference value'); - } - - return [cache.get(parseInt(refIndex, 10) - 1), match.length]; - } - - function expectArray(str, cache) { - const reArrayLength = /^a:(\d+):{/; - const [arrayLiteralBeginMatch, arrayLengthMatch] = reArrayLength.exec(str) || []; - - if (!arrayLengthMatch) { - throw SyntaxError('Expected array length annotation'); - } - - str = str.substr(arrayLiteralBeginMatch.length); - - const array = expectArrayItems(str, parseInt(arrayLengthMatch, 10), cache); - - // strict parsing, expect closing } brace after array literal - if (str.charAt(array[1]) !== '}') { - throw SyntaxError('Expected }'); - } - - return [array[0], arrayLiteralBeginMatch.length + array[1] + 1]; // jump over } - } - - function expectArrayItems(str, expectedItems = 0, cache) { - let key; - let hasStringKeys = false; - let item; - let totalOffset = 0; - let items = []; - cache([items]); - - for (let i = 0; i < expectedItems; i++) { - key = expectKeyOrIndex(str); - - // this is for backward compatibility with previous implementation - if (!hasStringKeys) { - hasStringKeys = (typeof key[0] === 'string'); - } - - str = str.substr(key[1]); - totalOffset += key[1]; - - // references are resolved immediately, so if duplicate key overwrites previous array index - // the old value is anyway resolved - // fixme: but next time the same reference should point to the new value - item = expectType(str, cache); - str = str.substr(item[1]); - totalOffset += item[1]; - - items[key[0]] = item[0]; - } - - // this is for backward compatibility with previous implementation - if (hasStringKeys) { - items = Object.assign({}, items); - } - - return [items, totalOffset]; - } - - try { - if (typeof data !== 'string') { - return false; - } - - return D3lib.var_dump(expectType(data, initCache())[0]); - } catch (err) { - console.error(err); - return err; - } - }, - - utf8_encode: function (argString) { - var string = (argString + ''); // .replace(/\r\n/g, "\n").replace(/\r/g, "\n"); - - var utftext = ""; - var start, end; - var stringl = 0; - - start = end = 0; - stringl = string.length; - for (var n = 0; n < stringl; n++) { - var c1 = string.charCodeAt(n); - var enc = null; - - if (c1 < 128) { - end++; - } else if (c1 > 127 && c1 < 2048) { - enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128); - } else { - enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128); - } - if (enc !== null) { - if (end > start) { - utftext += string.substring(start, end); - } - utftext += enc; - start = end = n + 1; - } - } - - if (end > start) { - utftext += string.substring(start, string.length); - } - - return utftext; - }, - - utf8_decode: function (str_data) { - let tmp_arr = []; - let i = 0; - let ac = 0; - let c1 = 0; - let c2 = 0; - let c3 = 0; - - str_data = str_data + ''; - - while (i < str_data.length) { - c1 = str_data.charCodeAt(i); - if (c1 < 128) { - tmp_arr[ac++] = String.fromCharCode(c1); - i++; - } else if ((c1 > 191) && (c1 < 224)) { - c2 = str_data.charCodeAt(i + 1); - tmp_arr[ac++] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63)); - i += 2; - } else { - c2 = str_data.charCodeAt(i + 1); - c3 = str_data.charCodeAt(i + 2); - tmp_arr[ac++] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); - i += 3; - } - } - - return tmp_arr.join(''); - }, - - /** - * Concatenates the values of a variable into an easily readable string - * by Matt Hackett [scriptnode.com] - * @param {Object} x The variable to debug - * @param {Number} max The maximum number of recursions allowed (keep low, around 5 for HTML elements to prevent errors) [default: 10] - * @param {String} sep The separator to use between [default: a single space ' '] - * @param {Number} l The current level deep (amount of recursion). Do not use this parameter: it's for the function's own use - */ - var_dump: function (x, max, sep, l) { - - l = l || 0; - max = max || 10; - sep = sep || ' '; - - if (l > max) { - return "[WARNING: Too much recursion]\n"; - } - - let i; - let r = ''; - let t = typeof x; - let tab = ''; - - if (x === null) { - r += "(null)\n"; - } else if (t == 'object') { - - l++; - - for (i = 0; i < l; i++) { - tab += sep; - } - - if (x && x.length) { - t = 'array'; - } - - r += '(' + t + ") :\n"; - - for (i in x) { - try { - r += tab + '[' + i + '] : ' + D3lib.var_dump(x[i], max, sep, (l + 1)); - } catch (e) { - return "[ERROR: " + e + "]\n"; - } - } - - } else { - - if (t == 'string') { - if (x == '') { - x = '(empty)'; - } - } - - r += '(' + t + ') ' + x + "\n"; - - } - - return r; - - }, -} \ No newline at end of file diff --git a/js/background.js b/js/background.js new file mode 100644 index 0000000..ac26ab9 --- /dev/null +++ b/js/background.js @@ -0,0 +1,19 @@ +D3.checkInstall(); +waitInterval = window.setInterval( + function(){ D3.createContextMenu() }, + D3.menuLoadTime +); + +chrome.extension.onRequest.addListener( + function(request, sender, sendResponse) { + console.log(sender.tab ? + "from a content script:" + sender.tab.url : + "from the extension"); + if (request.command == "doCopy") { + console.log(D3); + var responseStatus = D3.copyToClipboard(D3.lastMessage); + sendResponse({status: ["Message copied to clip board!", responseStatus] }); + } else { + sendResponse({}); // snub them. + } +}); diff --git a/js/browser-polyfill.min.js b/js/browser-polyfill.min.js deleted file mode 100644 index 5bd0343..0000000 --- a/js/browser-polyfill.min.js +++ /dev/null @@ -1,8 +0,0 @@ -(function(a,b){if("function"==typeof define&&define.amd)define("webextension-polyfill",["module"],b);else if("undefined"!=typeof exports)b(module);else{var c={exports:{}};b(c),a.browser=c.exports}})("undefined"==typeof globalThis?"undefined"==typeof self?this:self:globalThis,function(a){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if("undefined"==typeof globalThis.browser||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){a.exports=(a=>{const b={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(b).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class c extends WeakMap{constructor(a,b=void 0){super(b),this.createItem=a}get(a){return this.has(a)||this.set(a,this.createItem(a)),super.get(a)}}const d=a=>a&&"object"==typeof a&&"function"==typeof a.then,e=(b,c)=>(...d)=>{a.runtime.lastError?b.reject(new Error(a.runtime.lastError.message)):c.singleCallbackArg||1>=d.length&&!1!==c.singleCallbackArg?b.resolve(d[0]):b.resolve(d)},f=a=>1==a?"argument":"arguments",g=(a,b)=>function(c,...d){if(d.lengthb.maxArgs)throw new Error(`Expected at most ${b.maxArgs} ${f(b.maxArgs)} for ${a}(), got ${d.length}`);return new Promise((f,g)=>{if(b.fallbackToNoCallback)try{c[a](...d,e({resolve:f,reject:g},b))}catch(e){console.warn(`${a} API method doesn't seem to support the callback parameter, `+"falling back to call it without a callback: ",e),c[a](...d),b.fallbackToNoCallback=!1,b.noCallback=!0,f()}else b.noCallback?(c[a](...d),f()):c[a](...d,e({resolve:f,reject:g},b))})},h=(a,b,c)=>new Proxy(b,{apply(b,d,e){return c.call(d,a,...e)}});let i=Function.call.bind(Object.prototype.hasOwnProperty);const j=(a,b={},c={})=>{let d=Object.create(null),e=Object.create(a);return new Proxy(e,{has(b,c){return c in a||c in d},get(e,f){if(f in d)return d[f];if(!(f in a))return;let k=a[f];if("function"==typeof k){if("function"==typeof b[f])k=h(a,a[f],b[f]);else if(i(c,f)){let b=g(f,c[f]);k=h(a,a[f],b)}else k=k.bind(a);}else if("object"==typeof k&&null!==k&&(i(b,f)||i(c,f)))k=j(k,b[f],c[f]);else if(i(c,"*"))k=j(k,b[f],c["*"]);else return Object.defineProperty(d,f,{configurable:!0,enumerable:!0,get(){return a[f]},set(b){a[f]=b}}),k;return d[f]=k,k},set(b,c,e){return c in d?d[c]=e:a[c]=e,!0},defineProperty(a,b,c){return Reflect.defineProperty(d,b,c)},deleteProperty(a,b){return Reflect.deleteProperty(d,b)}})},k=a=>({addListener(b,c,...d){b.addListener(a.get(c),...d)},hasListener(b,c){return b.hasListener(a.get(c))},removeListener(b,c){b.removeListener(a.get(c))}}),l=new c(a=>"function"==typeof a?function(b){const c=j(b,{},{getContent:{minArgs:0,maxArgs:0}});a(c)}:a),m=new c(a=>"function"==typeof a?function(b,c,e){let f,g,h=!1,i=new Promise(a=>{f=function(b){h=!0,a(b)}});try{g=a(b,c,f)}catch(a){g=Promise.reject(a)}const j=!0!==g&&d(g);if(!0!==g&&!j&&!h)return!1;const k=a=>{a.then(a=>{e(a)},a=>{let b;b=a&&(a instanceof Error||"string"==typeof a.message)?a.message:"An unexpected error occurred",e({__mozWebExtensionPolyfillReject__:!0,message:b})}).catch(a=>{console.error("Failed to send onMessage rejected reply",a)})};return j?k(g):k(i),!0}:a),n=({reject:b,resolve:c},d)=>{a.runtime.lastError?a.runtime.lastError.message==="The message port closed before a response was received."?c():b(new Error(a.runtime.lastError.message)):d&&d.__mozWebExtensionPolyfillReject__?b(new Error(d.message)):c(d)},o=(a,b,c,...d)=>{if(d.lengthb.maxArgs)throw new Error(`Expected at most ${b.maxArgs} ${f(b.maxArgs)} for ${a}(), got ${d.length}`);return new Promise((a,b)=>{const e=n.bind(null,{resolve:a,reject:b});d.push(e),c.sendMessage(...d)})},p={devtools:{network:{onRequestFinished:k(l)}},runtime:{onMessage:k(m),onMessageExternal:k(m),sendMessage:o.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:o.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},q={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return b.privacy={network:{"*":q},services:{"*":q},websites:{"*":q}},j(a,p,b)})(chrome)}else a.exports=globalThis.browser}); -//# sourceMappingURL=browser-polyfill.min.js.map - -// webextension-polyfill v.0.10.0 (https://github.com/mozilla/webextension-polyfill) - -/* 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/. */ \ No newline at end of file diff --git a/js/contentWorker.js b/js/contentWorker.js index 1e29536..9879996 100644 --- a/js/contentWorker.js +++ b/js/contentWorker.js @@ -1,46 +1,57 @@ -console.log("d3coder: Loaded contentWorker.js"); - /** - * @version 5.0.0 + * @version 2.0.5 + * @author Izzy Kulbe + * @copyright (c) 2010 - 2018 Izzy Kulbe */ D3content = { - createDiv: function (title, text) { - let hr = document.createElement('hr'); - let infoDiv; - let infoText; - let infoHeading; - let resizeHandle; - let heading; - let closeElem; - let startY; - let startHeight; - - if (!document.getElementById('D3-inject')) { - infoDiv = document.createElement('div'); - infoDiv.id = 'D3-inject'; + createDiv: function(title, text) + { + text = D3content.base64_decode(text); + var hr = document.createElement('hr'), + infoDiv, + infoText, + infoHeading, + infoClipboardCopy, + backUrl, + resizeHandle, + heading, + closeElem, + centerBottomResize, + startX, + startY, + startWidth, + startHeight; + + if(!document.getElementById('D3-inject')) { + infoDiv = document.createElement('div'); + infoDiv.id = 'D3-inject'; infoDiv.className = 'content'; - resizeHandle = document.createElement('div'); - resizeHandle.id = 'D3-inject_handle'; + backUrl = chrome.extension.getURL("images/grip.png"), + + resizeHandle = document.createElement('div'); + resizeHandle.id = 'D3-inject_handle'; + resizeHandle.className = 'handle vertical'; + resizeHandle.style.backgroundColor = '#333'; + resizeHandle.style.backgroundImage = 'url(\'' + backUrl + '\')'; + resizeHandle.style.backgroundRepeat = ' no-repeat;'; - heading = document.createElement('h1'); - heading.id = 'D3-inject-heading'; + heading = document.createElement('h1'); + heading.id = 'D3-inject-heading'; heading.innerText = 'd3coder Output:'; - closeElem = document.createElement('a'); - closeElem.id = 'D3-inject-close'; + closeElem = document.createElement('a'); + closeElem.id = 'D3-inject-close'; closeElem.innerText = 'CLOSE [X]'; + document.body.appendChild(resizeHandle); document.body.appendChild(infoDiv); - document.getElementById('D3-inject').appendChild(resizeHandle); document.getElementById('D3-inject').appendChild(closeElem); document.getElementById('D3-inject').appendChild(heading); document.getElementById('D3-inject').appendChild(hr); - document.body.style.marginBottom = document.defaultView.getComputedStyle(document.getElementById('D3-inject')).height; - - document.getElementById('D3-inject-close').addEventListener('click', function () { - document.getElementById('D3-inject_handle').parentNode.removeChild(document.getElementById('D3-inject_handle')); + document.getElementById('D3-inject-close').addEventListener('click', function(){ + document.getElementById('D3-inject_handle').parentNode.removeChild(document.getElementById('D3-inject_handle')); document.getElementById('D3-inject').parentNode.removeChild(document.getElementById('D3-inject')); }); @@ -48,9 +59,7 @@ D3content = { function initDrag(e) { var oldSelectStart = document.body.onselectstart; - document.body.onselectstart = function () { - return false; - }; + document.body.onselectstart = function() {return false;}; function doDrag(e) { var y = startHeight + (startY - e.clientY); @@ -58,23 +67,24 @@ D3content = { return; } - document.getElementById('D3-inject').style.height = y + 'px'; - document.getElementById('D3-inject_handle').style.bottom = y + 'px'; - document.body.style.marginBottom = y + 'px'; + document.getElementById('D3-inject').style.height = + y + 'px'; + document.getElementById('D3-inject_handle').style.bottom = + y + 'px'; } function stopDrag(e) { document.documentElement.removeEventListener('mousemove', doDrag, false); document.documentElement.removeEventListener('mouseup', stopDrag, false); - document.body.onselectstart = oldSelectStart; + document.body.onselectstart=oldSelectStart; } startY = e.clientY; startHeight = parseInt( - document.defaultView.getComputedStyle( - document.getElementById('D3-inject') - ).height, - 10); + document.defaultView.getComputedStyle( + document.getElementById('D3-inject') + ).height, + 10); document.documentElement.addEventListener('mousemove', doDrag, false); document.documentElement.addEventListener('mouseup', stopDrag, false); @@ -83,25 +93,55 @@ D3content = { infoDiv = document.getElementById('D3-inject'); } - infoHeading = document.createElement('h2'); + infoHeading = document.createElement('h3'); infoHeading.className = 'D3-inject-heading'; infoHeading.innerText = title; - infoText = document.createElement('pre'); + infoText = document.createElement('pre'); infoText.className = 'D3-inject-text'; infoText.innerText = text; - hr = document.createElement('hr'); + infoClipboardCopy = document.createElement('a'); + infoClipboardCopy.href = 'javascript:void'; + infoClipboardCopy.innerText = ' '; + infoClipboardCopy.style.width = 20; + infoClipboardCopy.style.height = 20; + infoClipboardCopy.style.backgroundImage = 'url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5Ojf/2wBDAQoKCg0MDRoPDxo3JR8lNzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzf/wAARCAAUABQDASIAAhEBAxEB/8QAGAABAAMBAAAAAAAAAAAAAAAAAAQFBgf/xAAmEAABAwQCAQMFAAAAAAAAAAABAgMEAAUGERIhYRMiMQcjY5Gz/8QAFQEBAQAAAAAAAAAAAAAAAAAABAP/xAAcEQACAQUBAAAAAAAAAAAAAAAAAQIDERIx0SL/2gAMAwEAAhEDEQA/AOnZVerjbp1rg2lmOt+cp3an0qUEpQkKOgkgk6J/XmqGdkWR2aG5NdQy+y2pBeS/FcbI2dew70OyOjvXfZq1ydfHNsS8ql/zFQ/qOtQw24FSSPez8j8go8m8Zu+uIvFK8FbfTcUpSkEDPZNjMa9ORpD0yfHejKV6TkZ7gU8hpWjo/OhVCnBIkz7Uy83x9kkcmnZnJKu99jj4pSi1EsxNN+TeNN+kgJ5rX5WdmlKUoMf/2Q==)'; + infoClipboardCopy.style.position = 'absolute'; + infoClipboardCopy.style.top = 0; + infoClipboardCopy.style.right = 0; + infoClipboardCopy.title = 'Copy last conversion to clipboard'; + infoClipboardCopy.id = 'D3-clipboard-button'; + hr = document.createElement('hr'); + infoDiv.appendChild(infoHeading); + infoDiv.appendChild(infoClipboardCopy); infoDiv.appendChild(infoText); infoDiv.appendChild(hr); + + document.getElementById('D3-clipboard-button').addEventListener('click', function(){ + chrome.extension.sendRequest({command: "doCopy"}, function(response) { + console.log(response); + }); + + /* + var bg = chrome.extension.getBackgroundPage(); + var clipboard = bg.document.getElementById("clipboard"); + clipboard.style.display = "block"; + clipboard.value = text; + clipboard.select(); + bg.document.execCommand("Copy"); + clipboard.style.display = "none"; + */ + }); }, - replaceText: function (text) { - console.log("replaceText", text); + replaceText: function(text) + { var selection, range; + text = D3content.base64_decode(text); if (window.getSelection) { selection = window.getSelection(); if (selection.rangeCount) { @@ -113,5 +153,70 @@ D3content = { range = document.selection.createRange(); range.text = text; } - } -}; \ No newline at end of file + }, + + logConsole: function(text) + { + console.log(D3content.base64_decode(text)); + }, + base64_decode: function (data) { + var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, ac = 0, dec = "", tmp_arr = []; + + if (!data) { + return data; + } + + data += ''; + + do { // unpack four hexets into three octets using index points in b64 + h1 = b64.indexOf(data.charAt(i++)); + h2 = b64.indexOf(data.charAt(i++)); + h3 = b64.indexOf(data.charAt(i++)); + h4 = b64.indexOf(data.charAt(i++)); + + bits = h1<<18 | h2<<12 | h3<<6 | h4; + + o1 = bits>>16 & 0xff; + o2 = bits>>8 & 0xff; + o3 = bits & 0xff; + + if (h3 == 64) { + tmp_arr[ac++] = String.fromCharCode(o1); + } else if (h4 == 64) { + tmp_arr[ac++] = String.fromCharCode(o1, o2); + } else { + tmp_arr[ac++] = String.fromCharCode(o1, o2, o3); + } + } while (i < data.length); + + dec = tmp_arr.join(''); + dec = D3content.utf8_decode(dec); + + return dec; + }, + utf8_decode: function ( str_data ) { + var tmp_arr = [], i = 0, ac = 0, c1 = 0, c2 = 0, c3 = 0; + + str_data += ''; + + while ( i < str_data.length ) { + c1 = str_data.charCodeAt(i); + if (c1 < 128) { + tmp_arr[ac++] = String.fromCharCode(c1); + i++; + } else if ((c1 > 191) && (c1 < 224)) { + c2 = str_data.charCodeAt(i+1); + tmp_arr[ac++] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63)); + i += 2; + } else { + c2 = str_data.charCodeAt(i+1); + c3 = str_data.charCodeAt(i+2); + tmp_arr[ac++] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); + i += 3; + } + } + + return tmp_arr.join(''); + } +}; diff --git a/js/menu.js b/js/menu.js new file mode 100644 index 0000000..065560e --- /dev/null +++ b/js/menu.js @@ -0,0 +1,235 @@ +/** + * @version 2.0.5 + * @author Izzy Kulbe + * @copyright (c) 2010 - 2018 Izzy Kulbe + */ + +var D3menu = +{ + /** + * Version number + * + * @var String + */ + version: "2.0.5", + /** + * list all message types so we can use this while saving + * @var Array + */ + options: Array("message_type1", "message_type2", "message_type3", "message_type4", "message_type5"), + /** + * list all functions so we can use this while saving + * @var Array + */ + checkboxes: Array("functions_rot13", + "functions_timestamp", + "functions_crc32", + "functions_bin2hex", + "functions_bin2txt", + "functions_html_entity_decode", + "functions_htmlentities", + "functions_htmlspecialchars", + "functions_htmlspecialchars_decode", + "functions_uri_encode", + "functions_uri_decode", + "functions_md5", + "functions_sha1", + "functions_quoted_printable_decode", + "functions_quoted_printable_encode", + "functions_escapeshellarg", + "functions_base64_encode", + "functions_base64_decode", + "functions_unserialize", + "functions_leet_decode", + "functions_leet_encode", + "functions_reverse"), + + tabs: [ + 'message', + 'context-menu', + 'misc', + 'credits' + ], + + + /** + * initialization to collect startup errors + */ + init: function() { + try { + D3menu.checkInstall(); + D3menu.restore_options(); + } catch(e) { + alert("An error accured:\n" + e + "\n\n Feel free to report errors to "+ + "github@unikorn.me so I can fix them."); + } + }, + + checkInstall: function() { + if(!localStorage.getItem('D3installed'+this.version) || localStorage.getItem('D3installed'+this.version) != 'true') { + if(!localStorage.getItem("message_type")) + localStorage.setItem("message_type", "alert"); + if(!localStorage.getItem("message_type1")) + localStorage.setItem("message_type1", "1"); + if(!localStorage.getItem("message_type2")) + localStorage.setItem("message_type2", "0"); + if(!localStorage.getItem("message_type3")) + localStorage.setItem("message_type3", "0"); + if(!localStorage.getItem("message_type4")) + localStorage.setItem("message_type4", "0"); + if(!localStorage.getItem("message_type5")) + localStorage.setItem("message_type5", "0"); + + if(!localStorage.getItem("message_automatic_clipboardcopy")) + localStorage.setItem("message_automatic_clipboardcopy", "0"); + + for (el in D3menu.checkboxes) { + if(D3menu.checkboxes.hasOwnProperty(el)) { + if(localStorage.getItem(el) != "0" && localStorage.getItem(el) != "1") { + localStorage.setItem(el, "1"); + } + } + } + + localStorage.setItem('D3installed'+this.version, 'true'); + if(localStorage.getItem('D3lastversion')) { + localStorage.removeItem('D3installed'+localStorage.getItem('lastversion')); + } + localStorage.setItem('D3lastversion',this.version); + + } + }, + + /** + * Save options to localStorage + */ + save_options: function(alertText) { + console.log("Called save_options"); + if(alertText == undefined) { + alert = true; + } + var value = false; + for (option in D3menu.options) { + if(D3menu.options.hasOwnProperty(option)) { + if(document.getElementById(D3menu.options[option]) && document.getElementById(D3menu.options[option]).checked == true) { + value = document.getElementById(D3menu.options[option]).value; + } + } + } + + localStorage.setItem("message_type", value ? value : "notifications"); + + if(document.getElementById("message_automatic_clipboardcopy").checked == true) { + localStorage.setItem("message_automatic_clipboardcopy", 1); + } else { + localStorage.setItem("message_automatic_clipboardcopy", 0); + } + + console.log('Updating functions'); + for (option in D3menu.checkboxes) { + if (D3menu.checkboxes.hasOwnProperty(option)) { + var elem = document.getElementById(D3menu.checkboxes[option]); + var value = "0"; + if(elem.checked) { + value = elem.checked ? "1" : "0"; + } else { + value = "0"; + } + + localStorage.setItem(D3menu.checkboxes[option], value); + } + } + }, + + /** + * Restore options from localStorage + */ + restore_options: function() { + var type = localStorage.getItem("message_type") ? + localStorage.getItem("message_type") : + "notifications"; + var somethingChecked = false; + + if(localStorage.getItem("message_automatic_clipboardcopy") == 1) { + document.getElementById("message_automatic_clipboardcopy").checked = true; + } else { + document.getElementById("message_automatic_clipboardcopy").checked = false; + } + + for (option in D3menu.options) { + if (D3menu.options.hasOwnProperty(option)) { + var optionValue = document.getElementById(D3menu.options[option]).value; + if(optionValue==type) { + document.getElementById(D3menu.options[option]).checked = true; + somethingChecked = true; + } + } + } + + if(somethingChecked == false) { + document.getElementById('message_type2').checked = true; + } + + for (option in D3menu.checkboxes) { + if (D3menu.checkboxes.hasOwnProperty(option)) { + var value = localStorage.getItem(D3menu.checkboxes[option]) == 1 ? true : false; + var elem = document.getElementById(D3menu.checkboxes[option]).checked = value; + } + } + }, + + /** + * menu tab functions + */ + showTab: function(name) { + var deactivate = function(id) { + document.getElementById(id).className = ''; + document.getElementById(id+'-tab').className = ''; + }, + activate = function(id) { + document.getElementById(id).className = 'active'; + document.getElementById(id+'-tab').className = 'active'; + }; + + for (n in D3menu.tabs) { + if (D3menu.tabs.hasOwnProperty(n)) { + if (D3menu.tabs[n] !== name) { + deactivate(D3menu.tabs[n]); + } else { + activate(D3menu.tabs[n]) + } + } + } + + document.location.hash = name; + } +}; + +D3menu.init(); + +var inputs = document.querySelectorAll('input'); +for (el in inputs) { + if (inputs.hasOwnProperty(el) && inputs[el] && el != 'length') { + inputs[el].addEventListener('change', function() { + D3menu.save_options(false); + }); + } +} + +var listenerForTab = function(n) { + document.getElementById(n + '-tab').addEventListener('click', function () { + D3menu.showTab(n); + }); +} + +for (tab in D3menu.tabs) { + if (D3menu.tabs.hasOwnProperty(tab)) { + listenerForTab(D3menu.tabs[tab]); + } +} + +if (document.location.hash) { + D3menu.showTab(document.location.hash.substr(1)); +} else { + D3menu.showTab('message') +} diff --git a/js/menu_ui.js b/js/menu_ui.js deleted file mode 100644 index a540ea6..0000000 --- a/js/menu_ui.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Localize the settings page - * curtesy of https://stackoverflow.com/a/25612056 - */ -let localizeHtmlPage = function(){ - let elems = document.getElementsByTagName('html'); - for (let j = 0; j < elems.length; j++) { - let obj = elems[j]; - - let valStrH = obj.innerHTML.toString(); - let valNewH = valStrH.replace(/__MSG_(\w+)__/g, function(match, v1) { - return v1 ? browser.i18n.getMessage(v1) : ""; - }); - - if(valNewH != valStrH) - { - obj.innerHTML = valNewH; - } - } -}(); - -var D3menu = { - /** - * Version number - * - * @var String - */ - version: "5.1.0", - - /** - * list all functions. Needed to upgrade from older versions - * @var Array - */ - checkboxes: Array("functions_rot13", - "functions_timestamp", - "functions_crc32", - "functions_bin2hex", - "functions_bin2txt", - "functions_txt2hex", - "functions_hex2txt", - "functions_html_entity_decode", - "functions_htmlentities", - "functions_htmlspecialchars", - "functions_htmlspecialchars_decode", - "functions_uri_encode", - "functions_uri_decode", - "functions_md5", - "functions_sha1", - "functions_quoted_printable_decode", - "functions_quoted_printable_encode", - "functions_escapeshellarg", - "functions_base64_encode", - "functions_base64_decode", - "functions_unserialize", - "functions_leet_decode", - "functions_leet_encode", - "functions_reverse") -} - -function upgrade() { - var clipboardSave, checkboxes = {}, version = D3menu.version; - - browser.storage.sync.get({version: false}).then((items) => { - if (items.version) { - console.log("Upgrade: D3coder version " + version + " found."); - return; - } - - console.log("Upgrade: New install or upgrade, checking local storage"); - }); -} - -function save_options() { - var checkboxes = {}, - messageType = document.getElementById('message_type').value, - clipboardSave = document.getElementById("message_automatic_clipboardcopy").checked == true ? true : false; - - for (option of document.querySelectorAll("input[id^='functions_'")) { - checkboxes[option.id] = document.getElementById(option.id).checked == true ? true : false; - } - - browser.storage.sync.set( - { - checkboxes: checkboxes, - messageType: messageType, - clipboardSave: clipboardSave, - version: D3menu.version - }).then(() => { - console.log("Save: Options saved to storage"); - var status = document.getElementById('status'); - status.textContent = browser.i18n.getMessage('options_saved'); - status.style.display = "block"; - status.style.opacity = 1; - setTimeout(function() { - status.style.opacity = 0; - status.style.display = "block"; - }, 2000); - }); - } - -// Restores select box and checkbox state using the preferences -// stored in browser.storage / chrome.storage. -function restore_options() { - console.log("Restore: Starting restore"); - browser.storage.sync.get({ - checkboxes: [], - messageType: 'message', - clipboardSave: false, - version: 0 - }).then((items) => { - console.log("Restore: Loaded these items:"); - console.log("Restore: Checkboxes", items.checkboxes); - console.log("Restore: Message Type", items.messageType); - console.log("Restore: Clipboard save", items.clipboardSave); - console.log("Restore: Version", items.version); - - if (!items.version) { - console.log("No version found during startup, running upgrade"); - upgrade(); - } else { - document.getElementById("message_automatic_clipboardcopy").checked = items.clipboardSave; - document.getElementById("message_type").value = items.messageType; - - for (checkbox in items.checkboxes) { - document.getElementById(checkbox).checked = items.checkboxes[checkbox]; - } - } - }); -} - -document.addEventListener('DOMContentLoaded', restore_options); - -for (tag of document.querySelectorAll("input, select")) { - tag.addEventListener('change', save_options); -} \ No newline at end of file diff --git a/js/serviceworker.js b/js/serviceworker.js deleted file mode 100644 index 7ac9898..0000000 --- a/js/serviceworker.js +++ /dev/null @@ -1,65 +0,0 @@ -importScripts("/js/D3lib.js"); -console.log("Successfully loaded D3 lib"); - -importScripts("/js/D3.js"); -console.log("Successfully loaded D3 main"); - -importScripts("/js/browser-polyfill.min.js"); -console.log("Successfully loaded browser-polyfill"); - -browser.runtime.onInstalled.addListener(() => { - D3.checkInstall(D3.createContextMenu()); -}); - -browser.storage.onChanged.addListener((changes, namespace) => { - D3.createContextMenu(); -}); - -browser.runtime.onMessage.addListener( - (request, sender, sendResponse) => { - console.log([request, sender, sendResponse]); - - if (request.command == "doCopy") { - var responseStatus = D3.copyToClipboard(D3.lastMessage); - sendResponse({ - status: [browser.i18n.getMessage("message_copied_to_clipboard"), responseStatus] - }); - } else if (request.command == "setContextMenuTitle") { - browser.contextMenus.update(contextMenuId, { - title: request.message - }); - } else { - sendResponse({}); - } - }); - -browser.contextMenus.onClicked.addListener( - (info, tab) => { - menuId = info.menuItemId; - - // Get just the name and a boolean for editable text - let fn_normalized = menuId.replace(/d3coder-(selection-|)/, ""); - - let fn_name = Object.entries(D3.function_list).find(fn => fn[1].includes(fn_normalized))[1][0]; - - let fn_selection = menuId.includes("-selection-"); - - // Menu item for the extension's settings page - if (menuId === 'd3coder-settings') { - browser.runtime.openOptionsPage(); - // Menu for selected/editable text - } else if (fn_selection === true && fn_normalized in D3lib) { - browser.storage.sync.get(null).then((items) => { - D3.createPopup( - D3.translate(`${fn_name}`), - D3lib[fn_normalized](info.selectionText), - items["messageType"], - items["clipboardSave"], - tab.id - ); - }); - } else { - console.error("Unknown function in onClicked: " + menuId) - } - } -); \ No newline at end of file diff --git a/manifest.json b/manifest.json index dd3d5fa..5e5e96b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,25 +1,32 @@ { - "manifest_version": 3, - "name": "__MSG_extName__", - "version": "5.1.1", - "description": "__MSG_extDescription__", - "options_ui": { - "page": "html/menu_ui.html", - "open_in_tab": false - }, + "manifest_version": 2, + "name": "d3coder", + "version": "2.0.6", + "description": "Encoding/Decoding Plugin for various types of encoding like base64, rot13 or unix timestamp conversion", + "options_page": "html/menu.html", "permissions": [ - "contextMenus", - "clipboardWrite", - "storage", - "scripting", - "activeTab" - ], + "contextMenus", + "notifications", + "tabs", + "*://*/*", + "clipboardWrite", + "clipboardRead" + ], "background": { - "service_worker": "js/serviceworker.js" + "page": "html/background.html" }, "icons": { - "16": "images/icon16.png", - "48": "images/icon48.png", - "128": "images/icon128.png" }, - "default_locale": "en" + "16": "images/icon16.png", + "48": "images/icon48.png", + "128": "images/icon128.png" }, + "content_scripts": [ + { + "matches": ["*://*/*"], + "css": ["styles/content.css"], + "js": ["js/contentWorker.js"], + "all_frames": true + }], + "web_accessible_resources": [ + "images/grip.png" + ] } diff --git a/styles/content.css b/styles/content.css index d36e409..7989c78 100644 --- a/styles/content.css +++ b/styles/content.css @@ -1,136 +1,61 @@ -@media (prefers-color-scheme: dark) { - - #D3-inject, - #D3-inject-heading, - #D3-inject-close, - .D3-inject-heading { - color: #DDD !important; - } - - #D3-inject { - background: #202124; - } - - .D3-inject-text { - background-color: #444; - border: 1px solid #999; - color: #CCC; - } - - #D3-inject > hr { - border-bottom: 1px solid #999; - } - - #D3-inject_handle { - background: #333; - } - -} - -@media (prefers-color-scheme: light) { - - #D3-inject, - #D3-inject-heading, - #D3-inject-close, - .D3-inject-heading { - color: #010409 !important; - } - - #D3-inject { - background: #f7f7f7; - } - - .D3-inject-text { - background-color: #e7e7e7; - border: 1px solid #b9d0e6; - } - - #D3-inject > hr { - border-bottom: 1px solid #444; - } - - #D3-inject_handle { - background: #575757; - } -} - -#D3-inject { - box-sizing: border-box; - z-index: 1000; - position: fixed; - width: 100%; - height: 200px; - bottom: 0; - left: 0; - overflow: auto; - box-shadow: 0px 0px 30px #000; - text-align: left !important; -} - -#D3-inject > hr { - margin: 0.3rem; -} - -#D3-inject-close { - z-index: 1100; - float: right; - margin-right: 30px; - cursor: pointer; +/** + * @version 1.0 + * @author Izzy Kulbe + * @copyright (c) 2010 - 2018 Izzy Kulbe + */ +#D3-inject +{ + z-index: 1000; + position: fixed; + width: 100%; + height: 200px; + bottom: 0; + left: 0; + background: lightgrey; + border-top: 1px solid grey; + overflow: auto; + -webkit-box-shadow: 0px 0px 30px #000; + text-align: left !important; +} + +#D3-inject-close +{ + z-index: 1100; + float: right; + margin-right: 30px; + cursor: pointer; +} + +#D3-inject-heading +{ + font-size: 15px; +} + +#D3-inject, #D3-inject-heading, #D3-inject-close, .D3-inject-heading +{ + color: black !important; } -#D3-inject-heading { - font-size: 1rem; -} - -.D3-inject-heading { - font-size: 1rem; -} - -#D3-inject, -#D3-inject-heading, -#D3-inject-close, -.D3-inject-heading, .D3-inject-text { - margin: 0; - padding: .5rem; + word-wrap: break-word; } -.D3-inject-text { - white-space: break-spaces; - border-radius: 0.2rem; - margin: .3rem .5rem .5rem; - overflow: auto; - width: fit-content; - max-width: calc(100% - 3rem); - margin-right: 0; +div.handle { + background: #333 ; + z-index: 2; + position: absolute; } -#D3-inject_handle { - bottom: 200px; - z-index: 1002; - position: fixed; +div.handle.vertical { width: 100%; height: 9px; cursor: row-resize; z-index: 1; background-position: center -19px; - left: 0; + left: 0; } - -#D3-inject ::-webkit-scrollbar { - width: .4rem; - height: .4rem; - border-radius: 0.4rem; -} - -#D3-inject ::-webkit-scrollbar-track { - background: #f1f1f1; -} - -#D3-inject ::-webkit-scrollbar-thumb { - background: #888; +#D3-inject_handle { + bottom: 200px; + z-index: 1002; + position: fixed; } - -#D3-inject ::-webkit-scrollbar-thumb:hover { - background: #555; -} \ No newline at end of file diff --git a/styles/menu.css b/styles/menu.css index ed0b2e3..19bed93 100644 --- a/styles/menu.css +++ b/styles/menu.css @@ -1,104 +1,122 @@ -@media (prefers-color-scheme: dark) { - :root { - --d3-bg: #292a2d; - --d3-fg: #e8e8e8; - --d3-cb-bg: #e8e8e8; - --d3-cb-fg: #292a2d; - --d3-h1: #d0d0d0; - --d3-accent: #8bffd8; - --d3-status-bg: #292929; - --d3-status-fg: #aaffaa; - --d3-status-border: 1px solid #525252; - } -} - -@media (prefers-color-scheme: light) { - :root { - --d3-bg: #fff; - --d3-fg: #292a2d; - --d3-cb-bg: #fff; - --d3-cb-fg: #292a2d; - --d3-h1: #5c6166; - --d3-accent: #15bb84; - --d3-status-bg: #f0f0f0; - --d3-status-fg: #21740c; - --d3-status-border: 1px solid #707070; - } +html, body { + height: 100%; + width: 100%; + padding: 0; + margin: 0; } body { - font-family: Roboto, 'Segoe UI', Tahoma,; - font-weight: inherit; - font-size: inherit; - cursor: inherit; - line-height: inherit; - margin-bottom: 2rem; - background-color: var(--d3-bg); - color: var(--d3-fg); - font-size: 81.25%; + font-size: 75%; + font-family: 'Segoe UI', Ubuntu, Tahoma, Arial, sans-serif; + color: #333; } -a { - text-decoration: none; - color: var(--d3-accent); +h1 { + color: rgb(92, 97, 102); + font-size: 1.5em; + font-weight: normal; + line-height: 1; + margin: 20px; } -blockquote { - border-left: 0.25rem solid var(--d3-accent); - padding-left: 1rem; - margin-left: 2rem; - margin-right: 0; +#optionsFrame { + font-size: 1em; } -h1 { - font-size: 1.5em; - font-weight: normal; - line-height: 1; - margin: 0.6rem 0.4rem; - color: var(--d3-h1); -} - -select { - padding: 0.5rem 1rem; - margin: 0; - width: 100%; - background-color: var(--d3-cb-bg); - color: var(--d3-cb-fg); -} - -#status { - position: fixed; - z-index: 1000; - left: auto; - bottom: 15px; - width: 90%; - padding: 0.5rem 0 0.7rem 0; - text-align: center; - font-size: 150%; - opacity: 0; - transition-duration: 1000ms; - border: var(--d3-status-border); - background: var(--d3-status-bg); - color: var(--d3-status-fg); -} - -.inputs label, -select { - cursor: pointer; +#optionsFrame h1 { + margin-left: 0; + color: rgb(62, 67, 72); + padding-bottom: 15px; + border-bottom: 1px solid #eee; +} + +#menu li, #options label { + cursor: pointer; +} + +#menubar { + height: 100%; + left: 0; + position: absolute; + width: 155px; +} + +#menubar ul { + padding: 0; + margin: 0; + left: 0; +} + +#menubar li { + color: #999; + list-style-type: none; + -webkit-border-start: 6px solid transparent; + -webkit-padding-start: 18px; + -webkit-transition: all .3s linear; + padding: 6px 0 6px 18px; +} + +#menubar li.active { + color: #464e5a; + -webkit-border-start: 6px solid #464e5a; +} + +#buttons { + padding: 15px; + color: #666; + position: absolute; + bottom: 0; +} + +#optionsFrame { + left: 155px; + right: 0; + bottom: 0; + top: 0; + position: absolute; + overflow: auto; + height: 100%; +} + +#options > div { + left: -200%; + position: absolute; + opacity: 0; + -webkit-margin-start: -20px; + -webkit-transition: margin 150ms, opacity 150ms; + z-index: 1; +} + +#options > div.active { + -webkit-margin-start: 0px; + left: 0; + opacity: 1; + z-index: 2; +} + +.inputs { + margin-top: 15px; + margin-left: 10px; +} + +.inputs > div { + -webkit-transition: all .2s linear; + padding: 3px 0; + color: #666; +} + +.inputs div:hover { + color: #333; +} + +.inputs input { + height: 15px; + width: 15px; } .inputs label { - margin-right: 20px; + margin-top: 2px; margin-left: 6px; position: absolute; } -.inputs label:hover { - transition-duration: 400ms; - color: var(--d3-status-fg); -} - -#options>div>div, -#options>div>p { - padding: 5px 20px 5px 15px; -} \ No newline at end of file