diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 249239a..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -#patreon: # Replace with a single Patreon username -open_collective: TabsAside -#ko_fi: # Replace with a single Ko-fi username -#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -#liberapay: # Replace with a single Liberapay username -#issuehunt: # Replace with a single IssueHunt username -#otechie: # Replace with a single Otechie username -custom: [ "https://buymeacoffee.com/xfox111" ] diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 0510750..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve the extension -title: '' -labels: bug -assignees: '' - ---- - -### Description -A clear and concise description of what the bug is. - -### Reproduction steps -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. - -### Environment -Please provide the following information: - - Operating System: [e.g. Windows 10 Pro 1909 (10.0.18363)] - - Browser: [e.g. Microsoft Edge 83.0.478.56] - - Extension version: [e.g. 1.5] - -### Additional context -Add any other context about the problem here. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index d85c3dd..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: enhancement -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. \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 2904fca..0000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,9 +0,0 @@ -Implements following issues: - -## Changelog -- Item 1 -- Item 2 -- Item 3 - -## PR Checklist -- [ ] Change extension version in the manifest \ No newline at end of file diff --git a/.github/release_description_template.md b/.github/release_description_template.md deleted file mode 100644 index cadcc3e..0000000 --- a/.github/release_description_template.md +++ /dev/null @@ -1,13 +0,0 @@ -## What's new - -## How to install -1. Download attached archive and unpack it -2. Enable Developers mode on your browser extensions page -3. Click "Load unpacked" button and navigate to the extension root folder (contains `manifest.json`) -4. Done! - -*On Firefox you should open manifest file instead of extension's folder - -**Note:** If you delete extension folder it will disappear from your browser - -_Sideloaded extensions don't replace officially installed ones_ \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index f669799..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,70 +0,0 @@ -name: CI - -on: - release: - types: [published] - -jobs: - Firefox: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Build Extension for Firefox - id: web-ext-build - uses: kewisch/action-web-ext@v1 - with: - cmd: build - - - name: 'Sign & publish' - id: web-ext-sign - uses: kewisch/action-web-ext@v1 - with: - cmd: sign - channel: listed - source: ${{ steps.web-ext-build.outputs.target }} - apiKey: ${{ secrets.FIREFOX_API_KEY }} - apiSecret: ${{ secrets.FIREFOX_CLIENT_SECRET }} - - - name: Drop artifacts - uses: actions/upload-artifact@v2 - with: - name: 'Firefox Artefacts' - path: ${{ steps.web-ext-build.outputs.target }} - - Chrome: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Pack extension - uses: TheDoctor0/zip-release@0.4.1 - with: - filename: ./TabsAside.zip - exclusions: '.git/* .vscode/* .github/* *.md' - - - name: Publish to Chrome Webstore - uses: trmcnvn/chrome-addon@v2 - with: - extension: mgmjbodjgijnebfgohlnjkegdpbdjgin - zip: ./TabsAside.zip - client-id: ${{ secrets.CHROME_CLIENT_ID }} - client-secret: ${{ secrets.CHROME_CLIENT_SECRET }} - refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }} - - - name: Upload artifact - uses: xresloader/upload-to-github-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - file: ./TabsAside.zip - tags: true - draft: false - - - name: Drop artifacts - uses: actions/upload-artifact@v2 - with: - name: 'Chrome Artifacts' - path: ./TabsAside.zip \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ca86803..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -\.vscode \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 3d73cd3..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": "0.2.0", - "configurations": - [ - { - "name": "Debug", - "type": "firefox", - "request": "launch", - "reAttach": true, - "addonPath": "${workspaceFolder}" - } - ] -} \ No newline at end of file diff --git a/.whitesource b/.whitesource deleted file mode 100644 index 55b922e..0000000 --- a/.whitesource +++ /dev/null @@ -1,12 +0,0 @@ -{ - "scanSettings": { - "baseBranches": [] - }, - "checkRunSettings": { - "vulnerableCheckRunConclusionLevel": "failure", - "displayMode": "diff" - }, - "issueSettings": { - "minSeverityLevel": "LOW" - } -} \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 62ba1d4..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 opensource@xfox111.net. 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 - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 5684bc5..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,214 +0,0 @@ -# Contribution Guidelines -Welcome, and thank you for your interest in contributing to my project! - -There are many ways in which you can contribute, beyond writing code. The goal of this document is to provide a high-level overview of how you can get involved. - -## Table of Contents -- [Contribution Guidelines](#contribution-guidelines) - - [Table of Contents](#table-of-contents) - - [Asking Questions](#asking-questions) - - [Providing Feedback](#providing-feedback) - - [Reporting Issues](#reporting-issues) - - [Look For an Existing Issue](#look-for-an-existing-issue) - - [Writing Good Bug Reports and Feature Requests](#writing-good-bug-reports-and-feature-requests) - - [Final Checklist](#final-checklist) - - [Follow Your Issue](#follow-your-issue) - - [Contributing to the codebase](#contributing-to-the-codebase) - - [Deploy test version on your browser](#deploy-test-version-on-your-browser) - - [Development workflow](#development-workflow) - - [Release](#release) - - [Coding guidelines](#coding-guidelines) - - [Indentation](#indentation) - - [Names](#names) - - [Comments](#comments) - - [Strings](#strings) - - [Style](#style) - - [Finding an issue to work on](#finding-an-issue-to-work-on) - - [Contributing to translations](#contributing-to-translations) - - [Submitting pull requests](#submitting-pull-requests) - - [Spell check errors](#spell-check-errors) - - [Thank You!](#thank-you) - - [Attribution](#attribution) - -## Asking Questions -Have a question? Rather than opening an issue, please ask me directly on opensource@xfox111.net. - -## Providing Feedback -Your comments and feedback are welcome. -You can leave your feedbak on feedback@xfox111.net or do it on [Microsoft Edge Add-ons Webstore](https://microsoftedge.microsoft.com/addons/detail/tabs-aside/kmnblllmalkiapkfknnlpobmjjdnlhnd), [Chrome Extensions Webstore](https://chrome.google.com/webstore/detail/tabs-aside/mgmjbodjgijnebfgohlnjkegdpbdjgin) or [Mozilla Add-ons Webstore](https://addons.mozilla.org/firefox/addon/ms-edge-tabs-aside/) - -## Reporting Issues -Have you identified a reproducible problem in the extension? Have a feature request? I'd like to hear it! Here's how you can make reporting your issue as effective as possible. - -### Look For an Existing Issue -Before you create a new issue, please do a search in [open issues](https://github.com/xfox111/TabsAsideExtension/issues) to see if the issue or feature request has already been filed. - -Be sure to scan through the [feature requests](https://github.com/XFox111/TabsAsideExtension/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement). - -If you find your issue already exists, make relevant comments and add your [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments). Use a reaction in place of a "+1" comment: - -- 👍 - upvote -- 👎 - downvote - -If you cannot find an existing issue that describes your bug or feature, create a new issue using the guidelines below. - -### Writing Good Bug Reports and Feature Requests -File a single issue per problem and feature request. Do not enumerate multiple bugs or feature requests in the same issue. - -Do not add your issue as a comment to an existing issue unless they are the same ones. Many issues look similar, but have different causes. - -The more information you can provide, the more likely someone will be successful at reproducing the issue and finding a solution. - -Please include the following with each issue: -- Current version of the extension -- Your current browser and OS name -- Reproducible steps (1... 2... 3...) that cause the issue -- What you expected to see, versus what you actually saw -- Images, animations, or a link to a video showing the issue occurring - -### Final Checklist -Please remember to do the following: - -- [ ] Search the issue repository to ensure your report is a new issue -- [ ] Separate issues reports -- [ ] Include as much information as you can to your report - -Don't feel bad if the developers can't reproduce the issue right away. They will simply ask for more information! - -### Follow Your Issue -Once your report is submitted, be sure to stay in touch with the devs in case they need more help from you. - -## Contributing to the codebase -If you are interested in writing code to fix issues or implement new awesome features you can follow these guidelines to get a better result - -### Deploy test version on your browser -1. Clone repository to local storage using [Git](https://guides.github.com/introduction/git-handbook/) - - ```bash - git clone https://github.com/xfox111/TabsAsideExtension.git - ``` -2. Enable Developers mode on your browser extensions page -3. Click "Load unpacked" button and navigate to the extension root folder (contains `manifest.json`) -4. Done! - -Next time you make any changes to the codebase, reload the extension by toggling it off and on or by pressing "Reload" button on the extensions list page - -> **Note:** You can also check [this article](https://xfox111.net/46hsgv) to get more information about debugging web extensions - -### Development workflow -This section represents how contributors should interact with codebase implementing features and fixing bugs - -1. Getting assigned to the issue -2. Creating a repository fork -3. Making changes to the codebase -4. Creating a pull request to `master` -5. Reviewing & completing PR -6. Done - -#### Release -The next stage is the release. Release performs on every push to master (which makes functional changes to the source code). Release performs manually by @XFox111 into: Chrome webstore, Edge webstore and GitHub releases - -### Coding guidelines -#### Indentation -We use tabs, not spaces. - -#### Names -The project naming rules inherit [.NET Naming Guidelines](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/naming-guidelines). Nevertheless there'is some distinction with the guidelines as well as additions to the one: - -- Use `camelCase` for variables instead of `CamelCase` stated in [Capitalization Conventions](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions#capitalization-rules-for-identifiers) -- Use `snake_case` for file names - -#### Comments -Leave as more comments as you can. Remember: the more detailed documentation your code has the less programmers will curse you in the future - -#### Strings -Use "double quotes" wherever it's possible - -#### Style -- Prefer to use lambda functions -- Put curly braces on new lines - - Wrong: - - ```javascript - if (condition) { - ... - } - ``` - - - Correct: - - ```javascript - if (condition) - { - ... - } - ``` -- Put spaces between operators and before braces in methods declarations, conditionals and loops - - Wrong: - - `y=k*x+b` - - `function FunctionName()` - - Correct: - - `y = k * x + b` - - `function FunctionName ()` -- Use ternary conditionals wherever it's possible - - Wrong: - ```javascript - var s; - if (condition) - s = "Life"; - else - s = "Death"; - ``` - - Correct: - - ```javascript - var s = condition ? "Life" : "Death"; - ``` -- Do not surround loop and conditional bodies with curly braces if they can be avoided - - Wrong: - ```javascript - if (condition) - { - console.log("Hello, World!"); - } - else - { - return; - } - ``` - - Correct - - ```javascript - if (condition) - console.log("Hello, World!"); - else - return; - ``` - -### Finding an issue to work on -Check out the [full issues list](https://github.com/XFox111/TabsAsideExtension/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue) for a list of all potential areas for contributions. **Note** that just because an issue exists in the repository does not mean we will accept a contribution. There are several reasons we may not accept a pull request like: - -- Performance - One of Tabs Aside core values is to deliver a lightweight extension, that means it should perform well in both real and test environments. -- User experience - Since we want to deliver a lightweight extension, the UX should feel lightweight as well and not be cluttered. Most changes to the UI should go through the issue owner and project owner (@XFox111). -- Architectural - Project owner needs to agree with any architectural impact a change may make. Such things must be discussed with and agreed upon by the project owner. - -To improve the chances to get a pull request merged you should select an issue that is labelled with the `help-wanted` or `bug` labels. If the issue you want to work on is not labelled with `help-wanted` or `bug`, you can start a conversation with the project owner asking whether an external contribution will be considered. - -To avoid multiple pull requests resolving the same issue, let others know you are working on it by saying so in a comment. - -### Contributing to translations -If you want to help us to translate this extension into other languages, please read [this article](https://developer.chrome.com/extensions/i18n) - -**Note** that whatever you want to contribute to the codebase, you should do it only after you got assigned on an issue - -### Submitting pull requests -To enable us to quickly review and accept your pull requests, always create one pull request per issue and [link the issue in the pull request](https://github.com/blog/957-introducing-issue-mentions). Never merge multiple requests in one unless they have the same root cause. Be sure to follow our [Coding Guidelines](#coding-guidelines) and keep code changes as small as possible. Avoid pure formatting changes to code that has not been modified otherwise. Pull requests should contain tests whenever possible. Fill pull request content according to its template. Deviations from template are not recommended - -#### Spell check errors -Pull requests that fix typos are welcomed but please make sure it doesn't touch multiple feature areas, otherwise it will be difficult to review. Pull requests only fixing spell check errors in source code are not recommended. - -## Thank You! -Your contributions to open source, large or small, make great projects like this possible. Thank you for taking the time to contribute. - -## Attribution -These Contribution Guidelines are adapted from the [Contributing to VS Code](https://github.com/microsoft/vscode/blob/master/CONTRIBUTING.md) diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 8c0785d..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Michael "XFox" Gordeev - -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 the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/PRIVACY b/PRIVACY deleted file mode 100644 index cb20fee..0000000 --- a/PRIVACY +++ /dev/null @@ -1,7 +0,0 @@ -Tabs Aside Extension Privacy Policy -1. Developers of the extension don't affiliate with Google LLC. or Microsoft Corporation in any way -2. This extension doesn't transfer any personal data (data which may be used to track your location or reveal your identity) to any remote or local server -3. This extension doesn't share any personal data with third parties -4. This extension stores following personal data: - - Browser tabs which have been saved for later by user via this extension (if user click "Set current tabs aside" button). This includes titles, favicons and web links -5. User can delete all saved personal data by removing this extension from his browser diff --git a/README.md b/README.md deleted file mode 100644 index e615bab..0000000 --- a/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# Tabs aside -[![GitHub release (latest by date)](https://img.shields.io/github/v/release/xfox111/TabsAsideExtension)](https://github.com/xfox111/TabsAsideExtension/releases/latest) -![CI](https://github.com/XFox111/TabsAsideExtension/workflows/CI/badge.svg) -[![Mozilla Add-on](https://img.shields.io/amo/rating/ms-edge-tabs-aside?label=Firefox%20rating)](https://addons.mozilla.org/firefox/addon/ms-edge-tabs-aside/) - -[![Chrome Web Store](https://img.shields.io/chrome-web-store/users/mgmjbodjgijnebfgohlnjkegdpbdjgin?label=Chrome%20Webstore%20downloads)](https://chrome.google.com/webstore/detail/tabs-aside/mgmjbodjgijnebfgohlnjkegdpbdjgin) -[![Mozilla Add-on](https://img.shields.io/amo/users/ms-edge-tabs-aside?label=Firefox%20Webstore%20downloads)](https://addons.mozilla.org/firefox/addon/ms-edge-tabs-aside/) - -[![GitHub issues](https://img.shields.io/github/issues/xfox111/TabsAsideExtension)](https://github.com/xfox111/TabsAsideExtension/issues) -[![GitHub last commit](https://img.shields.io/github/last-commit/xfox111/TabsAsideExtension)](https://github.com/xfox111/TabsAsideExtension/commits/master) -[![GitHub repo size](https://img.shields.io/github/repo-size/xfox111/TabsAsideExtension?label=repo%20size)](https://github.com/xfox111/TabsAsideExtension) -[![MIT License](https://img.shields.io/github/license/xfox111/TabsAsideExtension)](https://opensource.org/licenses/MIT) - -[![Twitter Follow](https://img.shields.io/twitter/follow/xfox111?style=social)](https://twitter.com/xfox111) -[![GitHub followers](https://img.shields.io/github/followers/xfox111?label=Follow%20@xfox111&style=social)](https://github.com/xfox111) -[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-%40xfox111-orange)](https://buymeacoffee.com/xfox111) - -![Tabs aside](https://xfox111.net/y7xk3z) - -If you’re like me, you often find yourself with a bunch of open tabs. You’d like to get those tabs out of the way sometimes, but they’re maybe not worth saving as actual bookmarks. - -In the Edge browser, Microsoft has introduced a new feature called "Tabs aside" (or Tab groups) which lets you set tabs aside in a sort of temporary workspace so that you can call them back up later. - -![Tabs aside demo](https://xfox111.net/knrp7b) - -Unfortunately, in new Chromium-based Microsoft Edge, the devs decided not to implement this must-have-feature. So I've decided to create a browser extension which replicates this awesome feature - -## Features -- Familiar UI inherited from legacy Microsoft Edge with some improvements -- Auto Dark mode -- Now you can restore one tab from collection without removing -- Now you can choose if you want to load restored tabs only when you're navigating onto them -- Set tabs you've selected aside -- Sync your saved tabs between different PCs -- **Now available for Firefox!** - -## Download -- [Google Chrome Webstore](https://chrome.google.com/webstore/detail/tabs-aside/mgmjbodjgijnebfgohlnjkegdpbdjgin) -- [Microsoft Edge Add-ons Webstore](https://microsoftedge.microsoft.com/addons/detail/kmnblllmalkiapkfknnlpobmjjdnlhnd) -- [Firefox Add-ons](https://addons.mozilla.org/firefox/addon/ms-edge-tabs-aside/) -- [GitHub Releases](https://github.com/xfox111/TabsAsideExtension/releases/latest) - -## Project roadmap -You can go to the project's [roadmap kanban board](https://github.com/XFox111/TabsAsideExtension/projects/1) and see what have we planned and watch our progress in realtime - -## Contributing -There are many ways in which you can participate in the project, for example: -- [Submit bugs and feature requests](https://github.com/xfox111/TabsAsideExtension/issues), and help us verify as they are checked in -- Review [source code changes](https://github.com/xfox111/TabsAsideExtension/pulls) -- Review documentation and make pull requests for anything from typos to new content - -If you are interested in fixing issues and contributing directly to the code base, please see the [Contribution Guidelines](https://github.com/XFox111/TabsAsideExtension/blob/master/CONTRIBUTING.md), which covers the following: -- [How to deploy the extension on your browser](https://github.com/XFox111/TabsAsideExtension/blob/master/CONTRIBUTING.md#deploy-test-version-on-your-browser) -- [The development workflow](https://github.com/XFox111/TabsAsideExtension/blob/master/CONTRIBUTING.md#development-workflow), including debugging and running tests -- [Coding guidelines](https://github.com/XFox111/TabsAsideExtension/blob/master/CONTRIBUTING.md#coding-guidelines) -- [Submitting pull requests](https://github.com/XFox111/TabsAsideExtension/blob/master/CONTRIBUTING.md#submitting-pull-requests) -- [Finding an issue to work on](https://github.com/XFox111/TabsAsideExtension/blob/master/CONTRIBUTING.md#finding-an-issue-to-work-on) -- [Contributing to translations](https://github.com/XFox111/TabsAsideExtension/blob/master/CONTRIBUTING.md#contributing-to-translations) - -## Code of Conduct -This project has adopted the Contributor Covenant. For more information see the [Code of Conduct](https://github.com/XFox111/TabsAsideExtension/blob/master/CODE_OF_CONDUCT.md) - -## Copyrights -> ©2021 Michael "XFox" Gordeev - -Font copyrights: Microsoft Corportation ©2021 (Additional ELUA applied) - -Licensed under [MIT License](https://opensource.org/licenses/MIT) \ No newline at end of file diff --git a/TabsAside.html b/TabsAside.html deleted file mode 100644 index 19700f4..0000000 --- a/TabsAside.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - Tabs aside - - - - - - - - - - - -
-
- -
- - - - - diff --git a/_locales/en/messages.json b/_locales/en/messages.json deleted file mode 100644 index 5ddfcda..0000000 --- a/_locales/en/messages.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": - { - "message": "Tabs aside", - "description": "Extension name. Displayed in the manifest and pane header" - }, - "description": - { - "message": "Classic Microsoft Edge \"Tabs Aside\" feature", - "description": "Extension description" - }, - "author": - { - "message": "Michael \"XFox\" Gordeev", - "description": "Author name" - }, - "options": - { - "message": "Options", - "description": "Alternative text for options button in the pane" - }, - "closePanel": - { - "message": "Close", - "description": "Alternative text for close panel button" - }, - "loadOnRestore": - { - "message": "Load tabs on restore", - "description": "Label for option" - }, - "showDeleteDialog": - { - "message": "Show confirmation dialog before deleting an item", - "description": "Label for option" - }, - "swapIconAction": - { - "message": "Set tabs aside on extension icon click (%TOGGLE_SHORTCUT% or right-click to open the pane)", - "description": "Label for option" - }, - "github": - { - "message": "Visit GitHub page", - "description": "Link title" - }, - "changelog": - { - "message": "Changelog", - "description": "Link title" - }, - "feedback": - { - "message": "Leave feedback", - "description": "Link title" - }, - "buyMeACoffee": - { - "message": "Buy me a coffee!", - "description": "Link title" - }, - "credits": - { - "message": "Developed by Michael 'XFox' Gordeev", - "description": "Options menu credits" - }, - "setAside": - { - "message": "Set current tabs aside", - "description": "Save collection action name. Used in the pane, extension context menu and manifest shortcuts" - }, - "setMultipleTabsAsideTooltip": - { - "message": "Tip : You can set aside specific tabs by selecting them (by holding CTRL or SHIFT and clicking on the tabs) before clicking on the TabsAside extension", - "description": "Tooltip displayed on hover in the pane to explain how to set specific tabs aside" - }, - "nothingSaved": - { - "message": "You have no aside tabs", - "description": "Placeholder for empty pane" - }, - "removeTab": - { - "message": "Remove tab from collection", - "description": "Button hint on a tab card" - }, - "restoreTabs": - { - "message": "Restore tabs", - "description": "Collection restore action link name" - }, - "more": - { - "message": "More...", - "description": "Collections' more button title" - }, - "restoreNoRemove": - { - "message": "Restore without removing", - "description": "Context action item name" - }, - "removeCollection": - { - "message": "Remove collection", - "description": "Collection remove action name" - }, - "removeCollectionConfirm": - { - "message": "Are you sure you want to delete this collection?", - "description": "Prompt dialog content on collection deletion" - }, - "removeTabConfirm": - { - "message": "Are you sure you want to delete this tab?", - "description": "Prompt dialog content on one tab deletion" - }, - "togglePaneContext": - { - "message": "Toggle tabs aside pane", - "description": "Context action name. Used in extension context menu and manifest shortcuts" - }, - "noTabsToSave": - { - "message": "No tabs available to save", - "description": "Alert dialog message when there's no tabs to save" - }, - "errorSavingTabs": - { - "message": "Tabs could not be set aside. You may be trying to set too many tabs aside at once, or have too many tabs already set aside.", - "description": "Alert dialog message when there is an issue saving tabs" - }, - "olderDataMigrationFailed": - { - "message": "Some tabs set aside from a previous version could not be migrated. They have been backed up as browser bookmarks.", - "description": "Alert dialog message when there is an issue migrating previous versions data" - }, - "tabs": - { - "message": "items", - "description": "Collection tabs counter label (e.g. 8 items)" - } -} diff --git a/_locales/es/messages.json b/_locales/es/messages.json deleted file mode 100644 index 91a6669..0000000 --- a/_locales/es/messages.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": - { - "message": "Pestañas que has reservado", - "description": "Extension name. Displayed in the manifest and pane header" - }, - "description": - { - "message": "Función \"Reservar pestañas\" de Microsoft Edge clásico", - "description": "Extension description" - }, - "author": - { - "message": "Michael \"XFox\" Gordeev", - "description": "Author name" - }, - "options": - { - "message": "Opciones", - "description": "Alternative text for options button in the pane" - }, - "closePanel": - { - "message": "Cerrar", - "description": "Alternative text for close panel button" - }, - "loadOnRestore": - { - "message": "Cargar pestañas al restaurar", - "description": "Label for option" - }, - "showDeleteDialog": - { - "message": "Mostrar diálogo de confirmacion antes de eliminar un item", - "description": "Label for option" - }, - "swapIconAction": - { - "message": "Reservar pestañas al apretar el icono de la extensión (%TOGGLE_SHORTCUT% o click-derecho para abrir el panel)", - "description": "Label for option" - }, - "github": - { - "message": "Visitar la pagina de GitHub", - "description": "Link title" - }, - "changelog": - { - "message": "Registro de cambios", - "description": "Link title" - }, - "feedback": - { - "message": "Deja un comentario", - "description": "Link title" - }, - "buyMeACoffee": - { - "message": "¡Comprame un cafe!", - "description": "Link title" - }, - "credits": - { - "message": "Desarrollado por Michael 'XFox' Gordeev", - "description": "Options menu credits" - }, - "setAside": - { - "message": "Reservar las pestañas actuales", - "description": "Save collection action name. Used in the pane, extension context menu and manifest shortcuts" - }, - "setMultipleTabsAsideTooltip": - { - "message": "Consejo: puede dejar de lado pestañas específicas seleccionándolas (manteniendo presionada la tecla CTRL o SHIFT y haciendo clic en las pestañas) antes de hacer clic en la extensión TabsAside", - "description": "Tooltip displayed on hover in the pane to explain how to set specific tabs aside" - }, - "nothingSaved": - { - "message": "No tienes pestañas reservadas", - "description": "Placeholder for empty pane" - }, - "removeTab": - { - "message": "Eliminar pestañas de la colección", - "description": "Button hint on a tab card" - }, - "restoreTabs": - { - "message": "Restaurar pestañas", - "description": "Collection restore action link name" - }, - "more": - { - "message": "Más...", - "description": "Collections' more button title" - }, - "restoreNoRemove": - { - "message": "Restaurar sin eliminar", - "description": "Context action item name" - }, - "removeCollection": - { - "message": "Eliminar la colección", - "description": "Collection remove action name" - }, - "removeCollectionConfirm": - { - "message": "¿Está seguro que quiere eliminar esta colección?", - "description": "Prompt dialog content on collection deletion" - }, - "removeTabConfirm": - { - "message": "¿Está seguro que quiere eliminar esta pestaña?", - "description": "Prompt dialog content on one tab deletion" - }, - "togglePaneContext": - { - "message": "Abrir panel de pestañas", - "description": "Context action name. Used in extension context menu and manifest shortcuts" - }, - "noTabsToSave": - { - "message": "No hay pestañas disponibles para reservar", - "description": "Alert dialog message when there's no tabs to save" - }, - "errorSavingTabs": - { - "message": "Las pestañas no se pueden dejar de lado. Es posible que esté intentando dejar demasiadas pestañas a un lado a la vez o que ya haya reservado demasiadas pestañas.", - "description": "Alert dialog message when there is an issue saving tabs" - }, - "olderDataMigrationFailed": - { - "message": "Algunas pestañas apartadas de una versión anterior no se pudieron migrar. Se han respaldado como marcadores del navegador.", - "description": "Alert dialog message when there is an issue migrating previous versions data" - }, - "tabs": - { - "message": "items", - "description": "Collection tabs counter label (e.g. 8 items)" - } -} \ No newline at end of file diff --git a/_locales/it/messages.json b/_locales/it/messages.json deleted file mode 100644 index b90a5c6..0000000 --- a/_locales/it/messages.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": - { - "message": "Schede a parte", - "description": "name of the extension. Displayed in the manifest and pane header" - }, - "description": - { - "message": "La funzione del classico Microsoft Edge \"Tabs Aside\"", - "description": "Extension description" - }, - "author": - { - "message": "Michael \"XFox\" Gordeev", - "description": "Author name" - }, - "options": - { - "message": "Opzioni", - "description": "Alternative text for options button in the pane" - }, - "closePanel": - { - "message": "Chiudi", - "description": "Alternative text for close panel button" - }, - "loadOnRestore": - { - "message": "Riapri le schede al ripristino", - "description": "Label for option" - }, - "showDeleteDialog": - { - "message": "Mostra una finestra di conferma prima di eliminare qualcosa", - "description": "Label for option" - }, - "swapIconAction": - { - "message": "Metti da parte le schede in Tabs Aside al click sull'estensione (%TOGGLE_SHORTCUT% o click con il tasto destro sull'icona dell'estensione per aprire il pannello)", - "description": "Label for option" - }, - "github": - { - "message": "Visita la pagina di GitHub", - "description": "Link title" - }, - "changelog": - { - "message": "Registro dei cambiamenti", - "description": "Link title" - }, - "feedback": - { - "message": "Lascia un feedback", - "description": "Link title" - }, - "buyMeACoffee": - { - "message": "Comprami un caffè!", - "description": "Link title" - }, - "credits": - { - "message": "Sviluppato da Michael 'XFox' Gordeev", - "description": "Options menu credits" - }, - "setAside": - { - "message": "Sposta le schede correnti in Tabs Aside", - "description": "Save collection action name. Used in the pane, extension context menu and manifest shortcuts" - }, - "setMultipleTabsAsideTooltip": - { - "message": "Suggerimento: puoi mettere da parte schede specifiche selezionandole (tenendo premuto CTRL o MAIUSC e facendo clic sulle schede) e cliccando sull'estensione Tabs Aside.", - "description": "Tooltip displayed on hover in the pane to explain how to set specific tabs aside" - }, - "nothingSaved": - { - "message": "Non hai schede da parte qua", - "description": "Placeholder for empty pane" - }, - "removeTab": - { - "message": "Rimuovi la scheda da questo gruppo di schede", - "description": "Button hint on a tab card" - }, - "restoreTabs": - { - "message": "Ripristina schede", - "description": "Collection restore action link name" - }, - "more": - { - "message": "Altro...", - "description": "Collections' more button title" - }, - "restoreNoRemove": - { - "message": "Ripristina senza rimuovere le schede da da Tabs Aside", - "description": "Context action item name" - }, - "removeCollection": - { - "message": "Rimuovi gruppo di schede", - "description": "Collection remove action name" - }, - "removeCollectionConfirm": - { - "message": "Sei sicuro di voler eliminare questo gruppo di schede?", - "description": "Prompt dialog content on collection deletion" - }, - "removeTabConfirm": - { - "message": "Sei sucuro di voler rimuovere questa scheda?", - "description": "Prompt dialog content on one tab deletion" - }, - "togglePaneContext": - { - "message": "Mostra/nascondi il pannello di Tabs Aside", - "description": "Context action name. Used in extension context menu and manifest shortcuts" - }, - "noTabsToSave": - { - "message": "Nessuna scheda da salvare", - "description": "Alert dialog message when there's no tabs to save" - }, - "errorSavingTabs": - { - "message": "Queste schede non possono essere messe da parte. Forse perché stai cercando di mettere da parte troppe schede o perché ce ne sono già troppe messe da parte.", - "description": "Alert dialog message when there is an issue saving tabs" - }, - "olderDataMigrationFailed": - { - "message": "Alcune schede messe da parte in una versione precedente non potevano essere mantenute. Sono state salvate come preferiti del browser.", - "description": "Alert dialog message when there is an issue migrating previous versions data" - }, - "tabs": - { - "message": "schede", - "description": "Collection tabs counter label (e.g. 8 items)" - } - } diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json deleted file mode 100644 index 506deee..0000000 --- a/_locales/pl/messages.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": - { - "message": "Kolekcje zakładek", - "description": "Extension name. Displayed in the manifest and pane header" - }, - "description": - { - "message": "Klasyczna funkcjonalność Microsoft Edge \"Kolekcje zakładek\"", - "description": "Extension description" - }, - "author": - { - "message": "Michael \"XFox\" Gordeev", - "description": "Author name" - }, - "options": - { - "message": "Opcje", - "description": "Alternative text for options button in the pane" - }, - "closePanel": - { - "message": "Zamknij", - "description": "Alternative text for close panel button" - }, - "loadOnRestore": - { - "message": "Przeładuj zawartość kart podczas przywracania", - "description": "Label for option" - }, - "showDeleteDialog": - { - "message": "Pokaż potwierdzenie podczas kasowania elementu", - "description": "Label for option" - }, - "swapIconAction": - { - "message": "Kliknięcie na ikonę zapisuje aktualne karty (%TOGGLE_SHORTCUT% lub prawy przycisk myszki, aby otworzyć panel)", - "description": "Label for option" - }, - "github": - { - "message": "Strona GitHub", - "description": "Link title" - }, - "changelog": - { - "message": "Historia zmian", - "description": "Link title" - }, - "feedback": - { - "message": "Wyślij opinię", - "description": "Link title" - }, - "buyMeACoffee": - { - "message": "Kup mi kawę!", - "description": "Link title" - }, - "credits": - { - "message": "Opracowane przez Michael 'XFox' Gordeev", - "description": "Options menu credits" - }, - "setAside": - { - "message": "Zapisz aktualne karty", - "description": "Save collection action name. Used in the pane, extension context menu and manifest shortcuts" - }, - "setMultipleTabsAsideTooltip": - { - "message": "Wskazówka : możesz zaznaczyć interesujące karty używając CTRL lub SHIFT na karcie, aby tylko te później zapisać", - "description": "Tooltip displayed on hover in the pane to explain how to set specific tabs aside" - }, - "nothingSaved": - { - "message": "Nie posiadasz żadnej kolekcji zakładek", - "description": "Placeholder for empty pane" - }, - "removeTab": - { - "message": "Usunięcie karty z kolekcji", - "description": "Button hint on a tab card" - }, - "restoreTabs": - { - "message": "Przywrócenie kart", - "description": "Collection restore action link name" - }, - "more": - { - "message": "Więcej...", - "description": "Collections' more button title" - }, - "restoreNoRemove": - { - "message": "Przywrócenie kart bez usunięcia kolekcji", - "description": "Context action item name" - }, - "removeCollection": - { - "message": "Usunięcie kolekcji", - "description": "Collection remove action name" - }, - "removeCollectionConfirm": - { - "message": "Jesteś pewny, że chcesz skasować kolekcję?", - "description": "Prompt dialog content on collection deletion" - }, - "removeTabConfirm": - { - "message": "Jesteś pewny, że chcesz skasować zakładkę?", - "description": "Prompt dialog content on one tab deletion" - }, - "togglePaneContext": - { - "message": "Przełącz panel kolekcji", - "description": "Context action name. Used in extension context menu and manifest shortcuts" - }, - "noTabsToSave": - { - "message": "Brak zakładek do zapisu", - "description": "Alert dialog message when there's no tabs to save" - }, - "errorSavingTabs": - { - "message": "Zakładki nie mogą zostać zapisane. Przypuszczalnie zbyt wiele zakładek lub aktualnie posiadanych kolekcji.", - "description": "Alert dialog message when there is an issue saving tabs" - }, - "olderDataMigrationFailed": - { - "message": "Niektóre kolekcje z poprzedniej wersji nie mogły zostać przekonwertowane, w związku z czym zostały zapisane jako zwykłe zakładki w przeglądarce", - "description": "Alert dialog message when there is an issue migrating previous versions data" - }, - "tabs": - { - "message": "elementów", - "description": "Collection tabs counter label (e.g. 8 items)" - } -} diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json deleted file mode 100644 index f06aa77..0000000 --- a/_locales/pt_BR/messages.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": - { - "message": "Reservar abas", - "description": "Extension name. Displayed in the manifest and pane header" - }, - "description": - { - "message": "Função \"Reservar abas\" do Microsoft Edge Clássico", - "description": "Extension description" - }, - "author": - { - "message": "Michael \"XFox\" Gordeev", - "description": "Author name" - }, - "options": - { - "message": "Opções", - "description": "Alternative text for options button in the pane" - }, - "closePanel": - { - "message": "Fechar", - "description": "Alternative text for close panel button" - }, - "loadOnRestore": - { - "message": "Carregar abas ao restaurar", - "description": "Label for option" - }, - "showDeleteDialog": - { - "message": "Mostrar diálogo de confirmação antes de deletar um item", - "description": "Label for option" - }, - "swapIconAction": - { - "message": "Reservar abas ao apertar o ícone da extensão (%TOGGLE_SHORTCUT% ou clique-direito para abrir o painel)", - "description": "Label for option" - }, - "github": - { - "message": "Visite a página do GitHub", - "description": "Link title" - }, - "changelog": - { - "message": "Registro de mudanças", - "description": "Link title" - }, - "feedback": - { - "message": "Deixe um comentário", - "description": "Link title" - }, - "buyMeACoffee": - { - "message": "Me compre um café!", - "description": "Link title" - }, - "credits": - { - "message": "Desenvolvido por Michael 'XFox' Gordeev", - "description": "Options menu credits" - }, - "setAside": - { - "message": "Reservas as abas atuais", - "description": "Save collection action name. Used in the pane, extension context menu and manifest shortcuts" - }, - "setMultipleTabsAsideTooltip": - { - "message": "Dica: Você pode reservar abas específicas ao selecioná-las (ao apertar CTRL ou SHIFT e clicando nas abas) antes de clicar na extensão Reservar Abas", - "description": "Tooltip displayed on hover in the pane to explain how to set specific tabs aside" - }, - "nothingSaved": - { - "message": "Você não tem abas reservadas", - "description": "Placeholder for empty pane" - }, - "removeTab": - { - "message": "Remover aba da coleção", - "description": "Button hint on a tab card" - }, - "restoreTabs": - { - "message": "Restaurar abas", - "description": "Collection restore action link name" - }, - "more": - { - "message": "Mais...", - "description": "Collections' more button title" - }, - "restoreNoRemove": - { - "message": "Restaurar sem remover", - "description": "Context action item name" - }, - "removeCollection": - { - "message": "Remover coleção", - "description": "Collection remove action name" - }, - "removeCollectionConfirm": - { - "message": "Você tem certeza que quer deletar esta coleção?", - "description": "Prompt dialog content on collection deletion" - }, - "removeTabConfirm": - { - "message": "Você tem certeza que quer deletar esta aba?", - "description": "Prompt dialog content on one tab deletion" - }, - "togglePaneContext": - { - "message": "Alternar painel de abas", - "description": "Context action name. Used in extension context menu and manifest shortcuts" - }, - "noTabsToSave": - { - "message": "Não há abas disponíveis para salvar", - "description": "Alert dialog message when there's no tabs to save" - }, - "errorSavingTabs": - { - "message": "As abas não puderam ser reservadas. Você pode ter tentado reservar muitas abas de uma vez só, ou pode ter abas demais já reservadas.", - "description": "Alert dialog message when there is an issue saving tabs" - }, - "olderDataMigrationFailed": - { - "message": "Algumas abas reservadas de uma versão antiga não puderam ser migradas. Elas foram salvas como marcadores do navegador.", - "description": "Alert dialog message when there is an issue migrating previous versions data" - }, - "tabs": - { - "message": "itens", - "description": "Collection tabs counter label (e.g. 8 items)" - } -} \ No newline at end of file diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json deleted file mode 100644 index 0e2fd9a..0000000 --- a/_locales/ru/messages.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": - { - "message": "Отложенные вкладки", - "description": "Extension name. Displayed in the manifest and pane header" - }, - "description": - { - "message": "Функиця отложенных вкладок классического Microsoft Edge", - "description": "Extension description" - }, - "author": - { - "message": "Михаил \"XFox\" Гордеев", - "description": "Author name" - }, - "options": - { - "message": "Настройки", - "description": "Alternative text for options button in the pane" - }, - "closePanel": - { - "message": "Закрыть", - "description": "Alternative text for close panel button" - }, - "loadOnRestore": - { - "message": "Загружать вкладки после открытия", - "description": "Label for option" - }, - "showDeleteDialog": - { - "message": "Показывать окно подтверждения перед удалением элемента", - "description": "Label for option" - }, - "swapIconAction": - { - "message": "Откладывать вкладки при нажатии на иконку расширения (%TOGGLE_SHORTCUT% или правая кнопка мыши для открытия панели)", - "description": "Label for option" - }, - "github": - { - "message": "Страница GitHub", - "description": "Link title" - }, - "changelog": - { - "message": "Список изменений", - "description": "Link title" - }, - "feedback": - { - "message": "Оставить отзыв", - "description": "Link title" - }, - "buyMeACoffee": - { - "message": "Купить мне кофе!", - "description": "Link title" - }, - "credits": - { - "message": "Разработано: Михаил 'XFox' Гордеев", - "description": "Options menu credits" - }, - "setAside": - { - "message": "Отложить открытые вкладки", - "description": "Save collection action name. Used in the pane, extension context menu and manifest shortcuts" - }, - "setMultipleTabsAsideTooltip": - { - "message": "Подсказка: теперь вы можете откладывать только некоторые вкладки. Просто выделите нужные вкладки с помощью Shift или Ctrl перед использованием расширения", - "description": "Tooltip displayed on hover in the pane to explain how to set specific tabs aside" - }, - "nothingSaved": - { - "message": "У вас нет отложенных вкладок", - "description": "Placeholder for empty pane" - }, - "removeTab": - { - "message": "Удалить вкладку из коллекции", - "description": "Button hint on a tab card" - }, - "restoreTabs": - { - "message": "Восстановить вкладки", - "description": "Collection restore action link name" - }, - "more": - { - "message": "Больше...", - "description": "Collections' more button title" - }, - "restoreNoRemove": - { - "message": "Восстановить без удаления", - "description": "Context action item name" - }, - "removeCollection": - { - "message": "Удалить коллекцию", - "description": "Collection remove action name" - }, - "removeCollectionConfirm": - { - "message": "Вы уверены, что хотите удалить эту коллекцию?", - "description": "Prompt dialog content on collection deletion" - }, - "removeTabConfirm": - { - "message": "Вы уверены, что хотите удалить эту вкладку из коллекции?", - "description": "Prompt dialog content on one tab deletion" - }, - "togglePaneContext": - { - "message": "Открыть/закрыть панель", - "description": "Context action name. Used in extension context menu and manifest shortcuts" - }, - "noTabsToSave": - { - "message": "Нет доступных для сохранения вкладок", - "description": "Alert dialog message when there's no tabs to save" - }, - "errorSavingTabs": - { - "message": "Не удается отложить вкладки. Возможно, вы пытаетесь отложить слишком много вкладок за раз или уже отложили слишком много вкладок", - "description": "Alert dialog message when there is an issue saving tabs" - }, - "olderDataMigrationFailed": - { - "message": "Не удалось перенести отложенные вкладки, сохраненные в старой версии расширения. Они были сохранены в закладках", - "description": "Alert dialog message when there is an issue migrating previous versions data" - }, - "tabs": - { - "message": "вкладок", - "description": "Collection tabs counter label (e.g. 8 items)" - } -} \ 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 38183fd..0000000 --- a/_locales/zh_CN/messages.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": - { - "message": "搁置的标签页", - "description": "Extension name. Displayed in the manifest and pane header" - }, - "description": - { - "message": "为Chromium浏览器提供旧版 Microsoft Edge 中的\"搁置标签页\" 功能", - "description": "Extension description" - }, - "author": - { - "message": "Michael \"XFox\" Gordeev", - "description": "Author name" - }, - "options": - { - "message": "设置", - "description": "Alternative text for options button in the pane" - }, - "closePanel": - { - "message": "关闭", - "description": "Alternative text for close panel button" - }, - "loadOnRestore": - { - "message": "在重新打开时加载页面", - "description": "Label for option" - }, - "showDeleteDialog": - { - "message": "在删除项目之前显示确认对话框", - "description": "Label for option" - }, - "swapIconAction": - { - "message": "点击拓展图标来搁置所有标签页 (按%TOGGLE_SHORTCUT%或右键来打开侧栏)", - "description": "Label for option" - }, - "github": - { - "message": "查看GitHub页面", - "description": "Link title" - }, - "changelog": - { - "message": "变更日志", - "description": "Link title" - }, - "feedback": - { - "message": "给我们反馈", - "description": "Link title" - }, - "buyMeACoffee": - { - "message": "给我买杯咖啡!", - "description": "Link title" - }, - "credits": - { - "message": "由Michael 'XFox' Gordeev开发", - "description": "Options menu credits" - }, - "setAside": - { - "message": "搁置当前的所有标签页", - "description": "Save collection action name. Used in the pane, extension context menu and manifest shortcuts" - }, - "setMultipleTabsAsideTooltip": - { - "message": "提示:在单击TabsAside扩展名之前,可以通过选择特定选项卡(按住CTRL或SHIFT并单击选项卡)来搁置它们", - "description": "Tooltip displayed on hover in the pane to explain how to set specific tabs aside" - }, - "nothingSaved": - { - "message": "你目前没有搁置的标签页", - "description": "Placeholder for empty pane" - }, - "removeTab": - { - "message": "从标签页集中移除标签页", - "description": "Button hint on a tab card" - }, - "restoreTabs": - { - "message": "恢复标签页", - "description": "Collection restore action link name" - }, - "more": - { - "message": "更多...", - "description": "Collections' more button title" - }, - "restoreNoRemove": - { - "message": "恢复但不移除标签页", - "description": "Context action item name" - }, - "removeCollection": - { - "message": "移除标签页集", - "description": "Collection remove action name" - }, - "removeCollectionConfirm": - { - "message": "你确定要移除这个标签页集吗?", - "description": "Prompt dialog content on collection deletion" - }, - "removeTabConfirm": - { - "message": "你确定要移除这个标签页吗?", - "description": "Prompt dialog content on one tab deletion" - }, - "togglePaneContext": - { - "message": "打开或关闭侧栏", - "description": "Context action name. Used in extension context menu and manifest shortcuts" - }, - "noTabsToSave": - { - "message": "没有可以搁置的标签页", - "description": "Alert dialog message when there's no tabs to save" - }, - "errorSavingTabs": - { - "message": "标签页无法被搁置. 可能是因为您尝试一次性搁置过多的标签页, 或是先前搁置的标签页过多.", - "description": "Alert dialog message when there is an issue saving tabs" - }, - "olderDataMigrationFailed": - { - "message": "一部分搁置的标签页无法从上一个版本中迁移. 这些标签页已经作为浏览器书签被备份.", - "description": "Alert dialog message when there is an issue migrating previous versions data" - }, - "tabs": - { - "message": "项", - "description": "Collection tabs counter label (e.g. 8 items)" - } -} diff --git a/css/style.css b/css/style.css deleted file mode 100644 index ff7acee..0000000 --- a/css/style.css +++ /dev/null @@ -1,310 +0,0 @@ -.tabsAside.background -{ - background-color: rgba(255, 255, 255, .5); - position: fixed; - top: 0; - bottom: 0; - right: 0; - left: 0; - transition: .2s; - color: black; -} - -.tabsAside.closeArea -{ - position: fixed; - top: 0; - bottom: 0; - right: 0; - left: 0; - - background-color: transparent; -} - -.tabsAside.pane -{ - user-select: none; - position: fixed; - - right: 0px; - top: 0px; - bottom: 0px; - overflow: hidden; - display: grid; - grid-template-rows: auto 1fr; - - width: 100%; - min-width: 500px; - - background-color: #f7f7f7; - border: 1px solid rgba(100, 100, 100, .5); - border-width: 0px 0px 0px 1px; - box-shadow: 6px 0px 12px black; - - transform: translateX(110%); /* pane is hidded */ - transition: .2s; -} - - aside[embedded] - { - width: 500px !important; - } - - .tabsAside.pane[opened] - { - transform: translateX(0px); - } - - /* Pane header*/ - .tabsAside.pane > header - { - z-index: 1; - padding: 14px 20px 16px 20px; - box-shadow: 0px 0px 5px rgba(0,0,0,.5); - background-color: white; - display: grid; - grid-template-columns: 1fr auto auto; - grid-column-gap: 10px; - grid-row-gap: 20px; - } - - .tabsAside.pane > header > h1 - { - margin: 0px 5px; - font-weight: 400; - font-size: 24px; - } - - .tabsAside.pane > header > button .updateBadge - { - position: absolute; - bottom: 2px; - right: 2px; - } - - .tabsAside.pane > header > nav - { - top: 45px; - right: 55px; - } - - .tabsAside.pane > header nav > p - { - margin: 10px; - } - - .tabsAside.pane > header nav > p > a - { - text-decoration: none; - } - - .tabsAside.pane > header nav > p > a:hover - { - text-decoration: underline; - } - - .saveTabs - { - display: inline-grid; - grid-template-columns: 16px auto 16px; - grid-column-gap: 15px; - - margin-right: auto; - } - - .saveTabs:hover - { - text-decoration: none !important; - } - - .saveTabs:hover span:nth-child(2) - { - text-decoration: underline; - } - - .iconArrowRight,.iconQuestionCircle - { - width: 16px; - height: 16px; - display: inline-block; - font-family: "SegoeMDL2Assets"; - margin: 2px; - } - .iconQuestionCircle - { - font-size: small; - padding-top: 2px; - margin-bottom: 0; - } - - .tabsAside.pane section - { - overflow: auto; - } - - .tabsAside.pane > section > h2 - { - margin: 20px; - font-weight: normal; - } - - /* Collection header */ - .tabsAside.pane > section > div - { - transition: .2s; - } - - .collectionSet - { - background-color: white; - margin: 10px; - border-radius: 5px; - border: 1px solid #eee; - } - - .collectionSet:hover - { - box-shadow: 0px 0px 5px rgba(0, 0, 0, .25); - } - - .collectionSet .header > * - { - visibility: hidden; - } - - .collectionSet:hover .header > * - { - visibility: visible; - } - - .collectionSet > .header - { - margin: 10px 10px 0px 20px; - display: grid; - grid-template-columns: 1fr auto auto auto; - grid-column-gap: 10px; - align-items: center; - } - - .collectionSet > .header > small - { - color: gray; - visibility: visible !important; - } - - .collectionSet > .header > input - { - margin: 0px; - visibility: visible !important; - font-weight: 600; - border: none; - background: transparent; - } - - .collectionSet > .header > input:hover - { - border: 1px solid black; - } - - .collectionSet > .header > div > nav - { - width: 250px; - right: 0px; - top: 35px; - } - - /* Tabs collection */ - .collectionSet > .set - { - padding: 5px 10px; - white-space: nowrap; - overflow: auto; - } - - .collectionSet > .set::-webkit-scrollbar-thumb - { - visibility: hidden; - } - - .collectionSet > .set:hover::-webkit-scrollbar-thumb - { - visibility: visible; - } - - .collectionSet > .set > div - { - width: 175px; - height: 148px; - margin: 5px; - - background-color: #c2c2c2; - background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_thumbnail.png"), - url("moz-extension://__MSG_@@extension_id__/images/tab_thumbnail.png"); - background-size: cover; - background-position-x: center; - - display: inline-grid; - grid-template-rows: 1fr auto; - - transition: .25s; - cursor: pointer; - - border: 1px solid #eee; - border-radius: 5px; - } - .collectionSet > .set > div:hover - { - box-shadow: 0px 0px 5px rgba(100, 100, 100, .5); - } - - .collectionSet > .set > div > div - { - background-color: rgba(233, 233, 233, .75); - grid-row: 2; - display: grid; - grid-template-columns: auto 1fr auto; - } - - .collectionSet > .set > div > div > button - { - margin: auto; - margin-right: 5px; - display: none; - } - - .collectionSet > .set > div:hover > div > button - { - display: initial; - } - - .collectionSet > .set > div > div > div - { - width: 20px; - height: 20px; - margin: 8px; - - background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_icon.png"), - url("moz-extension://__MSG_@@extension_id__/images/tab_icon.png"); - background-size: 20px; - } - - .collectionSet > .set > div > div > span - { - overflow: hidden; - margin: auto 0px; - margin-right: 10px; - font-size: 12px; - } - .collectionSet > .set > div:hover > div > span - { - margin-right: 5px; - } - -@media only screen and (max-width: 500px) -{ - .tabsAside.pane - { - width: 100% !important; - min-width: initial; - } -} diff --git a/css/style.dark.css b/css/style.dark.css deleted file mode 100644 index 71d29d8..0000000 --- a/css/style.dark.css +++ /dev/null @@ -1,136 +0,0 @@ -.tabsAside[darkmode].background -{ - background-color: rgba(0, 0, 0, .5); -} - -.tabsAside[darkmode] .pane -{ - background-color: #333333; - color: white; -} - - .tabsAside[darkmode] .pane header - { - background-color: #3b3b3b; - } - - .tabsAside[darkmode] nav hr - { - filter: invert(1); - } - - .tabsAside[darkmode] .saveTabs > div - { - filter: invert(); - } - - /* Button style */ - .tabsAside[darkmode] button - { - color: white; - } - .tabsAside[darkmode] .pane button:hover, - .tabsAside[darkmode] .pane .control.checkbox:hover - { - background-color: gray; - } - .tabsAside[darkmode] .pane button img, - .tabsAside[darkmode] .pane label > input + span - { - filter: invert(); - } - .tabsAside[darkmode] .pane button:active - { - background-color: dimgray; - } - - .tabsAside[darkmode] .collectionSet > .header > input - { - color: white; - } - - .tabsAside[darkmode] .collectionSet > .header > input:hover - { - border: 1px solid dimgray; - } - - .tabsAside[darkmode] .collectionSet > .header > input:focus - { - background: white; - color: black; - } - - .tabsAside[darkmode] a - { - color: #48adff; - } - - /* Timestamp label */ - .tabsAside[darkmode] > .pane > section small - { - color: lightgray !important; - } - - /* Scrollbar style */ - .tabsAside[darkmode] .pane ::-webkit-scrollbar-thumb - { - background: gray; - border-radius: 3px; - } - .tabsAside[darkmode] .pane ::-webkit-scrollbar-thumb:hover - { - background: dimgray; - } - - .tabsAside[darkmode] .pane .collectionSet - { - background-color: #3b3b3b; - border-color: #444; - } - - /* Tab style */ - .tabsAside[darkmode] .pane .collectionSet > .set > div - { - background-color: #0c0c0c; - background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_thumbnail_dark.png"), - url("moz-extension://__MSG_@@extension_id__/images/tab_thumbnail_dark.png"); - border-color: #444; - } - - .tabsAside[darkmode] .pane .collectionSet > .set > div > div - { - background-color: rgba(50, 50, 50, .75); - } - - .tabsAside[darkmode] .pane .collectionSet > .set > div > div > div - { - background-image: url("chrome-extension://__MSG_@@extension_id__/images/tab_icon_dark.png"), - url("moz-extension://__MSG_@@extension_id__/images/tab_icon_dark.png"); - } - - /* Context menu style */ - .tabsAside[darkmode] .pane nav - { - background-color: #4a4a4a; - } - -.tabsAside[darkmode] .listviewSwitch > div -{ - border-radius: 1px; - background-color: gray; -} - -.tabsAside[darkmode] .tabsAside .listviewSwitch.tile > div -{ - background-color: #c2c2c2; -} - -.tabsAside[darkmode] .tabsAside[listview] .listviewSwitch.tile > div -{ - background-color: gray; -} - -.tabsAside[darkmode] .tabsAside[listview] .listviewSwitch.list > div -{ - background-color: #c2c2c2; -} \ No newline at end of file diff --git a/css/style.generic.css b/css/style.generic.css deleted file mode 100644 index 29512fb..0000000 --- a/css/style.generic.css +++ /dev/null @@ -1,231 +0,0 @@ -.updateBadge -{ - display: none; -} -.tabsAside[updated] .updateBadge -{ - width: 10px; - height: 10px; - background-color: #0078d7; - border-radius: 5px; - display: block; -} - -/* Custom scrollbar */ -.tabsAside ::-webkit-scrollbar -{ - height: 6px; - width: 6px; -} - -.tabsAside ::-webkit-scrollbar-thumb -{ - background: darkgray; - border-radius: 3px; -} - .tabsAside ::-webkit-scrollbar-thumb:hover - { - background: gray; - } - -.tabsAside -{ - font-family: "SegoeUI", "SegoeMDL2Assets" !important; - font-size: 14px; - user-select: none; -} - -/* Links style */ -.tabsAside a -{ - color: #0078d7; -} - .tabsAside a:hover - { - text-decoration: underline; - cursor: pointer; - } - - .tabsAside a:visited - { - color: #0078d7; - } - -/* Buttons style */ -.tabsAside button -{ - width: 28px; - height: 28px; - font-size: 16px; - background-color: transparent; - border: none; - cursor: pointer; - outline: none !important; - position: relative; -} - .tabsAside button:hover - { - background-color: #f2f2f2; - } - .tabsAside button:active - { - background-color: gray; - } - -/* Context menus style */ -.tabsAside .contextContainer -{ - position: relative; -} - -.tabsAside nav -{ - user-select: none; - - position: absolute; - width: 390px; - font-size: 12px; - - box-shadow: 0px 4px 10px rgba(0,0,0,.25); - background-color: white; - border-radius: 5px; - - z-index: 10; - - visibility: hidden; - padding: 4px 0px; -} - - .tabsAside nav hr - { - border: none; - height: 1px; - background-color: rgba(0, 0, 0, .1); - margin: 4px 0px - } - - .tabsAside nav button - { - align-content: center; - text-align: start; - - padding: 0px 12px; - width: 100%; - - height: 32px; - font-family: "SegoeUI"; - font-size: 12px; - - display: grid; - grid-template-columns: auto 1fr auto; - grid-column-gap: 14px; - } - - .tabsAside nav button:hover - { - background-color: #eeee; - } - - .tabsAside nav button img:first-child - { - width: 16px; - height: 16px; - } - - .tabsAside nav button img:nth-child(3) - { - width: 12px; - height: 12px; - } - - .tabsAside nav button *:nth-child(3) - { - align-self: center; - } - - .tabsAside button + nav:active, - .tabsAside button:focus + nav - { - visibility: visible; - } - -/* Icon buttons style */ -.btn -{ - background-repeat: no-repeat; - background-size: 12px; - background-position: center; - font-family: "SegoeUI", "SegoeMDL2Assets"; -} - -.control.checkbox -{ - display: block; - position: relative; - padding: 8px 12px 8px 42px; - box-sizing: border-box; - cursor: pointer; - min-height: 32px; -} - .control.checkbox:hover - { - background-color: #eeeeee; - } - .control.checkbox input - { - position: absolute; - opacity: 0; - width: 0; - height: 0; - } - .control.checkbox input + span - { - position: absolute; - left: 12px; - height: 16px; - width: 16px; - - transition-property: background, border, border-color; - transition-duration: 200ms; - transition-timing-function: cubic-bezier(0.4, 0, 0.23, 1); - } - .control.checkbox input + span::after - { - position: absolute; - color: rgba(0, 0, 0, .4); - - font-family: "SegoeMDL2Assets"; - content: "\E73E"; - - width: 16px; - height: 16px; - font-size: 16px; - text-align: center; - - display: none; - } - .control.checkbox input:checked + span::after - { - display: block; - color: black; - } - .control.checkbox:hover input + span::after - { - display: block; - } - -@font-face -{ - font-family: "SegoeUI"; - src: local("Segoe UI"), - url("../fonts/segoeui.ttf") format("truetype"), - url("../fonts/segoeui.woff") format("woff") -} - -@font-face -{ - font-family: "SegoeMDL2Assets"; - src: local("Segoe MDL2 Assets"), - url("../fonts/segoemdl2.ttf") format("truetype"), - url("../fonts/segoemdl2.woff") format("woff") -} \ No newline at end of file diff --git a/css/style.listview.css b/css/style.listview.css deleted file mode 100644 index 0d397be..0000000 --- a/css/style.listview.css +++ /dev/null @@ -1,59 +0,0 @@ -.tabsAside[listview] .collectionSet > .header -{ - margin-bottom: 5px; -} - -.tabsAside[listview] .collectionSet > .set -{ - max-height: 250px; -} - -.tabsAside[listview] .collectionSet > .set > div -{ - width: initial; - height: initial; - background-image: none !important; - display: block; -} - -.listviewSwitch -{ - width: 20px; - height: 20px; - display: grid; - grid-row-gap: 2px; - grid-column-gap: 2px; - cursor: pointer; - margin: 0px auto; -} - -.listviewSwitch.tile -{ - grid-template-columns: 1fr 1fr; -} - -.listviewSwitch > div -{ - border-radius: 1px; - background-color: #c2c2c2; -} - -.listviewSwitch:hover > div -{ - background-color: #a0a0aa; -} - -.tabsAside .listviewSwitch.tile > div -{ - background-color: gray; -} - -.tabsAside[listview] .listviewSwitch.tile > div -{ - background-color: #c2c2c2; -} - -.tabsAside[listview] .listviewSwitch.list > div -{ - background-color: gray; -} \ No newline at end of file diff --git a/fonts/Microsoft_Fabric_assets_license_agreement_May_2019.pdf b/fonts/Microsoft_Fabric_assets_license_agreement_May_2019.pdf deleted file mode 100644 index 98dfb65..0000000 Binary files a/fonts/Microsoft_Fabric_assets_license_agreement_May_2019.pdf and /dev/null differ diff --git a/fonts/Segoe_EULA.txt b/fonts/Segoe_EULA.txt deleted file mode 100644 index 1df7881..0000000 --- a/fonts/Segoe_EULA.txt +++ /dev/null @@ -1 +0,0 @@ -You may use the Segoe MDL2 Assets and Segoe UI fonts or glyphs included in this file (“Software”) solely to design, develop and test your programs for Microsoft Office. Microsoft Office includes but is not limited to any software product or service branded by trademark, trade dress, copyright or some other recognized means, as a product or service of Microsoft Office. This license does not grant you the right to distribute or sublicense all or part of the Software to any third party. By using the Software you agree to these terms. If you do not agree to these terms, do not use the Segoe MDL2 and Segoe UI Fonts or Glyphs. \ No newline at end of file diff --git a/fonts/segoemdl2.ttf b/fonts/segoemdl2.ttf deleted file mode 100644 index 81286ac..0000000 Binary files a/fonts/segoemdl2.ttf and /dev/null differ diff --git a/fonts/segoemdl2.woff b/fonts/segoemdl2.woff deleted file mode 100644 index cb78be9..0000000 Binary files a/fonts/segoemdl2.woff and /dev/null differ diff --git a/fonts/segoeui.ttf b/fonts/segoeui.ttf deleted file mode 100644 index b0e7889..0000000 Binary files a/fonts/segoeui.ttf and /dev/null differ diff --git a/fonts/segoeui.woff b/fonts/segoeui.woff deleted file mode 100644 index d0ed4b2..0000000 Binary files a/fonts/segoeui.woff and /dev/null differ diff --git a/icons/bmc.svg b/icons/bmc.svg deleted file mode 100644 index d7b9b32..0000000 --- a/icons/bmc.svg +++ /dev/null @@ -1,29 +0,0 @@ - - - - Group - Created with Sketch. - - - - - - \ No newline at end of file diff --git a/icons/check.svg b/icons/check.svg deleted file mode 100644 index ba82210..0000000 --- a/icons/check.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/icons/feedback.svg b/icons/feedback.svg deleted file mode 100644 index 69c40c4..0000000 --- a/icons/feedback.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/icons/github.svg b/icons/github.svg deleted file mode 100644 index 12b008f..0000000 --- a/icons/github.svg +++ /dev/null @@ -1,5 +0,0 @@ - - \ No newline at end of file diff --git a/icons/icon-128.png b/icons/icon-128.png deleted file mode 100644 index 04302bd..0000000 Binary files a/icons/icon-128.png and /dev/null differ diff --git a/icons/icon-16.png b/icons/icon-16.png deleted file mode 100644 index 7caf8d5..0000000 Binary files a/icons/icon-16.png and /dev/null differ diff --git a/icons/icon-32.png b/icons/icon-32.png deleted file mode 100644 index 36627da..0000000 Binary files a/icons/icon-32.png and /dev/null differ diff --git a/icons/icon-48.png b/icons/icon-48.png deleted file mode 100644 index 0a610a5..0000000 Binary files a/icons/icon-48.png and /dev/null differ diff --git a/icons/list.svg b/icons/list.svg deleted file mode 100644 index 11f8208..0000000 --- a/icons/list.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/images/edge_icon.png b/images/edge_icon.png deleted file mode 100644 index cda0f0d..0000000 Binary files a/images/edge_icon.png and /dev/null differ diff --git a/images/tab_icon.png b/images/tab_icon.png deleted file mode 100644 index d303887..0000000 Binary files a/images/tab_icon.png and /dev/null differ diff --git a/images/tab_icon_dark.png b/images/tab_icon_dark.png deleted file mode 100644 index ea35225..0000000 Binary files a/images/tab_icon_dark.png and /dev/null differ diff --git a/images/tab_thumbnail.png b/images/tab_thumbnail.png deleted file mode 100644 index ed1a455..0000000 Binary files a/images/tab_thumbnail.png and /dev/null differ diff --git a/images/tab_thumbnail_dark.png b/images/tab_thumbnail_dark.png deleted file mode 100644 index 34da513..0000000 Binary files a/images/tab_thumbnail_dark.png and /dev/null differ diff --git a/js/aside-script.js b/js/aside-script.js deleted file mode 100644 index 2609d0c..0000000 --- a/js/aside-script.js +++ /dev/null @@ -1,400 +0,0 @@ -if (window.location === window.parent.location && !window.location.protocol.includes("-extension:")) // For open/close call -{ - var iframe = document.querySelector("iframe.tabsAsideIframe"); - if (!iframe) - { - iframe = document.createElement('iframe'); - - iframe.setAttribute("class", "tabsAsideIframe"); - - iframe.style.position = "fixed"; - iframe.style.zIndex = "2147483647"; - - iframe.style.height = "100%"; - iframe.style.width = "100%"; - - iframe.style.top = "0px"; - iframe.style.right = "0px"; - iframe.style.left = "0px"; - iframe.style.bottom = "0px"; - - iframe.style.border = "none"; - iframe.style.background = "transparent"; - iframe.style.opacity = 0; - - var bodyStyle = document.body.getAttribute("style"); - document.body.setAttribute("style", "overflow: hidden !important"); - - iframe.onload = () => setTimeout(() => iframe.style.opacity = 1, 100); - - iframe.src = chrome.extension.getURL("TabsAside.html"); - document.body.appendChild(iframe); - } - else - { - iframe.contentWindow.postMessage({ target: "TabsAside", command: "TogglePane" }, "*"); - setTimeout(() => - { - iframe.remove(); - document.body.setAttribute("style", bodyStyle); - }, 250); - } -} -else // For init call - Initialize(); - -function Initialize() -{ - var pane = document.querySelector(".tabsAside.pane"); - if (!pane) - return; - - if (window.location !== window.parent.location) - { - pane.setAttribute("embedded", ""); - window.addEventListener('message', event => - { - if (event.data.target == "TabsAside") - { - pane.parentElement.style.opacity = 0; - pane.removeAttribute("opened"); - } - }); - } - - UpdateLocale(); - - if (window.matchMedia("(prefers-color-scheme: dark)").matches) - { - pane.parentElement.setAttribute("darkmode", ""); - document.querySelector("#icon").href = "icons/dark/empty/16.png"; - } - - document.querySelector(".tabsAside .saveTabs").onclick = SetTabsAside; - document.querySelector(".tabsAside header .btn.remove").addEventListener("click", () => - chrome.runtime.sendMessage({ command: "togglePane" }) - ); - document.querySelector(".tabsAside.closeArea").addEventListener("click", () => - chrome.runtime.sendMessage({ command: "togglePane" }) - ); - - document.querySelector("nav > p > small").textContent = chrome.runtime.getManifest()["version"]; - - // Tabs dismiss option - var loadOnRestoreCheckbox = document.querySelector("#loadOnRestore"); - chrome.storage.sync.get( - { "loadOnRestore": true }, - values => loadOnRestoreCheckbox.checked = values?.loadOnRestore ?? true - ); - chrome.storage.onChanged.addListener((changes, namespace) => - { - if (namespace == 'sync') - for (key in changes) - if (key === 'loadOnRestore') - loadOnRestoreCheckbox.checked = changes[key].newValue - }); - loadOnRestoreCheckbox.addEventListener("click", () => - chrome.storage.sync.set( - { - "loadOnRestore": loadOnRestoreCheckbox.checked - }) - ); - - // Extension browser icon action - var swapIconAction = document.querySelector("#swapIconAction"); - chrome.storage.sync.get( - { "setAsideOnClick": false }, - values => swapIconAction.checked = values?.setAsideOnClick ?? false - ); - chrome.storage.onChanged.addListener((changes, namespace) => - { - if (namespace == 'sync') - for (key in changes) - if (key === 'setAsideOnClick') - swapIconAction.checked = changes[key].newValue - }); - swapIconAction.addEventListener("click", () => - chrome.storage.sync.set( - { - "setAsideOnClick": swapIconAction.checked - }) - ); - - // Deletion confirmation dialog - var showDeleteDialog = document.querySelector("#showDeleteDialog"); - chrome.storage.sync.get( - { "showDeleteDialog": true }, - values => showDeleteDialog.checked = values.showDeleteDialog - ); - chrome.storage.onChanged.addListener((changes, namespace) => - { - if (namespace == 'sync') - for (key in changes) - if (key === 'showDeleteDialog') - showDeleteDialog.checked = changes[key].newValue - }); - showDeleteDialog.addEventListener("click", () => - chrome.storage.sync.set( - { - "showDeleteDialog": showDeleteDialog.checked - }) - ); - - // Collections view switch - chrome.storage.sync.get( - { "listview": false }, - values => - { - if (values?.listview) - pane.setAttribute("listview", ""); - } - ); - document.querySelectorAll(".listviewSwitch").forEach(i => - { - i.onclick = (args) => - { - if (args.currentTarget.classList[1] == "list") - { - pane.setAttribute("listview", ""); - chrome.storage.sync.set({ "listview": true }); - } - else - { - pane.removeAttribute("listview"); - chrome.storage.sync.set({ "listview": false }); - } - } - }); - chrome.storage.onChanged.addListener((changes, namespace) => - { - if (namespace == 'sync') - for (key in changes) - if (key === 'listview') - if (changes[key].newValue) - pane.setAttribute("listview", ""); - else - pane.removeAttribute("listview"); - }); - - document.querySelectorAll(".tabsAside.pane > header nav button").forEach(i => - i.onclick = () => - { - if (i.hasAttribute("feedback-button")) - { - if (chrome.runtime.getManifest()["update_url"] && chrome.runtime.getManifest()["update_url"].includes("edge.microsoft.com")) - window.open("https://microsoftedge.microsoft.com/addons/detail/tabs-aside/kmnblllmalkiapkfknnlpobmjjdnlhnd", "_blank") - else - window.open("https://chrome.google.com/webstore/detail/tabs-aside/mgmjbodjgijnebfgohlnjkegdpbdjgin", "_blank") - } - else - window.open(i.value, "_blank"); - }); - - // Showing changelog badge if updated - chrome.storage.local.get({ "showUpdateBadge": false }, values => - { - if (values.showUpdateBadge) - { - pane.setAttribute("updated", ""); - let settingsButton = document.querySelector("header .btn.more"); - settingsButton.addEventListener("focusout", () => - { - if (!pane.hasAttribute("updated")) - return; - pane.removeAttribute("updated"); - chrome.storage.local.set({ "showUpdateBadge": false }); - }); - } - }); - - chrome.runtime.sendMessage({ command: "loadData" }, ({ collections, thumbnails }) => - ReloadCollections(collections, thumbnails)); - - chrome.runtime.onMessage.addListener((message) => - { - switch (message.command) - { - case "reloadCollections": - ReloadCollections(message.collections, message.thumbnails); - break; - } - }); - - setTimeout(() => pane.setAttribute("opened", ""), 100); -} - -function UpdateLocale() -{ - document.querySelectorAll("*[loc]").forEach(i => i.textContent = chrome.i18n.getMessage(i.getAttribute("loc"))); - document.querySelectorAll("*[loc_alt]").forEach(i => i.title = chrome.i18n.getMessage(i.getAttribute("loc_alt"))); - - var swapActionsLabel = document.querySelector("span[loc=swapIconAction]"); - chrome.runtime.sendMessage({ command: "getShortcuts" }, (shortcuts) => - swapActionsLabel.textContent = swapActionsLabel.textContent.replace("%TOGGLE_SHORTCUT%", shortcuts.filter(i => i.name == "toggle-pane")[0].shortcut) - ); -} - - -function ReloadCollections(collections, thumbnails) -{ - document.querySelector(".tabsAside section h2").removeAttribute("hidden"); - document.querySelectorAll(".tabsAside section > div").forEach(i => i.remove()); - - for (var collection of Object.values(collections).reverse()) - AddCollection(collection, thumbnails); -} - -function AddCollection(collection, thumbnails) -{ - var list = document.querySelector(".tabsAside section"); - list.querySelector("h2").setAttribute("hidden", ""); - - var rawTabs = ""; - - for (var i = 0; i < collection.links.length; i++) - rawTabs += - "
" + - "
" + - "
" + - "" + collection.titles[i] + "" + - "" + - "
" + - ""; - - list.innerHTML += - "
" + - "
" + - "" + - "Restore tabs" + - "
" + - "" + - "" + - "
" + - "" + - "" + collection.links.length + " " + chrome.i18n.getMessage("tabs") +"" + - "
" + - - "
" + rawTabs + "
" + - "
"; - - UpdateLocale(); - - list.querySelectorAll("input").forEach(i => - i.addEventListener("focusout",(event) => RenameCollection(i.parentElement.parentElement, event.target.value))); - - list.querySelectorAll(".restoreCollection").forEach(i => - i.onclick = () => RestoreTabs(i.parentElement.parentElement)); - - list.querySelectorAll(".restoreCollection.noDelete").forEach(i => - i.onclick = () => RestoreTabs(i.parentElement.parentElement.parentElement.parentElement, false)); - - list.querySelectorAll(".set > div").forEach(i => - i.onclick = (args) => - { - if (args.target.localName != "button") - chrome.runtime.sendMessage( - { - command: "openTab", - url: i.getAttribute("value") - } - ); - }); - - document.querySelectorAll(".header .btn.remove").forEach(i => - i.onclick = () => RemoveTabs(i.parentElement.parentElement)); - - document.querySelectorAll(".set .btn.remove").forEach(i => - i.onclick = () => - RemoveOneTab(i.parentElement.parentElement)); -} - -function SetTabsAside() -{ - chrome.runtime.sendMessage({ command: "saveTabs" }); -} - -function RenameCollection(collectionData, name) -{ - chrome.runtime.sendMessage( - { - command: "renameCollection", - newName: name, - collectionKey: collectionData.id - }); -} - -function RestoreTabs(collectionData, removeCollection = true) -{ - chrome.runtime.sendMessage( - { - command: "restoreTabs", - removeCollection: removeCollection, - collectionKey: collectionData.id - }, - () => - { - if (removeCollection) - RemoveCollectionElement(collectionData); - } - ); -} - -function RemoveTabs(collectionData) -{ - chrome.storage.sync.get({ "showDeleteDialog": true }, values => - { - if (values.showDeleteDialog && !confirm(chrome.i18n.getMessage("removeCollectionConfirm"))) - return; - - chrome.runtime.sendMessage( - { - command: "deleteTabs", - collectionKey: collectionData.id - }, - () => RemoveCollectionElement(collectionData) - ); - }); -} - -function RemoveOneTab(tabData) -{ - chrome.storage.sync.get({ "showDeleteDialog": true }, values => - { - if (values.showDeleteDialog && !confirm(chrome.i18n.getMessage("removeTabConfirm"))) - return; - - chrome.runtime.sendMessage( - { - command: "removeTab", - collectionKey: tabData.parentElement.parentElement.id, - tabIndex: Array.prototype.slice.call(tabData.parentElement.children).indexOf(tabData) - }, - () => - { - tabData.parentElement.previousElementSibling.querySelector("small").textContent = (tabData.parentElement.children.length - 1) + " " + chrome.i18n.getMessage("tabs"); - if (tabData.parentElement.children.length < 2) - { - RemoveElement(tabData.parentElement.parentElement); - if (document.querySelector("tabsAside.pane > section").children.length < 2) - setTimeout(() => document.querySelector(".tabsAside.pane > section > h2").removeAttribute("hidden"), 250); - } - else - RemoveElement(tabData); - }); - }); -} - -function RemoveElement(el) -{ - el.style.opacity = 0; - setTimeout(() => el.remove(), 200); -} - -function RemoveCollectionElement(el) -{ - if (el.parentElement.children.length < 3) - setTimeout(() => document.querySelector(".tabsAside.pane > section > h2").removeAttribute("hidden"), 250); - RemoveElement(el); -} \ No newline at end of file diff --git a/js/background.js b/js/background.js deleted file mode 100644 index 120a39f..0000000 --- a/js/background.js +++ /dev/null @@ -1,493 +0,0 @@ -//This variable is populated when the browser action icon is clicked, or a command is called (with a shortcut for example). -//We can't populate it later, as selected tabs get deselected on a click inside a tab. -var tabsToSave = []; - -var syncEnabled = true; //This variable controls whether to use the chrome sync storage, along with its size limitations, or the much larger chrome local storage. The option is currently not exposed to the users. -var collectionStorage = syncEnabled ? chrome.storage.sync : chrome.storage.local; - -//Get the tabs to save, either all the window or the selected tabs only, and pass them through a callback. -function GetTabsToSave (callback) -{ - chrome.tabs.query({ currentWindow: true }, (windowTabs) => - { - var highlightedTabs = windowTabs.filter(item => item.highlighted); - //If there are more than one selected tab in the window, we set only those aside. - // Otherwise, all the window's tabs get saved. - return callback((highlightedTabs.length > 1 ? highlightedTabs : windowTabs)); - }); - -} - -function TogglePane (tab) -{ - if (tab.url.startsWith("http") - && !tab.url.includes("chrome.google.com") - && !tab.url.includes("addons.mozilla.org") - && !tab.url.includes("microsoftedge.microsoft.com")) - { - chrome.tabs.executeScript(tab.id, - { - file: "js/aside-script.js", - allFrames: true, - runAt: "document_idle" - }); - } - else if (tab.url == chrome.runtime.getURL("TabsAside.html")) - chrome.tabs.remove(tab.id); - else - { - chrome.tabs.create( - { - url: chrome.extension.getURL("TabsAside.html"), - active: true - }, - (activeTab) => - chrome.tabs.onActivated.addListener(function TabsAsideCloser(activeInfo) - { - chrome.tabs.query({ url: chrome.extension.getURL("TabsAside.html") }, (result) => - { - if (result.length) - setTimeout(() => - { - result.forEach(i => - { - if (activeInfo.tabId != i.id) - chrome.tabs.remove(i.id); - }); - }, 200); - else chrome.tabs.onActivated.removeListener(TabsAsideCloser); - }); - })); - } -} - -function ProcessCommand (command) -{ - GetTabsToSave((returnedTabs) => - { - tabsToSave = returnedTabs; - switch(command) - { - case "set-aside": - SaveCollection(); - break; - case "toggle-pane": - chrome.tabs.query( - { - active: true, - currentWindow: true - }, - (tabs) => TogglePane(tabs[0]) - ) - break; - } - }); -} - -chrome.browserAction.onClicked.addListener((tab) => -{ - GetTabsToSave((returnedTabs) => - { - tabsToSave = returnedTabs; - - chrome.storage.sync.get({ "setAsideOnClick": false }, values => - { - if (values?.setAsideOnClick) - SaveCollection(); - else - TogglePane(tab); - }); - }); -}); - -collections = { }; -thumbnails = { }; - -/** - * Updates the thumbnail storage, then the collection synced storage. Calls the onSuccess callback when successful, and onFailure when failed. - * @param {Object} collectionsToUpdate An object containing one or more collections to be updated. By default, updates the whole "collections" item. - * @param {function} onSuccess A function without arguments, that will be called after the collections and thumbnails values are obtained, if collections are successfully updated - * @param {function} onFailure A function that will be called with the error, after the collections and thumbnails values are obtained, if collections are not successfully updated - */ -function UpdateStorages (collectionsToUpdate = collections, onSuccess = () => null, onFailure = (error) => { throw error.message; }) -{ - //The collections storage is updated after the thumbnail storage, so that the thumbnails are ready when the collections are updated. - chrome.storage.local.set({ "thumbnails": thumbnails }, - () => collectionStorage.set(CompressCollectionsStorage(collectionsToUpdate), - () => - { - if (!chrome.runtime.lastError) - onSuccess(); - else - onFailure(chrome.runtime.lastError); - }) - ); - //When the collection storage is updated, a listener set up below reacts and updates the collections global variable, so we do not need to update that variable here -} - -/** - * Use a compression mechanism to compress collections in an object, one by one. - * @param {Object} collectionsToCompress object of collections to compress - * @returns {Object} Object of compressed stringified collections. - */ -function CompressCollectionsStorage (collectionsToCompress) -{ - var compressedStorage = { }; - for (var [key, value] of Object.entries(collectionsToCompress)) //For each collection in the uncompressed collectionsToCompress - { - var cloneWithoutTimestamp = Object.assign({ }, value, { timestamp: null }); - compressedStorage[key] = LZUTF8.compress(JSON.stringify(cloneWithoutTimestamp), { outputEncoding: "StorageBinaryString" }); - } - return compressedStorage; -} - -/** - * Load and decompresses the thumbnails and collections global variables from the storage, updates the theme and eventually sends the collections and thumbnails to a callback - * @param {function} callback A function that will be called after the collections and thumbnails values are obtained. - * These collections and thumbnails are sent as a data={"collections":collections,"thumbnails":thumbnails} argument to the callback. - */ -function LoadStorages (callback = () => null) -{ - chrome.storage.local.get("thumbnails", values => - { - thumbnails = values?.thumbnails ?? { }; - collectionStorage.get(null, values => - { - collections = DecompressCollectionsStorage(values); - UpdateBadgeCounter(); - callback({ "collections": collections, "thumbnails": thumbnails }); - }); - }); -} - -/** - * Use a decompression mechanism to decompress stringified collections in an object, one by one. - * Ignores non collections items (items with a key not starting with "set_" - * @param {Object} compressedCollections object of stringified collections to decompress - * @returns {Object} Object of decompressed and parsed collections. - */ -function DecompressCollectionsStorage (compressedCollections) -{ - var decompressedStorage = { }; - for (var [key, value] of Object.entries(compressedCollections)) - { - if (!key.startsWith("set_")) - continue; - - decompressedStorage[key] = JSON.parse(LZUTF8.decompress(value, { inputEncoding: "StorageBinaryString" })); - decompressedStorage[key].timestamp = parseInt(key.substr(4)); - } - return decompressedStorage; -} - -/** - * Merges a provided collections array with older pre v2 collections, - * saving the result into the new post v2 storage, or into bookmarks on failure. - * Allows to preserve backward compatibility with the localStorage method of storing collections in pre v2 versions. - * @param {Object} collections The current collections object - */ -function MergePreV2Collections () -{ - if (localStorage.getItem("sets")) - { - console.log("Found pre-v2 data"); - var old_collections = JSON.parse(localStorage.getItem("sets")); - //Migrate thumbnails and icons to follow the new format . - old_collections.forEach(collection => - { - for (var i = 0; i < collection.links.length; i++) - thumbnails[collection.links[i]] = - { - "pageCapture": collection.thumbnails[i], - "iconUrl": collection.icons[i] - }; - - delete collection.thumbnails; - delete collection.icons; - - UpdateStorages({ ["set_" + collection.timestamp]: collection }, - () => null, - () => - { - SaveCollectionAsBookmarks(collection); - alert(chrome.i18n.getMessage("olderDataMigrationFailed")); - }); - }); - localStorage.removeItem("sets"); - } -} - -function SaveCollectionAsBookmarks (collection) -{ - //The id 1 is the browser's bookmark bar - chrome.bookmarks.create({ - "parentId": "1", - "title": "TabsAside " + (collection.name ?? new Date(collection.timestamp).toISOString()) - }, - (collectionFolder) => - { - for (var i = 0; i < collection.links.length; i++) - chrome.bookmarks.create( - { - "parentId": collectionFolder.id, - "title": collection.titles[i], - "url": collection.links[i] - }); - }); -} - -LoadStorages(MergePreV2Collections); - -chrome.storage.onChanged.addListener((changes, namespace) => -{ - if (namespace == "sync") - for (key in changes) - if (key.startsWith("set_")) - { - if (changes[key].newValue) - { - collections[key] = DecompressCollectionsStorage({ [key]: changes[key].newValue })[key]; - - } - else - delete collections[key]; - - UpdateBadgeCounter(); - chrome.runtime.sendMessage( - { - command: "reloadCollections", - collections: collections, - thumbnails: thumbnails - }); - } -}); - -var shortcuts; -chrome.commands.getAll((commands) => shortcuts = commands); - -chrome.commands.onCommand.addListener(ProcessCommand); -chrome.contextMenus.onClicked.addListener((info) => ProcessCommand(info.menuItemId)); - -chrome.runtime.onInstalled.addListener((updateInfo) => -{ - if (updateInfo.reason == "update" && updateInfo.previousVersion != chrome.runtime.getManifest()["version"]) - chrome.storage.local.set({ "showUpdateBadge": true }); - - // Adding context menu options, must be done on extension install and update, and probably chrome update as well. - chrome.contextMenus.create( - { - id: "toggle-pane", - contexts: ["browser_action"], - title: chrome.i18n.getMessage("togglePaneContext") - } - ); - chrome.contextMenus.create( - { - id: "set-aside", - contexts: ["browser_action"], - title: chrome.i18n.getMessage("setAside") - } - ); -}); - -//We receive a message from the pane aside-script, which means the tabsToSave are already assigned on message reception. -chrome.runtime.onMessage.addListener((message, sender, sendResponse) => -{ - switch (message.command) - { - case "openTab": - chrome.tabs.create({ url: message.url }); - break; - case "loadData": - LoadStorages(sendResponse); //Sends the collections as a response - return true; //Required to indicate the answer will be sent asynchronously https://developer.chrome.com/extensions/messaging - case "saveTabs": - SaveCollection(); - break; - case "restoreTabs": - RestoreCollection(message.collectionKey, message.removeCollection); - sendResponse(); - break; - case "deleteTabs": - DeleteCollection(message.collectionKey); - sendResponse(); - break; - case "removeTab": - RemoveTab(message.collectionKey, message.tabIndex); - sendResponse(); - break; - case "renameCollection": - collections[message.collectionKey].name = message.newName; - UpdateStorages({ [message.collectionKey]: collections[message.collectionKey] }); - break; - case "togglePane": - chrome.tabs.query( - { - active: true, - currentWindow: true - }, - (tabs) => TogglePane(tabs[0]) - ); - break; - case "getShortcuts": - sendResponse(shortcuts); - break; - } -}); - -// This function updates the extension's toolbar icon -function UpdateBadgeCounter () -{ - var collectionsLength = Object.keys(collections).length; - // Updating badge counter - chrome.browserAction.setBadgeText({ text: collectionsLength < 1 ? "" : collectionsLength.toString() }); - -} - -// Set current tabs aside -function SaveCollection () -{ - var tabs = tabsToSave.filter(i => i.url != chrome.runtime.getURL("TabsAside.html") && !i.pinned && !i.url.includes("//newtab") && !i.url.includes("about:blank") && !i.url.includes("about:home")); - - if (tabs.length < 1) - { - alert(chrome.i18n.getMessage("noTabsToSave")); - return; - } - - var collection = - { - timestamp: Date.now(), - tabsCount: tabs.length, - titles: tabs.map(tab => (tab.title ?? "").substr(0, 100)), - links: tabs.map(tab => tab.url ?? "") - }; - - tabs.forEach(tab => //For each tab to save, Add relevant thumbnails in the thumbnails object - { - thumbnails[tab.url] = - { - "pageCapture": sessionCaptures[tab.url] ?? thumbnails[tab.url]?.pageCapture, - "iconUrl": tab.favIconUrl - }; - }); - - UpdateStorages({["set_" + collection.timestamp]: collection}, () => - chrome.tabs.create({}, (tab) => - { - var newTabId = tab.id; - chrome.tabs.remove(tabsToSave.filter(i => !i.pinned && i.id != newTabId).map(tab => tab.id)); - }), - () => alert(chrome.i18n.getMessage("errorSavingTabs")) - ); -} - -function DeleteCollection (collectionKey) -{ - var deletedUrls = collections[collectionKey].links; - delete collections[collectionKey]; - ForEachUnusedUrl(deletedUrls, (url) => delete thumbnails[url]); //We delete the thumbnails that are not used in any other collection. - UpdateStorages({});//Updates the thumbnails storage only, by providing an empty "collectionsToUpdate" object. - collectionStorage.remove(collectionKey);//Remove the collection from the collectionstorage -} - -function RestoreCollection (collectionKey, removeCollection) -{ - collections[collectionKey].links.forEach(i => - { - chrome.tabs.create( - { - url: i, - active: false - }, - (createdTab) => - { - chrome.storage.sync.get({"loadOnRestore": true}, values => - { - if (!(values?.loadOnRestore)) - chrome.tabs.onUpdated.addListener(function DiscardTab (updatedTabId, changeInfo, updatedTab) - { - if (updatedTabId === createdTab.id) - { - chrome.tabs.onUpdated.removeListener(DiscardTab); - if (!updatedTab.active) - { - chrome.tabs.discard(updatedTabId); - } - } - }); - }); - }); - }); - - //We added new tabs by restoring a collection, so we refresh the array of tabs ready to be saved. - GetTabsToSave((returnedTabs) => - tabsToSave = returnedTabs); - - if (!removeCollection) - return; - - DeleteCollection(collectionKey); -} - -function RemoveTab (collectionKey, tabIndex) -{ - var set = collections[collectionKey]; - if (--set.tabsCount < 1) - { - DeleteCollection(collectionKey); - return; - } - - var urlToRemove = set.links[tabIndex]; - set.titles.splice(tabIndex, 1); - set.links.splice(tabIndex, 1); - - ForEachUnusedUrl([urlToRemove], (url) => delete thumbnails[url]); - UpdateStorages({[collectionKey]: set}); -} - -/** - * Execute a callback for each url in urlsToFilter that is not in any collection urls - * @param {Array} urlsToFilter array of urls to check - * @param {function} callback callback to execute on an url - */ -function ForEachUnusedUrl (urlsToFilter, callback) -{ - for (var i = 0; i < urlsToFilter.length; i++) // If the url of the tab n°i is not present among all the collections, we call the callback on it - if (!Object.values(collections).some(collection => collection.links.some(link => link == urlsToFilter[i]))) - callback(urlsToFilter[i]); -} - -// page Captures are not always used in a collection, so we keep them in a specific variable until a collection is saved. -var sessionCaptures = { }; - -function AppendThumbnail (tab) -{ - if (!tab.active || !tab.url.startsWith("http")) - return; - - chrome.tabs.captureVisibleTab( - { - format: "jpeg", - quality: 1 - }, - (image) => - { - if (!image) - { - console.log("Failed to retrieve thumbnail"); - return; - } - - console.log("Thumbnail retrieved"); - sessionCaptures[tab.url] = image; - } - ); -} - -chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => -{ - if (changeInfo.status == "complete") - AppendThumbnail(tab); -}); diff --git a/js/lib/lzutf8.min.js b/js/lib/lzutf8.min.js deleted file mode 100644 index f464837..0000000 --- a/js/lib/lzutf8.min.js +++ /dev/null @@ -1,11 +0,0 @@ -/*! - LZ-UTF8 v0.5.6 - - Copyright (c) 2018, Rotem Dan - Released under the MIT license. - - Build date: 2020-08-10 - - Please report any issue at https://github.com/rotemdan/lzutf8.js/issues -*/ -var IE10SubarrayBugPatcher,LZUTF8;!function(n){n.runningInNodeJS=function(){return"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node},n.runningInMainNodeJSModule=function(){return n.runningInNodeJS()&&require.main===module},n.commonJSAvailable=function(){return"object"==typeof module&&"object"==typeof module.exports},n.runningInWebWorker=function(){return"undefined"==typeof window&&"object"==typeof self&&"function"==typeof self.addEventListener&&"function"==typeof self.close},n.runningInNodeChildProcess=function(){return n.runningInNodeJS()&&"function"==typeof process.send},n.runningInNullOrigin=function(){return"object"==typeof window&&"object"==typeof window.location&&("http:"!==document.location.protocol&&"https:"!==document.location.protocol)},n.webWorkersAvailable=function(){return"function"==typeof Worker&&!n.runningInNullOrigin()&&(!n.runningInNodeJS()&&!(navigator&&navigator.userAgent&&0<=navigator.userAgent.indexOf("Android 4.3")))},n.log=function(e,t){void 0===t&&(t=!1),"object"==typeof console&&(console.log(e),t&&"object"==typeof document&&(document.body.innerHTML+=e+"
"))},n.createErrorMessage=function(e,t){if(void 0===t&&(t="Unhandled exception"),null==e)return t;if(t+=": ","object"==typeof e.content){if(n.runningInNodeJS())return t+e.content.stack;var r=JSON.stringify(e.content);return"{}"!==r?t+r:t+e.content}return"string"==typeof e.content?t+e.content:t+e},n.printExceptionAndStackTraceToConsole=function(e,t){void 0===t&&(t="Unhandled exception"),n.log(n.createErrorMessage(e,t))},n.getGlobalObject=function(){return"object"==typeof global?global:"object"==typeof window?window:"object"==typeof self?self:{}},n.toString=Object.prototype.toString,n.commonJSAvailable()&&(module.exports=n)}(LZUTF8||(LZUTF8={})),function(e){if("function"==typeof Uint8Array&&0!==new Uint8Array(1).subarray(1).byteLength){var t=function(e,t){var r=function(e,t,r){return e>>10)),this.appendCharCode(56320+(e-65536&1023))}},e.prototype.getOutputString=function(){return this.flushBufferToOutputString(),this.outputString},e.prototype.flushBufferToOutputString=function(){this.outputPosition===this.outputBufferCapacity?this.outputString+=String.fromCharCode.apply(null,this.outputBuffer):this.outputString+=String.fromCharCode.apply(null,this.outputBuffer.subarray(0,this.outputPosition)),this.outputPosition=0},e}();e.StringBuilder=t}(LZUTF8||(LZUTF8={})),function(o){var e=function(){function e(){this.restart()}return e.prototype.restart=function(){this.startTime=e.getTimestamp()},e.prototype.getElapsedTime=function(){return e.getTimestamp()-this.startTime},e.prototype.getElapsedTimeAndRestart=function(){var e=this.getElapsedTime();return this.restart(),e},e.prototype.logAndRestart=function(e,t){void 0===t&&(t=!0);var r=this.getElapsedTime(),n=e+": "+r.toFixed(3)+"ms";return o.log(n,t),this.restart(),r},e.getTimestamp=function(){return this.timestampFunc||this.createGlobalTimestampFunction(),this.timestampFunc()},e.getMicrosecondTimestamp=function(){return Math.floor(1e3*e.getTimestamp())},e.createGlobalTimestampFunction=function(){if("object"==typeof process&&"function"==typeof process.hrtime){var r=0;this.timestampFunc=function(){var e=process.hrtime(),t=1e3*e[0]+e[1]/1e6;return r+t},r=Date.now()-this.timestampFunc()}else if("object"==typeof chrome&&chrome.Interval){var e=Date.now(),t=new chrome.Interval;t.start(),this.timestampFunc=function(){return e+t.microseconds()/1e3}}else if("object"==typeof performance&&performance.now){var n=Date.now()-performance.now();this.timestampFunc=function(){return n+performance.now()}}else Date.now?this.timestampFunc=function(){return Date.now()}:this.timestampFunc=function(){return(new Date).getTime()}},e}();o.Timer=e}(LZUTF8||(LZUTF8={})),function(n){var e=function(){function e(e){void 0===e&&(e=!0),this.MinimumSequenceLength=4,this.MaximumSequenceLength=31,this.MaximumMatchDistance=32767,this.PrefixHashTableSize=65537,this.inputBufferStreamOffset=1,e&&"function"==typeof Uint32Array?this.prefixHashTable=new n.CompressorCustomHashTable(this.PrefixHashTableSize):this.prefixHashTable=new n.CompressorSimpleHashTable(this.PrefixHashTableSize)}return e.prototype.compressBlock=function(e){if(null==e)throw new TypeError("compressBlock: undefined or null input received");return"string"==typeof e&&(e=n.encodeUTF8(e)),e=n.BufferTools.convertToUint8ArrayIfNeeded(e),this.compressUtf8Block(e)},e.prototype.compressUtf8Block=function(e){if(!e||0==e.length)return new Uint8Array(0);var t=this.cropAndAddNewBytesToInputBuffer(e),r=this.inputBuffer,n=this.inputBuffer.length;this.outputBuffer=new Uint8Array(e.length);for(var o=this.outputBufferPosition=0,i=t;in-this.MinimumSequenceLength)s||this.outputRawByte(u);else{var a=this.getBucketIndexForPrefix(i);if(!s){var c=this.findLongestMatch(i,a);null!=c&&(this.outputPointerBytes(c.length,c.distance),o=i+c.length,s=!0)}s||this.outputRawByte(u);var f=this.inputBufferStreamOffset+i;this.prefixHashTable.addValueToBucket(a,f)}}return this.outputBuffer.subarray(0,this.outputBufferPosition)},e.prototype.findLongestMatch=function(e,t){var r=this.prefixHashTable.getArraySegmentForBucketIndex(t,this.reusableArraySegmentObject);if(null==r)return null;for(var n,o=this.inputBuffer,i=0,u=0;u>>1):i,a>this.MaximumMatchDistance||c>=this.MaximumSequenceLength||e+c>=o.length)break;if(o[s+c]===o[e+c])for(var f=0;;f++){if(e+f===o.length||o[s+f]!==o[e+f]){c>>8),this.outputRawByte(255&t))},e.prototype.outputRawByte=function(e){this.outputBuffer[this.outputBufferPosition++]=e},e.prototype.cropAndAddNewBytesToInputBuffer=function(e){if(void 0===this.inputBuffer)return this.inputBuffer=e,0;var t=Math.min(this.inputBuffer.length,this.MaximumMatchDistance),r=this.inputBuffer.length-t;return this.inputBuffer=n.CompressionCommon.getCroppedAndAppendedByteArray(this.inputBuffer,r,t,e),this.inputBufferStreamOffset+=r,t},e}();n.Compressor=e}(LZUTF8||(LZUTF8={})),function(s){var e=function(){function e(e){this.minimumBucketCapacity=4,this.maximumBucketCapacity=64,this.bucketLocators=new Uint32Array(2*e),this.storage=new Uint32Array(2*e),this.storageIndex=1}return e.prototype.addValueToBucket=function(e,t){e<<=1,this.storageIndex>=this.storage.length>>>1&&this.compact();var r,n=this.bucketLocators[e];if(0===n)n=this.storageIndex,r=1,this.storage[this.storageIndex]=t,this.storageIndex+=this.minimumBucketCapacity;else{(r=this.bucketLocators[e+1])===this.maximumBucketCapacity-1&&(r=this.truncateBucketToNewerElements(n,r,this.maximumBucketCapacity/2));var o=n+r;0===this.storage[o]?(this.storage[o]=t,o===this.storageIndex&&(this.storageIndex+=r)):(s.ArrayTools.copyElements(this.storage,n,this.storage,this.storageIndex,r),n=this.storageIndex,this.storageIndex+=r,this.storage[this.storageIndex++]=t,this.storageIndex+=r),r++}this.bucketLocators[e]=n,this.bucketLocators[e+1]=r},e.prototype.truncateBucketToNewerElements=function(e,t,r){var n=e+t-r;return s.ArrayTools.copyElements(this.storage,n,this.storage,e,r),s.ArrayTools.zeroElements(this.storage,e+r,t-r),r},e.prototype.compact=function(){var e=this.bucketLocators,t=this.storage;this.bucketLocators=new Uint32Array(this.bucketLocators.length),this.storageIndex=1;for(var r=0;r>>6==3){var i=o>>>5;if(r==n-1||r==n-2&&7==i){this.inputBufferRemainder=e.subarray(r);break}if(e[r+1]>>>7==1)this.outputByte(o);else{var u=31&o,s=void 0;6==i?(s=e[r+1],r+=1):(s=e[r+1]<<8|e[r+2],r+=2);for(var a=this.outputPosition-s,c=0;c>>3==30||e<3&&t>>>4==14||e<2&&t>>>5==6)return this.outputBufferRemainder=this.outputBuffer.subarray(this.outputPosition-e,this.outputPosition),void(this.outputPosition-=e)}},e}();f.Decompressor=e}(LZUTF8||(LZUTF8={})),function(s){var e,t,a,c;e=s.Encoding||(s.Encoding={}),t=e.Base64||(e.Base64={}),a=new Uint8Array([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47]),c=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,255,255,255,255]),t.encode=function(e){return e&&0!=e.length?s.runningInNodeJS()?s.BufferTools.uint8ArrayToBuffer(e).toString("base64"):t.encodeWithJS(e):""},t.decode=function(e){return e?s.runningInNodeJS()?s.BufferTools.bufferToUint8Array(new Buffer(e,"base64")):t.decodeWithJS(e):new Uint8Array(0)},t.encodeWithJS=function(e,t){if(void 0===t&&(t=!0),!e||0==e.length)return"";for(var r,n=a,o=new s.StringBuilder,i=0,u=e.length;i>>18&63]),o.appendCharCode(n[r>>>12&63]),o.appendCharCode(n[r>>>6&63]),o.appendCharCode(n[63&r]),r=0):i===u-2?(r=e[i]<<16|e[i+1]<<8,o.appendCharCode(n[r>>>18&63]),o.appendCharCode(n[r>>>12&63]),o.appendCharCode(n[r>>>6&63]),t&&o.appendCharCode(61)):i===u-1&&(r=e[i]<<16,o.appendCharCode(n[r>>>18&63]),o.appendCharCode(n[r>>>12&63]),t&&(o.appendCharCode(61),o.appendCharCode(61)));return o.getOutputString()},t.decodeWithJS=function(e,t){if(!e||0==e.length)return new Uint8Array(0);var r=e.length%4;if(1===r)throw new Error("Invalid Base64 string: length % 4 == 1");2===r?e+="==":3===r&&(e+="="),t||(t=new Uint8Array(e.length));for(var n=0,o=e.length,i=0;i>>16&255,t[n++]=u>>>8&255,t[n++]=255&u}return 61==e.charCodeAt(o-1)&&n--,61==e.charCodeAt(o-2)&&n--,t.subarray(0,n)}}(LZUTF8||(LZUTF8={})),function(s){var e,t;e=s.Encoding||(s.Encoding={}),(t=e.BinaryString||(e.BinaryString={})).encode=function(e){if(null==e)throw new TypeError("BinaryString.encode: undefined or null input received");if(0===e.length)return"";for(var t=e.length,r=new s.StringBuilder,n=0,o=1,i=0;i>>o),n=u&(1<>>15-i,r[n++]=t>>>8,r[n++]=255&t,o=s&(1<<15-i)-1),15==i?i=0:i+=1)}return r.subarray(0,n)}}(LZUTF8||(LZUTF8={})),function(e){var t,r;t=e.Encoding||(e.Encoding={}),(r=t.CodePoint||(t.CodePoint={})).encodeFromString=function(e,t){var r=e.charCodeAt(t);if(r<55296||56319>>10),56320+(e-65536&1023));throw new Error("getStringFromUnicodeCodePoint: A code point of "+e+" cannot be encoded in UTF-16")}}(LZUTF8||(LZUTF8={})),function(e){var t,r,n;t=e.Encoding||(e.Encoding={}),r=t.DecimalString||(t.DecimalString={}),n=["000","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","053","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"],r.encode=function(e){for(var t=[],r=0;r>>6,t[r++]=128|63&o;else if(o<=65535)t[r++]=224|o>>>12,t[r++]=128|o>>>6&63,t[r++]=128|63&o;else{if(!(o<=1114111))throw new Error("Invalid UTF-16 string: Encountered a character unsupported by UTF-8/16 (RFC 3629)");t[r++]=240|o>>>18,t[r++]=128|o>>>12&63,t[r++]=128|o>>>6&63,t[r++]=128|63&o,n++}}return t.subarray(0,r)},t.decodeWithJS=function(e,t,r){if(void 0===t&&(t=0),!e||0==e.length)return"";void 0===r&&(r=e.length);for(var n,o,i=new a.StringBuilder,u=t,s=r;u>>7==0)n=o,u+=1;else if(o>>>5==6){if(r<=u+1)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+u);n=(31&o)<<6|63&e[u+1],u+=2}else if(o>>>4==14){if(r<=u+2)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+u);n=(15&o)<<12|(63&e[u+1])<<6|63&e[u+2],u+=3}else{if(o>>>3!=30)throw new Error("Invalid UTF-8 stream: An invalid lead byte value encountered at position "+u);if(r<=u+3)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+u);n=(7&o)<<18|(63&e[u+1])<<12|(63&e[u+2])<<6|63&e[u+3],u+=4}i.appendCodePoint(n)}return i.getOutputString()},t.createNativeTextEncoderAndDecoderIfAvailable=function(){return!!r||"function"==typeof TextEncoder&&(r=new TextEncoder("utf-8"),n=new TextDecoder("utf-8"),!0)}}(LZUTF8||(LZUTF8={})),function(o){o.compress=function(e,t){if(void 0===t&&(t={}),null==e)throw new TypeError("compress: undefined or null input received");var r=o.CompressionCommon.detectCompressionSourceEncoding(e);t=o.ObjectTools.override({inputEncoding:r,outputEncoding:"ByteArray"},t);var n=(new o.Compressor).compressBlock(e);return o.CompressionCommon.encodeCompressedBytes(n,t.outputEncoding)},o.decompress=function(e,t){if(void 0===t&&(t={}),null==e)throw new TypeError("decompress: undefined or null input received");t=o.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String"},t);var r=o.CompressionCommon.decodeCompressedBytes(e,t.inputEncoding),n=(new o.Decompressor).decompressBlock(r);return o.CompressionCommon.encodeDecompressedBytes(n,t.outputEncoding)},o.compressAsync=function(e,t,r){var n;null==r&&(r=function(){});try{n=o.CompressionCommon.detectCompressionSourceEncoding(e)}catch(e){return void r(void 0,e)}t=o.ObjectTools.override({inputEncoding:n,outputEncoding:"ByteArray",useWebWorker:!0,blockSize:65536},t),o.enqueueImmediate(function(){t.useWebWorker&&o.WebWorker.createGlobalWorkerIfNeeded()?o.WebWorker.compressAsync(e,t,r):o.AsyncCompressor.compressAsync(e,t,r)})},o.decompressAsync=function(e,t,r){if(null==r&&(r=function(){}),null!=e){t=o.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String",useWebWorker:!0,blockSize:65536},t);var n=o.BufferTools.convertToUint8ArrayIfNeeded(e);o.EventLoop.enqueueImmediate(function(){t.useWebWorker&&o.WebWorker.createGlobalWorkerIfNeeded()?o.WebWorker.decompressAsync(n,t,r):o.AsyncDecompressor.decompressAsync(e,t,r)})}else r(void 0,new TypeError("decompressAsync: undefined or null input received"))},o.createCompressionStream=function(){return o.AsyncCompressor.createCompressionStream()},o.createDecompressionStream=function(){return o.AsyncDecompressor.createDecompressionStream()},o.encodeUTF8=function(e){return o.Encoding.UTF8.encode(e)},o.decodeUTF8=function(e){return o.Encoding.UTF8.decode(e)},o.encodeBase64=function(e){return o.Encoding.Base64.encode(e)},o.decodeBase64=function(e){return o.Encoding.Base64.decode(e)},o.encodeBinaryString=function(e){return o.Encoding.BinaryString.encode(e)},o.decodeBinaryString=function(e){return o.Encoding.BinaryString.decode(e)},o.encodeStorageBinaryString=function(e){return o.Encoding.StorageBinaryString.encode(e)},o.decodeStorageBinaryString=function(e){return o.Encoding.StorageBinaryString.decode(e)}}(LZUTF8||(LZUTF8={})); \ No newline at end of file diff --git a/manifest.json b/manifest.json deleted file mode 100644 index fd894ab..0000000 --- a/manifest.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "__MSG_name__", - "version": "2.0.6", - "manifest_version": 2, - "description": "__MSG_description__", - "author": "__MSG_author__", - "default_locale": "en", - - "permissions": - [ - "tabs", - "bookmarks", - "unlimitedStorage", - "storage", - "", - "contextMenus" - ], - - "icons": - { - "128": "icons/icon-128.png", - "48": "icons/icon-48.png", - "32": "icons/icon-32.png", - "16": "icons/icon-16.png" - }, - "browser_action": - { - "default_icon": "icons/icon-32.png" - }, - "web_accessible_resources": [ "*" ], - - "background": - { - "scripts": [ "js/lib/lzutf8.min.js","js/background.js" ], - "persistent": false - }, - - "commands": - { - "set-aside": - { - "description": "__MSG_setAside__", - "suggested_key": - { - "default": "Shift+Alt+Left", - "mac": "MacCtrl+T" - } - }, - "toggle-pane": - { - "description": "__MSG_togglePaneContext__", - "suggested_key": - { - "default": "Alt+P", - "mac": "Command+Shift+P" - } - } - }, - "browser_specific_settings": - { - "gecko": - { - "id": "tabsaside@xfox111.net", - "strict_min_version": "58.0" - } - } -}