├── .github ├── ISSUE_TEMPLATE │ └── create-a-pr.md └── pull_request_template.md ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── INSTALLATION_GUIDE.md ├── LICENSE ├── README-spanish.md ├── README.md ├── Screenshoot-1.png ├── Screenshoot-2.png ├── Ultra TabSaver Extension ├── Base.lproj │ └── SafariExtensionViewController.xib ├── Info.plist ├── Persistance.swift ├── SafariExtensionHandler.swift ├── SafariExtensionViewController.swift ├── TextFieldRename.png ├── ToolbarItemIcon.pdf ├── ToolbarItemIcon2.png ├── Ultra_TabSaver_Extension.entitlements └── script.js ├── Ultra TabSaver.xcodeproj └── project.pbxproj ├── Ultra TabSaver ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── unnamed-1.png │ │ └── unnamed-3.png │ └── Contents.json ├── Base.lproj │ └── Main.storyboard ├── Info.plist ├── Ultra_TabSaver.entitlements └── ViewController.swift ├── Ultra-TabSaver.gif └── UltraTabSaver.png /.github/ISSUE_TEMPLATE/create-a-pr.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Create a PR 3 | about: Use this template to create a pull Request 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | *IMPORTANT:* Please do not create a Pull Request without creating an issue first. 11 | 12 | - All the PR must be to the Branch: develop - 13 | 14 | Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request. 15 | 16 | Please provide enough information so that others can review your pull request: 17 | 18 | Explain the details for making this change. What existing problem does the pull request solve? 19 | 20 | [ ] Add feature 21 | [ ] Improve performance 22 | [ ] Fix bug 23 | [ ] Fix vulnerability 24 | [ ] Enhance docummentation 25 | [ ] Other 26 | [ ] Test plan (required) 27 | 28 | Demonstrate the code is solid. Example: The exact user case that you ran and their result, screenshots / videos if the pull request changes UI. 29 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | **IMPORTANT: Please do not create a Pull Request without creating an issue first.** 4 | 5 | **All the PR must be to the Branch: develop** 6 | 7 | *Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.* 8 | 9 | Please provide enough information so that others can review your pull request: 10 | 11 | Explain the **details** for making this change. What existing problem does the pull request solve? 12 | - [ ] Add feature 13 | - [ ] Improve performance 14 | - [ ] Fix bug 15 | - [ ] Fix vulnerability 16 | - [ ] Enhance docummentation 17 | - [ ] Other 18 | 19 | **Test plan (required)** 20 | 21 | Demonstrate the code is solid. Example: The exact user case that you ran and their result, screenshots / videos if the pull request changes UI. 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Database 6 | .DS_Store 7 | UserInterface.xuserstate 8 | ## User settings 9 | xcuserdata/ 10 | 11 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 12 | *.xcscmblueprint 13 | *.xccheckout 14 | 15 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 16 | build/ 17 | DerivedData/ 18 | *.moved-aside 19 | *.pbxuser 20 | !default.pbxuser 21 | *.mode1v3 22 | !default.mode1v3 23 | *.mode2v3 24 | !default.mode2v3 25 | *.perspectivev3 26 | !default.perspectivev3 27 | 28 | # Other 29 | *.moved-aside 30 | *.xuserstate 31 | 32 | ## Obj-C/Swift specific 33 | *.hmap 34 | 35 | ## App packaging 36 | *.ipa 37 | *.dSYM.zip 38 | *.dSYM 39 | 40 | ## Playgrounds 41 | timeline.xctimeline 42 | playground.xcworkspace 43 | 44 | # Swift Package Manager 45 | # 46 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 47 | # Packages/ 48 | # Package.pins 49 | # Package.resolved 50 | #*.xcodeproj 51 | *.xcodeproj/* 52 | !*.xcodeproj/project.pbxproj 53 | !*.xcodeproj/xcshareddata 54 | !*.xworkspace/contents.xcworkspacedata 55 | 56 | # 57 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 58 | # hence it is not needed unless you have added a package configuration file to your project 59 | # .swiftpm 60 | 61 | .build/ 62 | 63 | # CocoaPods 64 | # 65 | # We recommend against adding the Pods directory to your .gitignore. However 66 | # you should judge for yourself, the pros and cons are mentioned at: 67 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 68 | # 69 | # Pods/ 70 | # 71 | # Add this line if you want to avoid checking in source code from the Xcode workspace 72 | # *.xcworkspace 73 | 74 | # Carthage 75 | # 76 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 77 | # Carthage/Checkouts 78 | 79 | Carthage/Build/ 80 | 81 | # Accio dependency management 82 | Dependencies/ 83 | .accio/ 84 | 85 | ## 86 | 87 | # fastlane 88 | # 89 | # It is recommended to not store the screenshots in the git repo. 90 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 91 | # For more information about the recommended setup visit: 92 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 93 | 94 | fastlane/report.xml 95 | fastlane/Preview.html 96 | fastlane/screenshots/**/*.png 97 | fastlane/test_output 98 | 99 | # Code Injection 100 | # 101 | # After new code Injection tools there's a generated folder /iOSInjectionProject 102 | # https://github.com/johnno1962/injectionforxcode 103 | 104 | iOSInjectionProject/ 105 | 106 | #GCC Path 107 | /*.gcno 108 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Citizen Code of Conduct 2 | 3 | ## 1. Purpose 4 | 5 | A primary goal of Ultra Tab Saver is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof). 6 | 7 | This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior. 8 | 9 | We invite all those who participate in Ultra Tab Saver to help us create safe and positive experiences for everyone. 10 | 11 | ## 2. Open [Source/Culture/Tech] Citizenship 12 | 13 | A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community. 14 | 15 | Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society. 16 | 17 | If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know. 18 | 19 | ## 3. Expected Behavior 20 | 21 | The following behaviors are expected and requested of all community members: 22 | 23 | * Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community. 24 | * Exercise consideration and respect in your speech and actions. 25 | * Attempt collaboration before conflict. 26 | * Refrain from demeaning, discriminatory, or harassing behavior and speech. 27 | * Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential. 28 | * Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations. 29 | 30 | ## 4. Unacceptable Behavior 31 | 32 | The following behaviors are considered harassment and are unacceptable within our community: 33 | 34 | * Violence, threats of violence or violent language directed against another person. 35 | * Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language. 36 | * Posting or displaying sexually explicit or violent material. 37 | * Posting or threatening to post other people's personally identifying information ("doxing"). 38 | * Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability. 39 | * Inappropriate photography or recording. 40 | * Inappropriate physical contact. You should have someone's consent before touching them. 41 | * Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances. 42 | * Deliberate intimidation, stalking or following (online or in person). 43 | * Advocating for, or encouraging, any of the above behavior. 44 | * Sustained disruption of community events, including talks and presentations. 45 | 46 | ## 5. Consequences of Unacceptable Behavior 47 | 48 | Unacceptable behavior from any community member will not be tolerated. 49 | 50 | Anyone asked to stop unacceptable behavior is expected to comply immediately. 51 | 52 | If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event). 53 | 54 | ## 6. Reporting Guidelines 55 | 56 | If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. 57 | 58 | Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress. 59 | 60 | ## 7. Addressing Grievances 61 | 62 | If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Swift-open-source with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. 63 | 64 | 65 | ## 8. Scope 66 | 67 | We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business. 68 | 69 | This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members. 70 | 71 | 72 | ## 9. License and attribution 73 | 74 | The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/). 75 | 76 | Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy). 77 | 78 | _Revision 2.3. Posted 6 March 2017._ 79 | 80 | _Revision 2.2. Posted 4 February 2016._ 81 | 82 | _Revision 2.1. Posted 23 June 2014._ 83 | 84 | _Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._ 85 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | When contributing to this repository, please first discuss the change you wish to make via issue 4 | Please note we have a code of conduct, please follow it in all your interactions with the project. 5 | 6 | ## Pull Request Process 7 | 8 | 1. Open a issue. 9 | 2. Explain the **details** for making this change. What existing problem does the pull request solve? 10 | - [ ] Add feature 11 | - [ ] Improve performance 12 | - [ ] Fix bug 13 | - [ ] Fix vulnerability 14 | - [ ] Enhance docummentation 15 | - [ ] Other 16 | 3. Test plan (required) 17 | Demonstrate the code is solid. Example: The exact user case that you ran and their result, screenshots / videos if the pull request changes UI. 18 | 19 | 20 | ## Code of Conduct 21 | 22 | ### Our Pledge 23 | 24 | In the interest of fostering an open and welcoming environment, we as 25 | contributors and maintainers pledge to making participation in our project and 26 | our community a harassment-free experience for everyone, regardless of age, body 27 | size, disability, ethnicity, gender identity and expression, level of experience, 28 | nationality, personal appearance, race, religion, or sexual identity and 29 | orientation. 30 | 31 | ### Our Standards 32 | 33 | Examples of behavior that contributes to creating a positive environment 34 | include: 35 | 36 | * Using welcoming and inclusive language 37 | * Being respectful of differing viewpoints and experiences 38 | * Gracefully accepting constructive criticism 39 | * Focusing on what is best for the community 40 | * Showing empathy towards other community members 41 | 42 | ### Attribution 43 | 44 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 45 | available at [http://contributor-covenant.org/version/1/4][version] 46 | 47 | [homepage]: http://contributor-covenant.org 48 | [version]: http://contributor-covenant.org/version/1/4/ 49 | -------------------------------------------------------------------------------- /INSTALLATION_GUIDE.md: -------------------------------------------------------------------------------- 1 | 2 | # Follow this steps to Install and use Ultra TabSaver 3 | 4 | ### 1 Download this repo 5 | 6 | - 🐑 🐑 Clone this repo to your local machine using this command in your console: `git clone https://github.com/morsamatias/UltraTabSaver.git` or click code ->Download Zip 7 | ### 2 Open The project in Xcode 8 | - 📂 Search in the folder you clone/downloaded for the file `Ultra TabSaver.xcodeproj` and open it with Xcode 9 | 10 | ### 3 Sign it 11 | - 🖌 Click in the main project -> Targets -> Signing and Capabilities: 12 | 13 | - #### Choose **Automatically manage signing** 14 | - #### Select your Team 15 | - #### In Signing Certificate select **Development** 16 | 17 | Main Project 18 | 19 | #### Then do the same with the extension. (Choose Automatically manage signing, Select your Team, In Signing Certificate select Development) 20 | 21 | Extension signing 22 | 23 | 24 | ### 4 Archive 25 | - This process will create the App file. 26 | 27 | Archive 28 | 29 | ***CLICK DISTRIBUTE*** 30 | 31 | Distribute 32 | 33 | ***SELECT COPY APP*** 34 | 35 | Copy App 36 | 37 | ***SELECT WHERE YOU WANT TO CREATE THE APP*** 38 | 39 | ### 5 Open the App 40 | - You will see this 41 | 42 | Open the app 43 | 44 | #### Note: If when you click in `Open in Safari Extension Preferences` you dont se the extension you need to: 45 | - Open Safari ->Extensions -> Allow extensions without signing. 46 | - And then restart Safari and Open the app. 47 | 48 | ### 6 Grant Permission 49 | 50 | Install 51 | Installed 52 | 53 | #### Note: If you dont see the extension icon after give it Permissions you need to restart Safari 54 | 55 | ### Enjoy! 😁 56 | Working 57 | 58 | ### If you see this the app is Installed 59 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README-spanish.md: -------------------------------------------------------------------------------- 1 |

2 |
3 |
4 | Logo UTN
5 |
6 |
7 | Ultra TabSaver 8 |
9 | El mejor Tab Manager para Safari 10 |
11 |
12 | 13 |

14 | 15 | ![](Ultra-TabSaver.gif) 16 | 17 | ## Indice 18 | - [Update](#update) 19 | - [Funcionalidades](#funcionalidades) 20 | - [Branches](#branches) 21 | - [como usarlo](#como-usarlo) 22 | - [como funciona?](#como-funciona) 23 | - [Como ejecutarlo?](#como-ejecutarlo) 24 | - [Lista de mejoras](#lista-de-mejoras) 25 | - [Contribuir](#contributing) 26 | - [Licencia](#licencia) 27 | - [Gracias especiales](#gracias-especiales) 28 | - **[README in english](README.md)** 29 | 30 | ## Update 31 | - **[Video Promocional](https://www.youtube.com/watch?v=PNPAnn-jOCE)** 32 | - **Gracias a todos por el feedback, voy a subir esta extension al AppStore en cuanto pueda** 33 | 34 | ## Funcionalidades 35 | Esta extension agrega 3 caracterisitcas principales a Safari 36 | * Salvar la pestaña actual 37 | * Salvar todas las pestañas en una ventana 38 | * Obtener una pestaña o un grupo de pestañas. En especifico para cada grupo de pestañas se agregan estas funcionalidades: 39 | * Abrir todas las pestañas con un solo click 40 | * Renombrarlo 41 | * Copiar todas las URL's 42 | * Agregar una URL 43 | * Eliminar el grupo 44 | * Eliminar una URL dentro de un grupo 45 | 46 | ## Branches 47 | - Ultima version estable -> [master](https://github.com/Swift-open-source/UltraTabSaver/tree/master) 48 | - Version con funciones experimentales features -> [develop](https://github.com/Swift-open-source/UltraTabSaver/tree/develop) 49 | 50 | 51 | ## Como usarlo? 52 | Al clickar el icono de la extension o hacer click derecho en cualquier parte del sitio web abrira este menu 53 | * Save the current tab (salva la pestaña actual) 54 | * Save all the tabs in a window (Salva toas las pestañas de la ventana seleccionada) 55 | * Get All Tabs. (Al hacer click izquierdo en un grupo de pestañas se abriran todas, al hacer click derecho en un grupo de pestalas 56 | se abrira este menu) 57 | * Copy to clipboard (se copian todas las URL's al portapapeles) 58 | * Add url to the Tab Group. (abre un Textfield para ingresar una nueva URL) 59 | * Delete a Tab Group. (Elimina un grupo de pestañas) 60 | * Rename the Tab group (*Esta opcion es accesible solo clickeando desde el icono de la extension -> Get all Tabs -> Right click -> Rename) 61 | * **Al hacer click derecho en una URL se puede acceder a las funcionalidades copiar al portapapeles y eliminar)** 62 | 63 | 64 | ## Como funciona? 65 | Cuando seleccionas Save Tab/Save All tabs la extension obtiene las URL correspondientes y las guarda en NSUserDefaults. 66 | Todas las URL son guardadas con una `key`, esa `key` es el nombre del grupo, por eso no pueden haber dos grupos con el mismo nombre. 67 | 68 | ## Como ejecutarlo? 69 | Par compilar esta extension vas a necesitar caambiar las preferencias de Xcode para firmarlo utilizando tu propio sertificado, o no firmarlo. Para hacer eso debes ir a Xcode -> Targets ->UltraTabSaver Extension -> Signing certificate-> Develop o Sign to Run locally 70 | En caso de no firmalo, deberas cambiar las preferencias de extensiones de Safari para habilitar "Allow Unsigned Extensions" desde el menu de 'Desarrolladores' de Safari. El menu de Desarrolladores puede ser habilitado desde Safari -> Preferencias -> Avanzado 71 | Para mas informacion mirar este [link](https://blog.yimingliu.com/2018/11/14/notes-on-porting-a-safari-extension-to-a-safari-app-extension/) especialmente en **How to debug**. Si necesitas mas ayuda abri un issue y voy a brindar una guia paso a paso de como hacerlo 72 | 73 | ## Lista de mejoras 74 | - Mejorar la performance (Al clickear el icono de la extension tarda 3 segundos en mostrar el pop up) 75 | - Compilarlo y subir esta extension al App Store (Si a alguien le resulta util esta extension la subo al App Store) 76 | - Permitir drag and drop URL a traves de los Groups. 77 | - Permitir key shortcuts. 78 | 79 | ## Contribuir 80 | 81 | #### Paso 1 82 | 83 | - **Opcion 1** 84 | - 🍴 Forkear este repo! 85 | 86 | - **Opcion 2** 87 | - 🐑 🐑 Clonar este repo en tu computadora local usando el comando `git clone https://github.com/morsamatias/UltraTabSaver.git` 88 | 89 | #### Paso 2 90 | 91 | - **Hace tu mejora!** 🔨🔨🔨 92 | 93 | #### Step 3 94 | 95 | - 🔃 Crear una nueva Pull Request usando`https://github.com/morsamatias/UltraTabSaver/compare/`. 96 | 97 | ## Licencia 98 | 99 | - **[GPL-2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)** 100 | - Copyright 2020 © Matias Morsa. 101 | - Este proyecto es y siempre va a ser open-source 102 | --- 103 | ## Gracias especiales a: 104 | - [panicsteve/my-first-safari-extension](https://github.com/panicsteve/my-first-safari-extension) 105 | - [fvcproductions/sampleREADME.md](https://gist.github.com/fvcproductions/1bfc2d4aecb01a834b46) 106 | - [How to Create a Safari Extension from Scratch](https://blog.yimingliu.com/2018/11/14/notes-on-porting-a-safari-extension-to-a-safari-app-extension/) 107 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 |
3 |
4 | Logo UTN
5 |
6 |
7 | Ultra TabSaver 8 |
9 | The open source Tab Manager for Safari. 10 |
11 |
12 | 13 |

14 | 15 | ![](Ultra-TabSaver.gif) 16 | 17 | ## Table of Contents 18 | - [Features](#features) 19 | - [Branches](#branches) 20 | - [How to use it](#how-to-use-it) 21 | - [How does it work](#how-does-it-work) 22 | - [Building and running](#building-and-running) 23 | - [To do list](#to-do-list) 24 | - [Contributing](#contributing) 25 | - [License](#license) 26 | - [Thanks to](#thanks-to) 27 | - [Installation Guide](https://github.com/Swift-open-source/UltraTabSaver/blob/main/INSTALLATION_GUIDE.md) 28 | - **[README en español](README-spanish.md)** 29 | 30 | **Help us to upload this App to the AppStore, free for everyone, the costs to upload the App to the AppStore are $100 (USD)** 31 | 32 | Buy Me A Coffee 33 | 34 | #### Note: To use Ultra TabSaver you need to have installed macOS Catalina or macOS Big Sur 35 | 36 | ## Update 37 | - **[Promotional Video](https://www.youtube.com/watch?v=PNPAnn-jOCE)** 38 | - **Thank you for all the feedback, now that I know that many people find it useful I'll publish it to the App Store soon.** 39 | - **Now the Tab Groups are sorted alphabetically** 40 | - **Now it shows the description of the page** 41 | 42 | ## Features 43 | This extension adds 3 main Features to Safari: 44 | * Save the current tab 45 | * Save all the tabs in a window (a Tab Group) 46 | * Get a Tab or a Tab Group. In the Tab Group you got this functionalities: 47 | * Open all the Tabs with only 1 click 48 | * Rename Tab Group. 49 | * Copy all the tabs to the clipboard 50 | * Add url to the Tab Group 51 | * Delete a Tab Group 52 | * Delete a Tab inside a Tab Group 53 | 54 | 55 | ## Branches 56 | - Last stable version -> [master](https://github.com/Swift-open-source/UltraTabSaver/tree/master) 57 | - Experimental features -> [develop](https://github.com/Swift-open-source/UltraTabSaver/tree/develop) 58 | 59 | 60 | ## How to use it? 61 | Pressing the extension icon or right click at any website this menu will open 62 | * Save the current tab 63 | * Save all the tabs in a window (a Tab Group) 64 | * Get All Tabs. By pressing left click all the Tab Groups will show. If you press left click in a Tab Group all the tabs will open in the current window, and if you press right click in a Tab Group a new menu will be shown with this options: 65 | * Copy all the tabs to the clipboard 66 | * Add url to the Tab Group 67 | * Delete a Tab Group 68 | * Delete a Tab inside a Tab Group 69 | * Rename the Tab group (*This option is accessible only by clicking the extension Icon*). 70 | * **By pressing right click in a URL (Tab Group -> URL) you can copy to the clipboard or delete it** 71 | 72 | 73 | ## How does it work? 74 | When you select in Save Tab/Save All tab the extension get all the URL's of the Tabs in the current window and save them in the NSUserDefaults. 75 | All the Tabs are saved with a key, that key is the Tab Group name, that's why can't be two Tab Groups with the same name. 76 | 77 | ## Building and running 78 | To run you'll need to change the Xcode project settings for code signing to use your own certificate, or to not sign. To use an unsigned extension in Safari, you must check "Allow Unsigned Extensions" from Safari's "Develop" menu. If you don't have the "Develop" menu, you can enable it in the Advanced tab of Safari's prefs. 79 | For more info look [here](https://blog.yimingliu.com/2018/11/14/notes-on-porting-a-safari-extension-to-a-safari-app-extension/) in **How to debug**. If you need help just open an issue and I'll give a step by step guide. 80 | 81 | ## To do list 82 | - Boost performance (clicking the icon delays 3 seconds to show the pop up) 83 | - Compile and upload this extension to the App Store.(I'll do it if someone find this extension usefull) 84 | - Enable drag and drop URL through the Tab Groups. 85 | - Enable key shortcuts. 86 | 87 | ## Contributing 88 | 89 | #### Step 1 90 | 91 | - **Option 1** 92 | - 🍴 Fork this repo! 93 | 94 | - **Option 2** 95 | - 🐑 🐑 Clone this repo to your local machine using `git clone https://github.com/morsamatias/UltraTabSaver.git` 96 | 97 | #### Step 2 98 | 99 | - **HACK AWAY!** 🔨🔨🔨 100 | 101 | #### Step 3 102 | 103 | - 🔃 Create a new pull request using `https://github.com/morsamatias/UltraTabSaver/compare/`. 104 | 105 | ## License 106 | 107 | - **[GPL-2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)** 108 | - Copyright 2020 © Matias Morsa. 109 | - This proyect is and always is going to be open source. 110 | --- 111 | ## Thanks to 112 | - [panicsteve/my-first-safari-extension](https://github.com/panicsteve/my-first-safari-extension) 113 | - [fvcproductions/sampleREADME.md](https://gist.github.com/fvcproductions/1bfc2d4aecb01a834b46) 114 | - [How to Create a Safari Extension from Scratch](https://blog.yimingliu.com/2018/11/14/notes-on-porting-a-safari-extension-to-a-safari-app-extension/) 115 | -------------------------------------------------------------------------------- /Screenshoot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Screenshoot-1.png -------------------------------------------------------------------------------- /Screenshoot-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Screenshoot-2.png -------------------------------------------------------------------------------- /Ultra TabSaver Extension/Base.lproj/SafariExtensionViewController.xib: -------------------------------------------------------------------------------- 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 | 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 | 52 | 53 | 54 | 66 | 77 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Ultra TabSaver Extension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Ultra TabSaver Extension 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSExtension 26 | 27 | NSExtensionPointIdentifier 28 | com.apple.Safari.extension 29 | NSExtensionPrincipalClass 30 | $(PRODUCT_MODULE_NAME).SafariExtensionHandler 31 | SFSafariContentScript 32 | 33 | 34 | Script 35 | script.js 36 | 37 | 38 | SFSafariContextMenu 39 | 40 | 41 | Command 42 | Save This tab 43 | Text 44 | Save This tab 45 | 46 | 47 | Command 48 | Save All tabs 49 | Text 50 | Save All tabs 51 | 52 | 53 | Command 54 | Get All tabs 55 | Text 56 | Get All tabs 57 | 58 | 59 | SFSafariToolbarItem 60 | 61 | Action 62 | Popover 63 | Identifier 64 | Button 65 | Image 66 | ToolbarItemIcon2.png 67 | Label 68 | MyButton 69 | 70 | SFSafariWebsiteAccess 71 | 72 | Allowed Domains 73 | 74 | *.webkit.org 75 | 76 | Level 77 | All 78 | 79 | 80 | NSHumanReadableCopyright 81 | Copyright © 2020 Matias Morsa. All rights reserved. 82 | NSHumanReadableDescription 83 | This extension is a Tab Manager 84 | 85 | 86 | -------------------------------------------------------------------------------- /Ultra TabSaver Extension/Persistance.swift: -------------------------------------------------------------------------------- 1 | // 2 | // window.swift 3 | // TabSaver Extension 4 | // 5 | // Created by Matias Morsa on 28/03/2020. 6 | // Copyright © 2020 Matias Morsa. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import SafariServices 11 | 12 | struct Page : Codable, Equatable { 13 | var title: String 14 | var url: URL 15 | init() { 16 | self.title = "ERROR" 17 | self.url = URL(string:"https://www.google.com")! 18 | } 19 | init(title: String, url: URL) { 20 | self.title = title 21 | self.url = url 22 | } 23 | } 24 | 25 | class Persistance { 26 | 27 | 28 | var actual_page:SFSafariPage! 29 | static let shared = Persistance() 30 | var date = Date() 31 | let date_formatter = DateFormatter() 32 | var current_pageWindow:SFSafariWindow! 33 | var emptyDict = [String:[Page]]() 34 | 35 | init(){ 36 | load() 37 | UserDefaults.standard.synchronize() 38 | date_formatter.dateFormat = "dd.MM.yyyy" 39 | } 40 | 41 | 42 | func setActualPage(page: SFSafariPage){ 43 | self.actual_page = page 44 | } 45 | 46 | func getDictionaryAsString() -> [String:[Page]]{ 47 | var dic2:[String:[Page]] = [:] 48 | for (k,_) in emptyDict{ 49 | dic2[k] = emptyDict[k] 50 | } 51 | return dic2 52 | } 53 | 54 | func getURLlist(lista:[URL]) -> [String]{ 55 | var lista2:[String] = [] 56 | for url in lista{ 57 | lista2.append(url.absoluteString) 58 | } 59 | return lista2 60 | } 61 | 62 | func getStringAsDate(date:Date) -> String { 63 | let formatter = DateFormatter() 64 | formatter.dateFormat = "yyyy-MM-dd HH:mm:ss" 65 | let myString = formatter.string(from: date) 66 | let yourDate = formatter.date(from: myString) 67 | formatter.dateFormat = "dd-MMM-yyyy HH:mm:ss" 68 | let myStringafd = formatter.string(from: yourDate!) 69 | return myStringafd 70 | } 71 | 72 | func saveActualPage(){ 73 | if (actual_page != nil){ 74 | actual_page.getPropertiesWithCompletionHandler({ (properties) in 75 | guard let properties = properties else { 76 | self.validationHandler(false, "") 77 | return 78 | } 79 | 80 | guard let url = properties.url else { 81 | self.validationHandler(false, "") 82 | return 83 | } 84 | guard url.scheme == "http" || url.scheme == "https" else { 85 | self.validationHandler(false, "") 86 | return 87 | } 88 | guard let title = properties.title else { 89 | self.validationHandler(false, "") 90 | return 91 | } 92 | let page = Page(title: String(title.prefix(65)), url: url) 93 | self.emptyDict[self.getStringAsDate(date: Date())] = [page] 94 | }) 95 | } 96 | persist() 97 | if(actual_page != nil ){ 98 | actual_page!.getContainingTab(completionHandler: { currentTab in 99 | currentTab.getContainingWindow(completionHandler: { window in 100 | self.current_pageWindow = window 101 | window?.getAllTabs(completionHandler: { tab_list in 102 | for _ in tab_list{ 103 | NSWorkspace.shared.open(URL(string:"https://www.google.com")!) 104 | if (tab_list.count > 1){ 105 | currentTab.close() 106 | }else{ 107 | NSWorkspace.shared.open(URL(string:"https://www.google.com")!) 108 | currentTab.close() 109 | return 110 | } 111 | 112 | } 113 | }) 114 | }) 115 | }) 116 | } 117 | } 118 | 119 | 120 | func getUrlByKey(key:String) -> [Page] { 121 | var retorno = [Page()] 122 | for (k,_) in emptyDict{ 123 | if (k.elementsEqual(key)){ 124 | retorno = emptyDict[k]! 125 | } 126 | } 127 | return retorno 128 | } 129 | 130 | func saveAllPages(){ 131 | var flag = true 132 | let date = getStringAsDate(date:Date()) 133 | if(actual_page != nil ){ 134 | actual_page!.getContainingTab(completionHandler: { currentTab in 135 | currentTab.getContainingWindow(completionHandler: { window in 136 | self.current_pageWindow = window 137 | window?.getAllTabs(completionHandler: { tab_list in 138 | var i = 0 139 | for tab in tab_list{ 140 | tab.getActivePage(completionHandler: { (page) in 141 | guard let page = page else{ 142 | self.validationHandler(false, "") 143 | return 144 | } 145 | page.getPropertiesWithCompletionHandler({ (properties) in 146 | guard let properties = properties else { 147 | self.validationHandler(false, "") 148 | return 149 | } 150 | 151 | guard let url = properties.url else { 152 | self.validationHandler(false, "") 153 | return 154 | } 155 | guard url.scheme == "http" || url.scheme == "https" else { 156 | self.validationHandler(false, "") 157 | return 158 | } 159 | guard let title = properties.title else { 160 | self.validationHandler(false, "") 161 | return 162 | } 163 | let page = Page(title: title, url: url) 164 | if flag{ 165 | self.emptyDict[date] = [page] 166 | flag = false 167 | }else{ 168 | self.emptyDict[date]?.append(page) 169 | } 170 | self.persist() 171 | }) 172 | NSWorkspace.shared.open(URL(string:"https://www.google.com")!) 173 | if (i < tab_list.count){ 174 | tab.close() 175 | i += 1 176 | } 177 | }) 178 | } 179 | }) 180 | }) 181 | }) 182 | } 183 | } 184 | 185 | func validationHandler(_: Bool,_: String){ 186 | 187 | } 188 | 189 | func getSelected(date:Date){ 190 | 191 | } 192 | 193 | func deleteAll(){ 194 | emptyDict = [:] 195 | persist() 196 | } 197 | 198 | func getAll()-> [String:[Page]] { 199 | load() 200 | return self.emptyDict 201 | } 202 | 203 | func persist(){ 204 | let domain = Bundle.main.bundleIdentifier! 205 | UserDefaults.standard.removePersistentDomain(forName: domain) 206 | UserDefaults.standard.synchronize() 207 | let dic2:[String:[Page]] = getDictionaryAsString() 208 | var keyList = [String]() 209 | for (key,value) in dic2{ 210 | do { 211 | 212 | let data = try JSONEncoder().encode(value) 213 | UserDefaults.standard.setValue(data, forKey: key) 214 | keyList.append(key) 215 | 216 | } 217 | catch { 218 | 219 | print(error) 220 | } 221 | } 222 | // let myData = NSKeyedArchiver.archivedData(withRootObject: keys) 223 | UserDefaults.standard.set(keyList, forKey: "UTSkeysPages") 224 | 225 | UserDefaults.standard.synchronize() 226 | } 227 | 228 | 229 | func load(){ 230 | UserDefaults.standard.synchronize() 231 | let keys:[String] = UserDefaults.standard.object(forKey: "UTSkeysPages") as? [String] ?? [] 232 | UserDefaults.standard.synchronize() 233 | if(!keys.isEmpty){ 234 | for key in keys 235 | { 236 | do { 237 | 238 | let storedData = UserDefaults.standard.data(forKey: key) 239 | 240 | var pages = try JSONDecoder().decode([Page].self, from: storedData!) 241 | 242 | emptyDict[key] = getURLFromString(pages: pages) 243 | 244 | } 245 | catch { 246 | 247 | print(error) 248 | } 249 | 250 | } 251 | } 252 | } 253 | 254 | func deleteKey(key: String){ 255 | emptyDict.removeValue(forKey: key) 256 | persist() 257 | } 258 | 259 | func renameKey(oldKey:String, newKey:String){ 260 | if(emptyDict.keys.contains(newKey)){ 261 | dialogOK(question: "This name already exist", text: "Try another value") 262 | }else{ 263 | emptyDict[newKey] = emptyDict[oldKey] 264 | deleteKey(key: oldKey) 265 | persist() 266 | } 267 | } 268 | 269 | func addPage(key:String, page:Page){ 270 | emptyDict[key]?.append(page) 271 | persist() 272 | } 273 | 274 | func dialogOK(question: String, text: String) -> Bool { 275 | let alert = NSAlert() 276 | alert.messageText = question 277 | alert.informativeText = text 278 | alert.alertStyle = .warning 279 | alert.addButton(withTitle: "OK") 280 | return alert.runModal() == .alertFirstButtonReturn 281 | 282 | } 283 | 284 | func deletePage(key:String, page:Page ){ 285 | let index = emptyDict[key]?.firstIndex(of: page) ?? -1 286 | if (index != -1){ 287 | emptyDict[key]?.remove(at: index) 288 | } 289 | persist() 290 | } 291 | 292 | 293 | func getURLFromString(pages:[Page]) -> [Page] { 294 | var list:[Page] = [] 295 | for page in pages{ 296 | list.append(page) 297 | } 298 | return list 299 | } 300 | 301 | func getWindow()->SFSafariWindow{ 302 | return self.current_pageWindow 303 | } 304 | 305 | func setWindow(window:SFSafariWindow){ 306 | self.current_pageWindow = window 307 | } 308 | } 309 | -------------------------------------------------------------------------------- /Ultra TabSaver Extension/SafariExtensionHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SafariExtensionHandler.swift 3 | // TabSaver Extension 4 | // 5 | // Created by Matias Morsa on 28/03/2020. 6 | // Copyright © 2020 Matias Morsa. All rights reserved. 7 | // 8 | 9 | import SafariServices 10 | 11 | class SafariExtensionHandler: SFSafariExtensionHandler { 12 | 13 | var safari = SafariExtensionViewController.shared 14 | 15 | override func messageReceived(withName messageName: String, from page: SFSafariPage, userInfo: [String : Any]?) { 16 | // This method will be called when a content script provided by your extension calls safari.extension.dispatchMessage("message"). 17 | Persistance.shared.setActualPage(page: page) 18 | 19 | } 20 | 21 | override func toolbarItemClicked(in window: SFSafariWindow) { 22 | // Este metodo no hace nada 23 | SafariExtensionViewController.shared.toolbarItemClicked(sender: window) 24 | } 25 | 26 | override func validateToolbarItem(in window: SFSafariWindow, validationHandler: @escaping ((Bool, String) -> Void)) { 27 | // This is called when Safari's state changed in some way that would require the extension's toolbar item to be validated again. 28 | validationHandler(true, "") 29 | } 30 | 31 | override func popoverViewController() -> SFSafariExtensionViewController { 32 | SafariExtensionViewController.shared.flag(bool: true) 33 | return safari 34 | } 35 | 36 | 37 | func applicationWillTerminate(){ 38 | 39 | } 40 | 41 | override func contextMenuItemSelected(withCommand command: String, in page: SFSafariPage, userInfo: [String : Any]? = nil) { 42 | if (command.elementsEqual("Save All tabs")){ 43 | SafariExtensionViewController.shared.saveAll(sender: SFSafariPage.self) 44 | } else if (command.elementsEqual("Get All tabs")){ 45 | SafariExtensionViewController.shared.getAll(sender: SFSafariPage.self) 46 | } else { 47 | SafariExtensionViewController.shared.saveThis(sender: SFSafariPage.self) 48 | SafariExtensionViewController.shared.getAll(sender: SFSafariPage.self) 49 | } 50 | } 51 | } 52 | 53 | -------------------------------------------------------------------------------- /Ultra TabSaver Extension/SafariExtensionViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SafariExtensionViewController.swift 3 | // TabSaver Extension 4 | // 5 | // Created by Matias Morsa on 28/03/2020. 6 | // Copyright © 2020 Matias Morsa. All rights reserved. 7 | // 8 | 9 | import SafariServices 10 | 11 | 12 | class SafariExtensionViewController: SFSafariExtensionViewController { 13 | 14 | @IBOutlet var custom_menu:NSMenu! 15 | @IBOutlet var set_this_page:NSButton! 16 | @IBOutlet var set_all_pages:NSButton! 17 | @IBOutlet var main_menu:NSMenu! 18 | var lista_submenu:Array! 19 | var lista_de_items:Array! 20 | var lista_de_subitems:Array! 21 | var selectedPage:String! 22 | var selectedGroup:String! 23 | var selectedPageKey:String! 24 | var firstItemPoint:NSPoint! 25 | var originPage:Page! 26 | var flag = false 27 | static let shared = SafariExtensionViewController() 28 | 29 | 30 | override func viewDidLoad() { 31 | preferredContentSize = NSSize(width: 136, height: 199) 32 | super.viewDidLoad() 33 | } 34 | 35 | func flag(bool: Bool){ 36 | flag = bool 37 | } 38 | 39 | func toolbarItemClicked(sender: SFSafariWindow){ 40 | flag = false 41 | main_menu = NSMenu() 42 | firstItemPoint = NSEvent.mouseLocation 43 | main_menu.addItem(getMenuItem(title: "Empty", selector:#selector(noHaceNada) )) 44 | main_menu.removeAllItems() 45 | main_menu.addItem(getMenuItem(title: "Save this tab", selector:#selector(savePageLeftClick) )) 46 | main_menu.addItem(getMenuItem(title: "Save all tabs", selector: #selector(saveAllLeftClick))) 47 | let getAll = getMenuItem(title: "Saved tabs", selector: #selector(getAllLeftClick)) 48 | self.parse(list: Persistance.shared.getAll()) 49 | getAll.submenu = custom_menu 50 | main_menu.addItem(getAll) 51 | main_menu.popUp(positioning: main_menu.item(at: 0), at: NSEvent.mouseLocation, in: nil) 52 | } 53 | 54 | 55 | func toolbarItemClicked2(){ 56 | main_menu = NSMenu() 57 | firstItemPoint = NSEvent.mouseLocation 58 | main_menu.addItem(getMenuItem(title: "Empty", selector:#selector(noHaceNada) )) 59 | main_menu.removeAllItems() 60 | main_menu.addItem(getMenuItem(title: "Save this tab", selector:#selector(savePageLeftClick) )) 61 | main_menu.addItem(getMenuItem(title: "Save all tabs", selector: #selector(saveAllLeftClick))) 62 | let getAll = getMenuItem(title: "Saved tabs", selector: #selector(getAllLeftClick)) 63 | self.parse(list: Persistance.shared.getAll()) 64 | getAll.submenu = custom_menu 65 | main_menu.addItem(getAll) 66 | main_menu.popUp(positioning: main_menu.item(at: 0), at: NSEvent.mouseLocation, in: nil) 67 | 68 | } 69 | 70 | @objc func savePageLeftClick(){ 71 | Persistance.shared.saveActualPage() 72 | if (main_menu.items.count > 0){ 73 | main_menu.removeAllItems() 74 | } 75 | getAllLeftClick() 76 | } 77 | 78 | @objc func saveAllLeftClick(){ 79 | Persistance.shared.saveAllPages() 80 | custom_menu = NSMenu() 81 | 82 | getAllLeftClick() 83 | } 84 | 85 | @objc func getAllLeftClick(){ 86 | self.parse(list: Persistance.shared.getAll()) 87 | } 88 | 89 | @IBAction func saveThis(sender: AnyObject){ 90 | Persistance.shared.saveActualPage() 91 | custom_menu = NSMenu() 92 | custom_menu.addItem(getMenuItem(title: "Page saved",selector: #selector(noHaceNada))) 93 | custom_menu.popUp(positioning: custom_menu.item(at: 0), at: NSEvent.mouseLocation, in: nil) 94 | } 95 | 96 | @objc func noHaceNada(){ 97 | 98 | } 99 | 100 | @IBAction func saveAll(sender: AnyObject){ 101 | Persistance.shared.saveAllPages() 102 | custom_menu = NSMenu() 103 | custom_menu.addItem(getMenuItem(title: "Page saved",selector: #selector(noHaceNada))) 104 | custom_menu.popUp(positioning: custom_menu.item(at: 0), at: NSEvent.mouseLocation, in: nil) 105 | } 106 | 107 | func dialogOKCancel(question: String, text: String) -> Bool { 108 | let alert = NSAlert() 109 | alert.messageText = question 110 | alert.informativeText = text 111 | alert.alertStyle = .warning 112 | alert.addButton(withTitle: "OK") 113 | alert.addButton(withTitle: "Cancel") 114 | return alert.runModal() == .alertFirstButtonReturn 115 | 116 | } 117 | 118 | func dialogEverythingOK(question: String) -> Bool { 119 | let alert = NSAlert() 120 | alert.messageText = question 121 | alert.informativeText = question 122 | alert.alertStyle = .informational 123 | alert.addButton(withTitle: "OK") 124 | return alert.runModal() == .alertFirstButtonReturn 125 | 126 | } 127 | 128 | 129 | @IBAction func getAll(sender: AnyObject){ 130 | print("Get All") 131 | self.parse(list: Persistance.shared.getAll()) 132 | custom_menu.popUp(positioning: custom_menu.item(at: 0), at: NSEvent.mouseLocation, in: nil) 133 | 134 | } 135 | 136 | 137 | @objc func selectPage(sender: NSMenuItem){ 138 | 139 | selectedPageKey = sender.parent?.title 140 | let event = NSApp.currentEvent! 141 | if event.type == NSEvent.EventType.rightMouseUp { 142 | // Right button click 143 | selectedPage = sender.title 144 | let url = URL(string: sender.keyEquivalent)! 145 | originPage = Page(title: selectedPage, url: url) 146 | let delete = getMenuItem(title: "Delete", selector: #selector(optionDeletePage)) 147 | let copyToClipboard = getMenuItem(title: "Copy to clipboard", selector: #selector(optionSharePage) ) 148 | 149 | let options = NSMenu() 150 | 151 | options.autoenablesItems = false 152 | options.addItem(delete) 153 | options.addItem(copyToClipboard) 154 | options.popUp(positioning: options.item(at: 0), at: NSEvent.mouseLocation, in: nil) 155 | } 156 | if event.type == NSEvent.EventType.leftMouseUp { 157 | let url = URL(string: sender.keyEquivalent)! 158 | NSWorkspace.shared.open(url) 159 | } 160 | } 161 | 162 | @objc func optionShareGroup(){ 163 | NSPasteboard.general.clearContents() 164 | let url_list = Persistance.shared.getUrlByKey(key: selectedGroup).compactMap { $0.url.absoluteString }.joined(separator: "\n") 165 | NSPasteboard.general.setString(url_list, forType: .string) 166 | 167 | } 168 | 169 | @objc func optionDeleteGroup(){ 170 | Persistance.shared.deleteKey(key: selectedGroup) 171 | } 172 | 173 | @objc func optionRenameGroup() -> Bool{ 174 | let title = "Add a new name" 175 | let text = "Each group must have a UNIQUE name" 176 | let alert = NSAlert() 177 | alert.messageText = title 178 | alert.icon = #imageLiteral(resourceName:"TextFieldRename.png") 179 | alert.informativeText = text 180 | alert.alertStyle = .informational 181 | alert.addButton(withTitle: "Rename") 182 | alert.addButton(withTitle: "Cancel") 183 | let txt = NSTextField(frame: NSRect(x: 0, y: 0, width: 200, height: 24)) 184 | txt.stringValue = "New Name" 185 | alert.accessoryView = txt 186 | let response: NSApplication.ModalResponse = alert.runModal() 187 | alert.window.initialFirstResponder = txt 188 | 189 | if (response == NSApplication.ModalResponse.alertFirstButtonReturn) { 190 | Persistance.shared.renameKey(oldKey: selectedGroup, newKey: txt.stringValue) 191 | return true 192 | } else { 193 | return false 194 | } 195 | } 196 | 197 | @objc func optionSharePage(){ 198 | let url = Persistance.shared.getUrlByKey(key: selectedPageKey)[0].url.absoluteString 199 | NSPasteboard.general.clearContents() 200 | NSPasteboard.general.setString(url, forType: .string) 201 | } 202 | 203 | @objc func optionDeletePage(){ 204 | Persistance.shared.deletePage(key: selectedPageKey, page: originPage) 205 | } 206 | 207 | @objc func optionAddPage() ->Bool{ 208 | let title = "Insert the URL" 209 | let text = " " 210 | let alert = NSAlert() 211 | alert.messageText = title 212 | alert.icon = #imageLiteral(resourceName:"TextFieldRename.png") 213 | alert.informativeText = text 214 | alert.alertStyle = .informational 215 | alert.addButton(withTitle: "Add") 216 | alert.addButton(withTitle: "Cancel") 217 | let txt = NSTextField(frame: NSRect(x: 0, y: 0, width: 200, height: 24)) 218 | txt.stringValue = "URL" 219 | alert.accessoryView = txt 220 | let response: NSApplication.ModalResponse = alert.runModal() 221 | alert.window.initialFirstResponder = txt 222 | 223 | if (response == NSApplication.ModalResponse.alertFirstButtonReturn) { 224 | if(!txt.stringValue.isEmpty){ 225 | Persistance.shared.addPage(key: selectedGroup, page: Page(title: "title", url: URL(string: txt.stringValue)!)) 226 | } 227 | return true 228 | } else { 229 | return false 230 | } 231 | } 232 | 233 | @objc func deleteAll(){ 234 | Persistance.shared.deleteAll() 235 | } 236 | 237 | 238 | func getMenuItem(title:String, selector: Selector) -> NSMenuItem { 239 | let menuItem = NSMenuItem() 240 | menuItem.isAlternate = false 241 | menuItem.isEnabled = true 242 | menuItem.target = self 243 | menuItem.action = selector 244 | menuItem.title = title 245 | 246 | return menuItem 247 | } 248 | 249 | @objc func selectGroup(sender: NSMenuItem!){ 250 | self.selectedGroup = sender.title 251 | let event = NSApp.currentEvent! 252 | if event.type == NSEvent.EventType.rightMouseUp { 253 | // Right button click 254 | let rename = getMenuItem(title: "Rename", selector: #selector(optionRenameGroup)) 255 | let addPage = getMenuItem(title: "Add Page", selector: #selector(optionAddPage)) 256 | let delete = getMenuItem(title: "Delete", selector: #selector(optionDeleteGroup)) 257 | let copyToClipboard = getMenuItem(title: "Copy to clipboard", selector: #selector(optionShareGroup) ) 258 | 259 | let options = NSMenu() 260 | options.autoenablesItems = false 261 | 262 | if(flag){ 263 | options.addItem(rename) 264 | } 265 | options.addItem(delete) 266 | options.addItem(copyToClipboard) 267 | options.addItem(addPage) 268 | options.popUp(positioning: options.item(at: 0), at: NSEvent.mouseLocation, in: nil) 269 | 270 | } else { 271 | // Left button click 272 | for page in Persistance.shared.getUrlByKey(key: sender.title) { 273 | let url = URL(string: page.url.absoluteString)! 274 | NSWorkspace.shared.open(url) 275 | } 276 | } 277 | } 278 | 279 | func parse(list:[String:[Page]]){ 280 | var i = 0 281 | var ii = 0 282 | custom_menu = NSMenu() 283 | lista_de_subitems = Array() 284 | lista_submenu = Array() 285 | lista_de_items = Array() 286 | let order_list = list.sorted(by: { $0.0 < $1.0 }) 287 | 288 | if (!order_list.isEmpty){ 289 | for (k,v) in order_list { 290 | lista_de_items.insert(NSMenuItem(), at: i) 291 | // FECHA 292 | lista_de_items[i] = getMenuItem(title: k, selector: #selector(selectGroup)) 293 | custom_menu.autoenablesItems = false 294 | lista_submenu.insert(NSMenu(), at: i) 295 | lista_submenu[i].autoenablesItems = false 296 | 297 | for page in v { 298 | let a = NSMenuItem() 299 | lista_de_subitems.insert(a, at: ii) 300 | let pageTitle = page.title 301 | 302 | if (!pageTitle.isEmpty) { 303 | self.lista_de_subitems[ii] = getMenuItem(title: String(pageTitle.prefix(65)), selector: #selector(selectPage)) 304 | self.lista_de_subitems[ii].keyEquivalent = page.url.absoluteString.lowercased() 305 | NSLog(page.url.absoluteString.lowercased()) 306 | self.lista_de_subitems[ii].keyEquivalentModifierMask = .init() 307 | self.lista_submenu[i].addItem(self.lista_de_subitems[ii]) 308 | ii+=1 309 | } 310 | lista_de_items[i].submenu = lista_submenu[i] 311 | } 312 | i+=1 313 | } 314 | }else{ 315 | let item = NSMenuItem() 316 | item.title = "Empty" 317 | item.isEnabled = true 318 | custom_menu.insertItem(item,at:0) 319 | } 320 | 321 | for _item in lista_de_items{ 322 | custom_menu.addItem(_item) 323 | } 324 | if (custom_menu.items.count > 1){ 325 | custom_menu.addItem(getMenuItem(title: "Delete all", selector: #selector(deleteAll))) 326 | } 327 | } 328 | 329 | } 330 | 331 | 332 | -------------------------------------------------------------------------------- /Ultra TabSaver Extension/TextFieldRename.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Ultra TabSaver Extension/TextFieldRename.png -------------------------------------------------------------------------------- /Ultra TabSaver Extension/ToolbarItemIcon.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Ultra TabSaver Extension/ToolbarItemIcon.pdf -------------------------------------------------------------------------------- /Ultra TabSaver Extension/ToolbarItemIcon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Ultra TabSaver Extension/ToolbarItemIcon2.png -------------------------------------------------------------------------------- /Ultra TabSaver Extension/Ultra_TabSaver_Extension.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Ultra TabSaver Extension/script.js: -------------------------------------------------------------------------------- 1 | document.addEventListener("DOMContentLoaded", function(event) { 2 | safari.extension.dispatchMessage("Hello World!"); 3 | }); 4 | -------------------------------------------------------------------------------- /Ultra TabSaver.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4000E5A224309B0F0097D328 /* Ultra_TabSaver.entitlements in Resources */ = {isa = PBXBuildFile; fileRef = 4000E5A124309B0F0097D328 /* Ultra_TabSaver.entitlements */; }; 11 | 4000E5A424309B0F0097D328 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4000E5A324309B0F0097D328 /* AppDelegate.swift */; }; 12 | 4000E5A724309B0F0097D328 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4000E5A524309B0F0097D328 /* Main.storyboard */; }; 13 | 4000E5A924309B0F0097D328 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4000E5A824309B0F0097D328 /* ViewController.swift */; }; 14 | 4000E5AB24309B130097D328 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4000E5AA24309B130097D328 /* Assets.xcassets */; }; 15 | 4000E5B224309B130097D328 /* Ultra TabSaver Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 4000E5B124309B130097D328 /* Ultra TabSaver Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 16 | 4000E5B724309B130097D328 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4000E5B624309B130097D328 /* Cocoa.framework */; }; 17 | 4000E5BA24309B130097D328 /* SafariExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4000E5B924309B130097D328 /* SafariExtensionHandler.swift */; }; 18 | 4000E5BC24309B130097D328 /* SafariExtensionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4000E5BB24309B130097D328 /* SafariExtensionViewController.swift */; }; 19 | 4000E5BF24309B130097D328 /* SafariExtensionViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4000E5BD24309B130097D328 /* SafariExtensionViewController.xib */; }; 20 | 4000E5C224309B130097D328 /* script.js in Resources */ = {isa = PBXBuildFile; fileRef = 4000E5C124309B130097D328 /* script.js */; }; 21 | 4000E5C424309B130097D328 /* ToolbarItemIcon.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4000E5C324309B130097D328 /* ToolbarItemIcon.pdf */; }; 22 | 403AAC42243305E00052D468 /* SafariExtensionViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4000E5BD24309B130097D328 /* SafariExtensionViewController.xib */; }; 23 | 40461C8A243486B300CEE5B9 /* Persistance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40461C89243486B300CEE5B9 /* Persistance.swift */; }; 24 | 40580674243249E8008B67CA /* ToolbarItemIcon2.png in Resources */ = {isa = PBXBuildFile; fileRef = 40580673243249E8008B67CA /* ToolbarItemIcon2.png */; }; 25 | 409DC45C243606F80016AFB8 /* TextFieldRename.png in Resources */ = {isa = PBXBuildFile; fileRef = 409DC45B243606F80016AFB8 /* TextFieldRename.png */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 4000E5B324309B130097D328 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 4000E59624309B0F0097D328 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 4000E5B024309B130097D328; 34 | remoteInfo = "Ultra TabSaver Extension"; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXCopyFilesBuildPhase section */ 39 | 4000E5CB24309B130097D328 /* Embed App Extensions */ = { 40 | isa = PBXCopyFilesBuildPhase; 41 | buildActionMask = 2147483647; 42 | dstPath = ""; 43 | dstSubfolderSpec = 13; 44 | files = ( 45 | 4000E5B224309B130097D328 /* Ultra TabSaver Extension.appex in Embed App Extensions */, 46 | ); 47 | name = "Embed App Extensions"; 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | /* End PBXCopyFilesBuildPhase section */ 51 | 52 | /* Begin PBXFileReference section */ 53 | 4000E59E24309B0F0097D328 /* Ultra TabSaver.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Ultra TabSaver.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 4000E5A124309B0F0097D328 /* Ultra_TabSaver.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Ultra_TabSaver.entitlements; sourceTree = ""; }; 55 | 4000E5A324309B0F0097D328 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 56 | 4000E5A624309B0F0097D328 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | 4000E5A824309B0F0097D328 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 58 | 4000E5AA24309B130097D328 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 59 | 4000E5AC24309B130097D328 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | 4000E5B124309B130097D328 /* Ultra TabSaver Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Ultra TabSaver Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 4000E5B624309B130097D328 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 62 | 4000E5B924309B130097D328 /* SafariExtensionHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafariExtensionHandler.swift; sourceTree = ""; }; 63 | 4000E5BB24309B130097D328 /* SafariExtensionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafariExtensionViewController.swift; sourceTree = ""; }; 64 | 4000E5BE24309B130097D328 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SafariExtensionViewController.xib; sourceTree = ""; }; 65 | 4000E5C024309B130097D328 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 66 | 4000E5C124309B130097D328 /* script.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = script.js; sourceTree = ""; }; 67 | 4000E5C324309B130097D328 /* ToolbarItemIcon.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = ToolbarItemIcon.pdf; sourceTree = ""; }; 68 | 4000E5C524309B130097D328 /* Ultra_TabSaver_Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Ultra_TabSaver_Extension.entitlements; sourceTree = ""; }; 69 | 40461C89243486B300CEE5B9 /* Persistance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Persistance.swift; sourceTree = ""; }; 70 | 40580673243249E8008B67CA /* ToolbarItemIcon2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ToolbarItemIcon2.png; sourceTree = ""; }; 71 | 409DC45B243606F80016AFB8 /* TextFieldRename.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = TextFieldRename.png; sourceTree = ""; }; 72 | /* End PBXFileReference section */ 73 | 74 | /* Begin PBXFrameworksBuildPhase section */ 75 | 4000E59B24309B0F0097D328 /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 4000E5AE24309B130097D328 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 4000E5B724309B130097D328 /* Cocoa.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXFrameworksBuildPhase section */ 91 | 92 | /* Begin PBXGroup section */ 93 | 4000E59524309B0F0097D328 = { 94 | isa = PBXGroup; 95 | children = ( 96 | 4000E5A024309B0F0097D328 /* Ultra TabSaver */, 97 | 4000E5B824309B130097D328 /* Ultra TabSaver Extension */, 98 | 4000E5B524309B130097D328 /* Frameworks */, 99 | 4000E59F24309B0F0097D328 /* Products */, 100 | ); 101 | sourceTree = ""; 102 | }; 103 | 4000E59F24309B0F0097D328 /* Products */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 4000E59E24309B0F0097D328 /* Ultra TabSaver.app */, 107 | 4000E5B124309B130097D328 /* Ultra TabSaver Extension.appex */, 108 | ); 109 | name = Products; 110 | sourceTree = ""; 111 | }; 112 | 4000E5A024309B0F0097D328 /* Ultra TabSaver */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 4000E5A124309B0F0097D328 /* Ultra_TabSaver.entitlements */, 116 | 4000E5A324309B0F0097D328 /* AppDelegate.swift */, 117 | 4000E5A524309B0F0097D328 /* Main.storyboard */, 118 | 4000E5A824309B0F0097D328 /* ViewController.swift */, 119 | 4000E5AA24309B130097D328 /* Assets.xcassets */, 120 | 4000E5AC24309B130097D328 /* Info.plist */, 121 | ); 122 | path = "Ultra TabSaver"; 123 | sourceTree = ""; 124 | }; 125 | 4000E5B524309B130097D328 /* Frameworks */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 4000E5B624309B130097D328 /* Cocoa.framework */, 129 | ); 130 | name = Frameworks; 131 | sourceTree = ""; 132 | }; 133 | 4000E5B824309B130097D328 /* Ultra TabSaver Extension */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 4000E5B924309B130097D328 /* SafariExtensionHandler.swift */, 137 | 4000E5BB24309B130097D328 /* SafariExtensionViewController.swift */, 138 | 4000E5BD24309B130097D328 /* SafariExtensionViewController.xib */, 139 | 409DC45B243606F80016AFB8 /* TextFieldRename.png */, 140 | 4000E5C024309B130097D328 /* Info.plist */, 141 | 4000E5C124309B130097D328 /* script.js */, 142 | 4000E5C324309B130097D328 /* ToolbarItemIcon.pdf */, 143 | 40580673243249E8008B67CA /* ToolbarItemIcon2.png */, 144 | 4000E5C524309B130097D328 /* Ultra_TabSaver_Extension.entitlements */, 145 | 40461C89243486B300CEE5B9 /* Persistance.swift */, 146 | ); 147 | path = "Ultra TabSaver Extension"; 148 | sourceTree = ""; 149 | }; 150 | /* End PBXGroup section */ 151 | 152 | /* Begin PBXNativeTarget section */ 153 | 4000E59D24309B0F0097D328 /* Ultra TabSaver */ = { 154 | isa = PBXNativeTarget; 155 | buildConfigurationList = 4000E5CC24309B130097D328 /* Build configuration list for PBXNativeTarget "Ultra TabSaver" */; 156 | buildPhases = ( 157 | 4000E59A24309B0F0097D328 /* Sources */, 158 | 4000E59B24309B0F0097D328 /* Frameworks */, 159 | 4000E59C24309B0F0097D328 /* Resources */, 160 | 4000E5CB24309B130097D328 /* Embed App Extensions */, 161 | ); 162 | buildRules = ( 163 | ); 164 | dependencies = ( 165 | 4000E5B424309B130097D328 /* PBXTargetDependency */, 166 | ); 167 | name = "Ultra TabSaver"; 168 | productName = "Ultra TabSaver"; 169 | productReference = 4000E59E24309B0F0097D328 /* Ultra TabSaver.app */; 170 | productType = "com.apple.product-type.application"; 171 | }; 172 | 4000E5B024309B130097D328 /* Ultra TabSaver Extension */ = { 173 | isa = PBXNativeTarget; 174 | buildConfigurationList = 4000E5C824309B130097D328 /* Build configuration list for PBXNativeTarget "Ultra TabSaver Extension" */; 175 | buildPhases = ( 176 | 4000E5AD24309B130097D328 /* Sources */, 177 | 4000E5AE24309B130097D328 /* Frameworks */, 178 | 4000E5AF24309B130097D328 /* Resources */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | ); 184 | name = "Ultra TabSaver Extension"; 185 | productName = "Ultra TabSaver Extension"; 186 | productReference = 4000E5B124309B130097D328 /* Ultra TabSaver Extension.appex */; 187 | productType = "com.apple.product-type.app-extension"; 188 | }; 189 | /* End PBXNativeTarget section */ 190 | 191 | /* Begin PBXProject section */ 192 | 4000E59624309B0F0097D328 /* Project object */ = { 193 | isa = PBXProject; 194 | attributes = { 195 | LastSwiftUpdateCheck = 1140; 196 | LastUpgradeCheck = 1140; 197 | ORGANIZATIONNAME = "Matias Morsa"; 198 | TargetAttributes = { 199 | 4000E59D24309B0F0097D328 = { 200 | CreatedOnToolsVersion = 11.4; 201 | }; 202 | 4000E5B024309B130097D328 = { 203 | CreatedOnToolsVersion = 11.4; 204 | }; 205 | }; 206 | }; 207 | buildConfigurationList = 4000E59924309B0F0097D328 /* Build configuration list for PBXProject "Ultra TabSaver" */; 208 | compatibilityVersion = "Xcode 9.3"; 209 | developmentRegion = en; 210 | hasScannedForEncodings = 0; 211 | knownRegions = ( 212 | en, 213 | Base, 214 | ); 215 | mainGroup = 4000E59524309B0F0097D328; 216 | productRefGroup = 4000E59F24309B0F0097D328 /* Products */; 217 | projectDirPath = ""; 218 | projectRoot = ""; 219 | targets = ( 220 | 4000E59D24309B0F0097D328 /* Ultra TabSaver */, 221 | 4000E5B024309B130097D328 /* Ultra TabSaver Extension */, 222 | ); 223 | }; 224 | /* End PBXProject section */ 225 | 226 | /* Begin PBXResourcesBuildPhase section */ 227 | 4000E59C24309B0F0097D328 /* Resources */ = { 228 | isa = PBXResourcesBuildPhase; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | 403AAC42243305E00052D468 /* SafariExtensionViewController.xib in Resources */, 232 | 4000E5A224309B0F0097D328 /* Ultra_TabSaver.entitlements in Resources */, 233 | 4000E5AB24309B130097D328 /* Assets.xcassets in Resources */, 234 | 4000E5A724309B0F0097D328 /* Main.storyboard in Resources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | 4000E5AF24309B130097D328 /* Resources */ = { 239 | isa = PBXResourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 409DC45C243606F80016AFB8 /* TextFieldRename.png in Resources */, 243 | 4000E5C424309B130097D328 /* ToolbarItemIcon.pdf in Resources */, 244 | 40580674243249E8008B67CA /* ToolbarItemIcon2.png in Resources */, 245 | 4000E5BF24309B130097D328 /* SafariExtensionViewController.xib in Resources */, 246 | 4000E5C224309B130097D328 /* script.js in Resources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXResourcesBuildPhase section */ 251 | 252 | /* Begin PBXSourcesBuildPhase section */ 253 | 4000E59A24309B0F0097D328 /* Sources */ = { 254 | isa = PBXSourcesBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 4000E5A924309B0F0097D328 /* ViewController.swift in Sources */, 258 | 4000E5A424309B0F0097D328 /* AppDelegate.swift in Sources */, 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | 4000E5AD24309B130097D328 /* Sources */ = { 263 | isa = PBXSourcesBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | 4000E5BC24309B130097D328 /* SafariExtensionViewController.swift in Sources */, 267 | 4000E5BA24309B130097D328 /* SafariExtensionHandler.swift in Sources */, 268 | 40461C8A243486B300CEE5B9 /* Persistance.swift in Sources */, 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | }; 272 | /* End PBXSourcesBuildPhase section */ 273 | 274 | /* Begin PBXTargetDependency section */ 275 | 4000E5B424309B130097D328 /* PBXTargetDependency */ = { 276 | isa = PBXTargetDependency; 277 | target = 4000E5B024309B130097D328 /* Ultra TabSaver Extension */; 278 | targetProxy = 4000E5B324309B130097D328 /* PBXContainerItemProxy */; 279 | }; 280 | /* End PBXTargetDependency section */ 281 | 282 | /* Begin PBXVariantGroup section */ 283 | 4000E5A524309B0F0097D328 /* Main.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | 4000E5A624309B0F0097D328 /* Base */, 287 | ); 288 | name = Main.storyboard; 289 | sourceTree = ""; 290 | }; 291 | 4000E5BD24309B130097D328 /* SafariExtensionViewController.xib */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 4000E5BE24309B130097D328 /* Base */, 295 | ); 296 | name = SafariExtensionViewController.xib; 297 | sourceTree = ""; 298 | }; 299 | /* End PBXVariantGroup section */ 300 | 301 | /* Begin XCBuildConfiguration section */ 302 | 4000E5C624309B130097D328 /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 308 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 309 | CLANG_CXX_LIBRARY = "libc++"; 310 | CLANG_ENABLE_MODULES = YES; 311 | CLANG_ENABLE_OBJC_ARC = YES; 312 | CLANG_ENABLE_OBJC_WEAK = YES; 313 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 314 | CLANG_WARN_BOOL_CONVERSION = YES; 315 | CLANG_WARN_COMMA = YES; 316 | CLANG_WARN_CONSTANT_CONVERSION = YES; 317 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 318 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 319 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 320 | CLANG_WARN_EMPTY_BODY = YES; 321 | CLANG_WARN_ENUM_CONVERSION = YES; 322 | CLANG_WARN_INFINITE_RECURSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 329 | CLANG_WARN_STRICT_PROTOTYPES = YES; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 332 | CLANG_WARN_UNREACHABLE_CODE = YES; 333 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = dwarf; 336 | EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO; 337 | ENABLE_STRICT_OBJC_MSGSEND = YES; 338 | ENABLE_TESTABILITY = YES; 339 | GCC_C_LANGUAGE_STANDARD = gnu11; 340 | GCC_DYNAMIC_NO_PIC = NO; 341 | GCC_NO_COMMON_BLOCKS = YES; 342 | GCC_OPTIMIZATION_LEVEL = 0; 343 | GCC_PREPROCESSOR_DEFINITIONS = ( 344 | "DEBUG=1", 345 | "$(inherited)", 346 | ); 347 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 348 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 349 | GCC_WARN_UNDECLARED_SELECTOR = YES; 350 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 351 | GCC_WARN_UNUSED_FUNCTION = YES; 352 | GCC_WARN_UNUSED_VARIABLE = YES; 353 | MACOSX_DEPLOYMENT_TARGET = 10.15; 354 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 355 | MTL_FAST_MATH = YES; 356 | ONLY_ACTIVE_ARCH = YES; 357 | SDKROOT = macosx; 358 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 359 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 360 | }; 361 | name = Debug; 362 | }; 363 | 4000E5C724309B130097D328 /* Release */ = { 364 | isa = XCBuildConfiguration; 365 | buildSettings = { 366 | ALWAYS_SEARCH_USER_PATHS = NO; 367 | CLANG_ANALYZER_NONNULL = YES; 368 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 369 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 370 | CLANG_CXX_LIBRARY = "libc++"; 371 | CLANG_ENABLE_MODULES = YES; 372 | CLANG_ENABLE_OBJC_ARC = YES; 373 | CLANG_ENABLE_OBJC_WEAK = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 381 | CLANG_WARN_EMPTY_BODY = YES; 382 | CLANG_WARN_ENUM_CONVERSION = YES; 383 | CLANG_WARN_INFINITE_RECURSION = YES; 384 | CLANG_WARN_INT_CONVERSION = YES; 385 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 386 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 387 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 388 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 389 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 390 | CLANG_WARN_STRICT_PROTOTYPES = YES; 391 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 392 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 393 | CLANG_WARN_UNREACHABLE_CODE = YES; 394 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 395 | COPY_PHASE_STRIP = NO; 396 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 397 | EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO; 398 | ENABLE_NS_ASSERTIONS = NO; 399 | ENABLE_STRICT_OBJC_MSGSEND = YES; 400 | GCC_C_LANGUAGE_STANDARD = gnu11; 401 | GCC_NO_COMMON_BLOCKS = YES; 402 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 403 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 404 | GCC_WARN_UNDECLARED_SELECTOR = YES; 405 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 406 | GCC_WARN_UNUSED_FUNCTION = YES; 407 | GCC_WARN_UNUSED_VARIABLE = YES; 408 | MACOSX_DEPLOYMENT_TARGET = 10.15; 409 | MTL_ENABLE_DEBUG_INFO = NO; 410 | MTL_FAST_MATH = YES; 411 | ONLY_ACTIVE_ARCH = YES; 412 | SDKROOT = macosx; 413 | SWIFT_COMPILATION_MODE = wholemodule; 414 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 415 | }; 416 | name = Release; 417 | }; 418 | 4000E5C924309B130097D328 /* Debug */ = { 419 | isa = XCBuildConfiguration; 420 | buildSettings = { 421 | CLANG_USE_OPTIMIZATION_PROFILE = YES; 422 | CODE_SIGN_ENTITLEMENTS = "Ultra TabSaver Extension/Ultra_TabSaver_Extension.entitlements"; 423 | CODE_SIGN_IDENTITY = "Apple Development"; 424 | CODE_SIGN_STYLE = Automatic; 425 | COPY_PHASE_STRIP = NO; 426 | DEVELOPMENT_TEAM = ""; 427 | ENABLE_HARDENED_RUNTIME = YES; 428 | INFOPLIST_FILE = "Ultra TabSaver Extension/Info.plist"; 429 | LD_RUNPATH_SEARCH_PATHS = ( 430 | "$(inherited)", 431 | "@executable_path/../Frameworks", 432 | "@executable_path/../../../../Frameworks", 433 | ); 434 | MARKETING_VERSION = 2.1; 435 | PRODUCT_BUNDLE_IDENTIFIER = "VMP01.Ultra-TabSaver-Extension"; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | SKIP_INSTALL = YES; 438 | SWIFT_VERSION = 5.0; 439 | }; 440 | name = Debug; 441 | }; 442 | 4000E5CA24309B130097D328 /* Release */ = { 443 | isa = XCBuildConfiguration; 444 | buildSettings = { 445 | CLANG_USE_OPTIMIZATION_PROFILE = YES; 446 | CODE_SIGN_ENTITLEMENTS = "Ultra TabSaver Extension/Ultra_TabSaver_Extension.entitlements"; 447 | CODE_SIGN_IDENTITY = "Apple Development"; 448 | CODE_SIGN_STYLE = Automatic; 449 | COPY_PHASE_STRIP = NO; 450 | DEVELOPMENT_TEAM = ""; 451 | ENABLE_HARDENED_RUNTIME = YES; 452 | INFOPLIST_FILE = "Ultra TabSaver Extension/Info.plist"; 453 | LD_RUNPATH_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "@executable_path/../Frameworks", 456 | "@executable_path/../../../../Frameworks", 457 | ); 458 | MARKETING_VERSION = 2.1; 459 | PRODUCT_BUNDLE_IDENTIFIER = "VMP01.Ultra-TabSaver-Extension"; 460 | PRODUCT_NAME = "$(TARGET_NAME)"; 461 | SKIP_INSTALL = YES; 462 | SWIFT_VERSION = 5.0; 463 | }; 464 | name = Release; 465 | }; 466 | 4000E5CD24309B130097D328 /* Debug */ = { 467 | isa = XCBuildConfiguration; 468 | buildSettings = { 469 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_USE_OPTIMIZATION_PROFILE = YES; 472 | CODE_SIGN_ENTITLEMENTS = "Ultra TabSaver/Ultra_TabSaver.entitlements"; 473 | CODE_SIGN_IDENTITY = "Apple Development"; 474 | CODE_SIGN_STYLE = Automatic; 475 | COMBINE_HIDPI_IMAGES = YES; 476 | DEVELOPMENT_TEAM = ""; 477 | ENABLE_HARDENED_RUNTIME = YES; 478 | INFOPLIST_FILE = "Ultra TabSaver/Info.plist"; 479 | LD_RUNPATH_SEARCH_PATHS = ( 480 | "$(inherited)", 481 | "@executable_path/../Frameworks", 482 | ); 483 | MARKETING_VERSION = 2.1; 484 | PRODUCT_BUNDLE_IDENTIFIER = "VMP01.Ultra-TabSaver"; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_VERSION = 5.0; 487 | }; 488 | name = Debug; 489 | }; 490 | 4000E5CE24309B130097D328 /* Release */ = { 491 | isa = XCBuildConfiguration; 492 | buildSettings = { 493 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 494 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 495 | CLANG_USE_OPTIMIZATION_PROFILE = YES; 496 | CODE_SIGN_ENTITLEMENTS = "Ultra TabSaver/Ultra_TabSaver.entitlements"; 497 | CODE_SIGN_IDENTITY = "Apple Development"; 498 | CODE_SIGN_STYLE = Automatic; 499 | COMBINE_HIDPI_IMAGES = YES; 500 | DEVELOPMENT_TEAM = ""; 501 | ENABLE_HARDENED_RUNTIME = YES; 502 | INFOPLIST_FILE = "Ultra TabSaver/Info.plist"; 503 | LD_RUNPATH_SEARCH_PATHS = ( 504 | "$(inherited)", 505 | "@executable_path/../Frameworks", 506 | ); 507 | MARKETING_VERSION = 2.1; 508 | PRODUCT_BUNDLE_IDENTIFIER = "VMP01.Ultra-TabSaver"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | SWIFT_VERSION = 5.0; 511 | }; 512 | name = Release; 513 | }; 514 | /* End XCBuildConfiguration section */ 515 | 516 | /* Begin XCConfigurationList section */ 517 | 4000E59924309B0F0097D328 /* Build configuration list for PBXProject "Ultra TabSaver" */ = { 518 | isa = XCConfigurationList; 519 | buildConfigurations = ( 520 | 4000E5C624309B130097D328 /* Debug */, 521 | 4000E5C724309B130097D328 /* Release */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | 4000E5C824309B130097D328 /* Build configuration list for PBXNativeTarget "Ultra TabSaver Extension" */ = { 527 | isa = XCConfigurationList; 528 | buildConfigurations = ( 529 | 4000E5C924309B130097D328 /* Debug */, 530 | 4000E5CA24309B130097D328 /* Release */, 531 | ); 532 | defaultConfigurationIsVisible = 0; 533 | defaultConfigurationName = Release; 534 | }; 535 | 4000E5CC24309B130097D328 /* Build configuration list for PBXNativeTarget "Ultra TabSaver" */ = { 536 | isa = XCConfigurationList; 537 | buildConfigurations = ( 538 | 4000E5CD24309B130097D328 /* Debug */, 539 | 4000E5CE24309B130097D328 /* Release */, 540 | ); 541 | defaultConfigurationIsVisible = 0; 542 | defaultConfigurationName = Release; 543 | }; 544 | /* End XCConfigurationList section */ 545 | }; 546 | rootObject = 4000E59624309B0F0097D328 /* Project object */; 547 | } 548 | -------------------------------------------------------------------------------- /Ultra TabSaver/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Ultra TabSaver 4 | // 5 | // Created by Matias Morsa on 29/03/2020. 6 | // Copyright © 2020 Matias Morsa. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | @NSApplicationMain 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | 14 | func applicationDidFinishLaunching(_ aNotification: Notification) { 15 | // Insert code here to initialize your application 16 | } 17 | 18 | func applicationWillTerminate(_ aNotification: Notification) { 19 | // Insert code here to tear down your application 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Ultra TabSaver/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "unnamed-1.png", 5 | "idiom" : "mac", 6 | "scale" : "1x", 7 | "size" : "16x16" 8 | }, 9 | { 10 | "idiom" : "mac", 11 | "scale" : "2x", 12 | "size" : "16x16" 13 | }, 14 | { 15 | "idiom" : "mac", 16 | "scale" : "1x", 17 | "size" : "32x32" 18 | }, 19 | { 20 | "idiom" : "mac", 21 | "scale" : "2x", 22 | "size" : "32x32" 23 | }, 24 | { 25 | "idiom" : "mac", 26 | "scale" : "1x", 27 | "size" : "128x128" 28 | }, 29 | { 30 | "idiom" : "mac", 31 | "scale" : "2x", 32 | "size" : "128x128" 33 | }, 34 | { 35 | "idiom" : "mac", 36 | "scale" : "1x", 37 | "size" : "256x256" 38 | }, 39 | { 40 | "filename" : "unnamed-3.png", 41 | "idiom" : "mac", 42 | "scale" : "2x", 43 | "size" : "256x256" 44 | }, 45 | { 46 | "idiom" : "mac", 47 | "scale" : "1x", 48 | "size" : "512x512" 49 | }, 50 | { 51 | "idiom" : "mac", 52 | "scale" : "2x", 53 | "size" : "512x512" 54 | } 55 | ], 56 | "info" : { 57 | "author" : "xcode", 58 | "version" : 1 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Ultra TabSaver/Assets.xcassets/AppIcon.appiconset/unnamed-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Ultra TabSaver/Assets.xcassets/AppIcon.appiconset/unnamed-1.png -------------------------------------------------------------------------------- /Ultra TabSaver/Assets.xcassets/AppIcon.appiconset/unnamed-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Ultra TabSaver/Assets.xcassets/AppIcon.appiconset/unnamed-3.png -------------------------------------------------------------------------------- /Ultra TabSaver/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Ultra TabSaver/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | 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 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 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 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 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 | -------------------------------------------------------------------------------- /Ultra TabSaver/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | 1 23 | LSApplicationCategoryType 24 | public.app-category.utilities 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2020 Matias Morsa. All rights reserved. 29 | NSMainStoryboardFile 30 | Main 31 | NSPrincipalClass 32 | NSApplication 33 | NSSupportsAutomaticTermination 34 | 35 | NSSupportsSuddenTermination 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Ultra TabSaver/Ultra_TabSaver.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Ultra TabSaver/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Ultra TabSaver 4 | // 5 | // Created by Matias Morsa on 29/03/2020. 6 | // Copyright © 2020 Matias Morsa. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import SafariServices.SFSafariApplication 11 | 12 | class ViewController: NSViewController { 13 | 14 | @IBOutlet var appNameLabel: NSTextField! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | self.appNameLabel.stringValue = "Ultra TabSaver"; 19 | } 20 | 21 | @IBAction func openSafariExtensionPreferences(_ sender: AnyObject?) { 22 | SFSafariApplication.showPreferencesForExtension(withIdentifier: "VMP01.Ultra-TabSaver-Extension") { error in 23 | if let _ = error { 24 | // Insert code to inform the user that something went wrong. 25 | 26 | } 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Ultra-TabSaver.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/Ultra-TabSaver.gif -------------------------------------------------------------------------------- /UltraTabSaver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Swift-open-source/UltraTabSaver/aa8441afa874050e05d1b63424f48cc36531ec0e/UltraTabSaver.png --------------------------------------------------------------------------------