diff --git a/Quizlet-bypass(Safari)/Quizlet bypass Extension/Info.plist b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Info.plist
new file mode 100644
index 0000000..1752d42
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Info.plist
@@ -0,0 +1,33 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Quizlet bypass Extension
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ $(PRODUCT_BUNDLE_PACKAGE_TYPE)
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+ LSMinimumSystemVersion
+ $(MACOSX_DEPLOYMENT_TARGET)
+ NSExtension
+
+ NSExtensionPointIdentifier
+ com.apple.Safari.web-extension
+ NSExtensionPrincipalClass
+ $(PRODUCT_MODULE_NAME).SafariWebExtensionHandler
+
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass Extension/Quizlet_bypass_Extension.entitlements b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Quizlet_bypass_Extension.entitlements
new file mode 100644
index 0000000..f2ef3ae
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Quizlet_bypass_Extension.entitlements
@@ -0,0 +1,10 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.files.user-selected.read-only
+
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass Extension/Resources/js/quizlet_bypass.js b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Resources/js/quizlet_bypass.js
new file mode 100644
index 0000000..873adb2
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Resources/js/quizlet_bypass.js
@@ -0,0 +1,120 @@
+// Remove 'x' free solutions badge and "verify your email" badge.
+setTimeout(function () {
+ if (document.querySelector('.BannerWrapper')) { document.querySelector('.BannerWrapper').style.display = "none"; }
+ if (document.querySelector('.UINotification')) { document.querySelector('.UINotification').style.display = "none"; }
+}, 2000);
+
+checkIfNewAccountNeeded();
+
+function checkIfNewAccountNeeded()
+{
+ setTimeout(function () {
+ console.log("test");
+ // Three cases: Almost out of solutions, not logged in at all, or out of solutions.
+
+ // Almost out of solutions
+ if (pageContains("This is your last free explanation"))
+ {
+ // Don't reload, not actually out of solutions yet.
+ signUpNewAccount(false);
+ }
+ // Not logged in
+ else if (pageContains("Create a free account to see explanations"))
+ {
+ signUpNewAccount(true);
+ }
+ // Out of solutions
+ else if (pageContains("YOU'VE REACHED YOUR FREE LIMIT"))
+ {
+ signUpNewAccount(true);
+ }
+
+
+ // Catchall for logged out entirely.
+ else if (!isLoggedIn())
+ {
+ signUpNewAccount(true);
+ }
+ // Catchall for out of solutions
+ else if (pageContains('source=explanations_meter_exceeded'))
+ {
+ signUpNewAccount(true);
+ }
+ }, 2000)
+}
+
+function signUpNewAccount(doesReload)
+{
+ // We're just gonna assume this is a large enough characterspace for it to never matter.
+ var name = "sq_bypass_" + randomString(10, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
+
+ var request = fetch("https://quizlet.com/webapi/3.2/direct-signup", {
+ "headers": {
+ "accept": "application/json",
+ "accept-language": "en-US,en;q=0.9",
+ "content-type": "application/json",
+ "cs-token": getToken(),
+ "sec-ch-ua": "\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"91\", \"Chromium\";v=\"91\"",
+ "sec-ch-ua-mobile": "?0",
+ "sec-fetch-dest": "empty",
+ "sec-fetch-mode": "cors",
+ "sec-fetch-site": "same-origin",
+ "x-requested-with": "XMLHttpRequest"
+ },
+ "referrer": "https://quizlet.com/goodbye",
+ "referrerPolicy": "origin-when-cross-origin",
+ "body": "{\"TOS\":false,\"birth_day\":\"5\",\"birth_month\":\"5\",\"birth_year\":\"2000\",\"email\":\"" + name + "@example.com\",\"is_free_teacher\":\"2\",\"is_parent\":false,\"password1\":\"SladerBypassPassword\",\"redir\":\"https://quizlet.com/goodbye\",\"signupOrigin\":\"global-header-link\",\"screenName\":\"Logout/logoutMobileSplash\",\"username\":\"" + name + "\",\"marketing_opt_out\":false}",
+ "method": "POST",
+ "mode": "cors",
+ "credentials": "include"
+ }).then(function()
+ {
+ if (doesReload)
+ {
+ location.reload();
+ }
+ });
+ return true;
+};
+
+function randomString(length, chars) {
+ var result = '';
+ for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
+ return result;
+};
+
+function getToken(){
+ token = document.cookie.match("(?:^|;)\\s*" + "qtkn".replace(/[\-\[\]{}()*+?.,\\^$|#\s]/g, "$&") + "=([^;]*)");
+ return decodeURIComponent(token[1]);
+};
+
+function pageContains(str)
+{
+ if (document.body.innerHTML.match(str))
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+}
+
+function isLoggedIn()
+{
+ // Looks for `{"LOGGED_IN":false,` in the header.
+ var li = document.head.innerHTML.match(/"LOGGED_IN":(\w+)/)[1];
+
+ if (li === "false")
+ {
+ return false;
+ }
+ else if (li === "true")
+ {
+ return true;
+ }
+ else
+ {
+ return true; // Return true on possible error to prevent explosion of accounts. Effectively assumes logged in on error.
+ }
+}
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass Extension/Resources/manifest.json b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Resources/manifest.json
new file mode 100644
index 0000000..99f74fa
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass Extension/Resources/manifest.json
@@ -0,0 +1,18 @@
+{
+ "name": "Quizlet bypass",
+ "version": "0.10",
+ "author": "Alan Li & Ethan Harvey",
+ "description": "Quizlet limit bypass",
+ "content_scripts": [
+ {
+ "matches": [
+ "*://quizlet.com/explanations/questions/*",
+ "*://quizlet.com/explanations/textbook-solutions/*/*"
+ ],
+ "js": [
+ "js/quizlet_bypass.js"
+ ]
+ }
+ ],
+ "manifest_version": 2
+}
\ No newline at end of file
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass Extension/SafariWebExtensionHandler.swift b/Quizlet-bypass(Safari)/Quizlet bypass Extension/SafariWebExtensionHandler.swift
new file mode 100644
index 0000000..690b5a8
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass Extension/SafariWebExtensionHandler.swift
@@ -0,0 +1,26 @@
+//
+// SafariWebExtensionHandler.swift
+// Quizlet bypass Extension
+//
+// Created by Alan Li on 2021/8/13.
+//
+
+import SafariServices
+import os.log
+
+let SFExtensionMessageKey = "message"
+
+class SafariWebExtensionHandler: NSObject, NSExtensionRequestHandling {
+
+ func beginRequest(with context: NSExtensionContext) {
+ let item = context.inputItems[0] as! NSExtensionItem
+ let message = item.userInfo?[SFExtensionMessageKey]
+ os_log(.default, "Received message from browser.runtime.sendNativeMessage: %@", message as! CVarArg)
+
+ let response = NSExtensionItem()
+ response.userInfo = [ SFExtensionMessageKey: [ "Response to": message ] ]
+
+ context.completeRequest(returningItems: [response], completionHandler: nil)
+ }
+
+}
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.pbxproj b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..01eb12b
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.pbxproj
@@ -0,0 +1,506 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 47E2B58726C6212C00A24D52 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47E2B58626C6212C00A24D52 /* AppDelegate.swift */; };
+ 47E2B58A26C6212C00A24D52 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 47E2B58826C6212C00A24D52 /* Main.storyboard */; };
+ 47E2B58C26C6212C00A24D52 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47E2B58B26C6212C00A24D52 /* ViewController.swift */; };
+ 47E2B58E26C6212E00A24D52 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 47E2B58D26C6212E00A24D52 /* Assets.xcassets */; };
+ 47E2B59526C6212E00A24D52 /* Quizlet bypass Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 47E2B59426C6212E00A24D52 /* Quizlet bypass Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
+ 47E2B59A26C6212E00A24D52 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47E2B59926C6212E00A24D52 /* Cocoa.framework */; };
+ 47E2B59D26C6212E00A24D52 /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47E2B59C26C6212E00A24D52 /* SafariWebExtensionHandler.swift */; };
+ 47E2B5AC26C6212F00A24D52 /* js in Resources */ = {isa = PBXBuildFile; fileRef = 47E2B5AA26C6212F00A24D52 /* js */; };
+ 47E2B5AD26C6212F00A24D52 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 47E2B5AB26C6212F00A24D52 /* manifest.json */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 47E2B59626C6212E00A24D52 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 47E2B57A26C6212C00A24D52 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 47E2B59326C6212E00A24D52;
+ remoteInfo = "Quizlet bypass Extension";
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 47E2B5A526C6212E00A24D52 /* Embed App Extensions */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 13;
+ files = (
+ 47E2B59526C6212E00A24D52 /* Quizlet bypass Extension.appex in Embed App Extensions */,
+ );
+ name = "Embed App Extensions";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 47E2B58226C6212C00A24D52 /* Quizlet bypass.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Quizlet bypass.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 47E2B58526C6212C00A24D52 /* Quizlet_bypass.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Quizlet_bypass.entitlements; sourceTree = ""; };
+ 47E2B58626C6212C00A24D52 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 47E2B58926C6212C00A24D52 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 47E2B58B26C6212C00A24D52 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
+ 47E2B58D26C6212E00A24D52 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 47E2B58F26C6212E00A24D52 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 47E2B59426C6212E00A24D52 /* Quizlet bypass Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Quizlet bypass Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 47E2B59926C6212E00A24D52 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
+ 47E2B59C26C6212E00A24D52 /* SafariWebExtensionHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafariWebExtensionHandler.swift; sourceTree = ""; };
+ 47E2B59E26C6212E00A24D52 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 47E2B59F26C6212E00A24D52 /* Quizlet_bypass_Extension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Quizlet_bypass_Extension.entitlements; sourceTree = ""; };
+ 47E2B5AA26C6212F00A24D52 /* js */ = {isa = PBXFileReference; lastKnownFileType = folder; name = js; path = Resources/js; sourceTree = ""; };
+ 47E2B5AB26C6212F00A24D52 /* manifest.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; name = manifest.json; path = Resources/manifest.json; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 47E2B57F26C6212C00A24D52 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 47E2B59126C6212E00A24D52 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 47E2B59A26C6212E00A24D52 /* Cocoa.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 47E2B57926C6212C00A24D52 = {
+ isa = PBXGroup;
+ children = (
+ 47E2B58426C6212C00A24D52 /* Quizlet bypass */,
+ 47E2B59B26C6212E00A24D52 /* Quizlet bypass Extension */,
+ 47E2B59826C6212E00A24D52 /* Frameworks */,
+ 47E2B58326C6212C00A24D52 /* Products */,
+ );
+ sourceTree = "";
+ };
+ 47E2B58326C6212C00A24D52 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 47E2B58226C6212C00A24D52 /* Quizlet bypass.app */,
+ 47E2B59426C6212E00A24D52 /* Quizlet bypass Extension.appex */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 47E2B58426C6212C00A24D52 /* Quizlet bypass */ = {
+ isa = PBXGroup;
+ children = (
+ 47E2B58526C6212C00A24D52 /* Quizlet_bypass.entitlements */,
+ 47E2B58626C6212C00A24D52 /* AppDelegate.swift */,
+ 47E2B58826C6212C00A24D52 /* Main.storyboard */,
+ 47E2B58B26C6212C00A24D52 /* ViewController.swift */,
+ 47E2B58D26C6212E00A24D52 /* Assets.xcassets */,
+ 47E2B58F26C6212E00A24D52 /* Info.plist */,
+ );
+ path = "Quizlet bypass";
+ sourceTree = "";
+ };
+ 47E2B59826C6212E00A24D52 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 47E2B59926C6212E00A24D52 /* Cocoa.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 47E2B59B26C6212E00A24D52 /* Quizlet bypass Extension */ = {
+ isa = PBXGroup;
+ children = (
+ 47E2B5A926C6212F00A24D52 /* Resources */,
+ 47E2B59C26C6212E00A24D52 /* SafariWebExtensionHandler.swift */,
+ 47E2B59E26C6212E00A24D52 /* Info.plist */,
+ 47E2B59F26C6212E00A24D52 /* Quizlet_bypass_Extension.entitlements */,
+ );
+ path = "Quizlet bypass Extension";
+ sourceTree = "";
+ };
+ 47E2B5A926C6212F00A24D52 /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 47E2B5AA26C6212F00A24D52 /* js */,
+ 47E2B5AB26C6212F00A24D52 /* manifest.json */,
+ );
+ name = Resources;
+ path = "Quizlet bypass Extension";
+ sourceTree = SOURCE_ROOT;
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 47E2B58126C6212C00A24D52 /* Quizlet bypass */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 47E2B5A626C6212E00A24D52 /* Build configuration list for PBXNativeTarget "Quizlet bypass" */;
+ buildPhases = (
+ 47E2B57E26C6212C00A24D52 /* Sources */,
+ 47E2B57F26C6212C00A24D52 /* Frameworks */,
+ 47E2B58026C6212C00A24D52 /* Resources */,
+ 47E2B5A526C6212E00A24D52 /* Embed App Extensions */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 47E2B59726C6212E00A24D52 /* PBXTargetDependency */,
+ );
+ name = "Quizlet bypass";
+ productName = "Quizlet bypass";
+ productReference = 47E2B58226C6212C00A24D52 /* Quizlet bypass.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 47E2B59326C6212E00A24D52 /* Quizlet bypass Extension */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 47E2B5A226C6212E00A24D52 /* Build configuration list for PBXNativeTarget "Quizlet bypass Extension" */;
+ buildPhases = (
+ 47E2B59026C6212E00A24D52 /* Sources */,
+ 47E2B59126C6212E00A24D52 /* Frameworks */,
+ 47E2B59226C6212E00A24D52 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "Quizlet bypass Extension";
+ productName = "Quizlet bypass Extension";
+ productReference = 47E2B59426C6212E00A24D52 /* Quizlet bypass Extension.appex */;
+ productType = "com.apple.product-type.app-extension";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 47E2B57A26C6212C00A24D52 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastSwiftUpdateCheck = 1250;
+ LastUpgradeCheck = 1250;
+ TargetAttributes = {
+ 47E2B58126C6212C00A24D52 = {
+ CreatedOnToolsVersion = 12.5.1;
+ };
+ 47E2B59326C6212E00A24D52 = {
+ CreatedOnToolsVersion = 12.5.1;
+ };
+ };
+ };
+ buildConfigurationList = 47E2B57D26C6212C00A24D52 /* Build configuration list for PBXProject "Quizlet bypass" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 47E2B57926C6212C00A24D52;
+ productRefGroup = 47E2B58326C6212C00A24D52 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 47E2B58126C6212C00A24D52 /* Quizlet bypass */,
+ 47E2B59326C6212E00A24D52 /* Quizlet bypass Extension */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 47E2B58026C6212C00A24D52 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 47E2B58E26C6212E00A24D52 /* Assets.xcassets in Resources */,
+ 47E2B58A26C6212C00A24D52 /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 47E2B59226C6212E00A24D52 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 47E2B5AD26C6212F00A24D52 /* manifest.json in Resources */,
+ 47E2B5AC26C6212F00A24D52 /* js in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 47E2B57E26C6212C00A24D52 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 47E2B58C26C6212C00A24D52 /* ViewController.swift in Sources */,
+ 47E2B58726C6212C00A24D52 /* AppDelegate.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 47E2B59026C6212E00A24D52 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 47E2B59D26C6212E00A24D52 /* SafariWebExtensionHandler.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 47E2B59726C6212E00A24D52 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 47E2B59326C6212E00A24D52 /* Quizlet bypass Extension */;
+ targetProxy = 47E2B59626C6212E00A24D52 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 47E2B58826C6212C00A24D52 /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 47E2B58926C6212C00A24D52 /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 47E2B5A026C6212E00A24D52 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 11.3;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 47E2B5A126C6212E00A24D52 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 11.3;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SDKROOT = macosx;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ };
+ name = Release;
+ };
+ 47E2B5A326C6212E00A24D52 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_ENTITLEMENTS = "Quizlet bypass Extension/Quizlet_bypass_Extension.entitlements";
+ CODE_SIGN_STYLE = Automatic;
+ INFOPLIST_FILE = "Quizlet bypass Extension/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@executable_path/../../../../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.alanli.Quizlet-bypass.Extension";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 47E2B5A426C6212E00A24D52 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_ENTITLEMENTS = "Quizlet bypass Extension/Quizlet_bypass_Extension.entitlements";
+ CODE_SIGN_STYLE = Automatic;
+ INFOPLIST_FILE = "Quizlet bypass Extension/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ "@executable_path/../../../../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.alanli.Quizlet-bypass.Extension";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+ 47E2B5A726C6212E00A24D52 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = "Quizlet bypass/Quizlet_bypass.entitlements";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = "Quizlet bypass/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.alanli.Quizlet-bypass";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Debug;
+ };
+ 47E2B5A826C6212E00A24D52 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_ENTITLEMENTS = "Quizlet bypass/Quizlet_bypass.entitlements";
+ CODE_SIGN_STYLE = Automatic;
+ COMBINE_HIDPI_IMAGES = YES;
+ INFOPLIST_FILE = "Quizlet bypass/Info.plist";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/../Frameworks",
+ );
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
+ PRODUCT_BUNDLE_IDENTIFIER = "com.alanli.Quizlet-bypass";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 47E2B57D26C6212C00A24D52 /* Build configuration list for PBXProject "Quizlet bypass" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 47E2B5A026C6212E00A24D52 /* Debug */,
+ 47E2B5A126C6212E00A24D52 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 47E2B5A226C6212E00A24D52 /* Build configuration list for PBXNativeTarget "Quizlet bypass Extension" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 47E2B5A326C6212E00A24D52 /* Debug */,
+ 47E2B5A426C6212E00A24D52 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 47E2B5A626C6212E00A24D52 /* Build configuration list for PBXNativeTarget "Quizlet bypass" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 47E2B5A726C6212E00A24D52 /* Debug */,
+ 47E2B5A826C6212E00A24D52 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 47E2B57A26C6212C00A24D52 /* Project object */;
+}
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/xcuserdata/alanli.xcuserdatad/UserInterfaceState.xcuserstate b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/xcuserdata/alanli.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..cd106f6
Binary files /dev/null and b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/project.xcworkspace/xcuserdata/alanli.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/xcuserdata/alanli.xcuserdatad/xcschemes/xcschememanagement.plist b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/xcuserdata/alanli.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..82e31a1
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass.xcodeproj/xcuserdata/alanli.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,14 @@
+
+
+
+
+ SchemeUserState
+
+ Quizlet bypass.xcscheme_^#shared#^_
+
+ orderHint
+ 0
+
+
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/AppDelegate.swift b/Quizlet-bypass(Safari)/Quizlet bypass/AppDelegate.swift
new file mode 100644
index 0000000..a1adf5b
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/AppDelegate.swift
@@ -0,0 +1,25 @@
+//
+// AppDelegate.swift
+// Quizlet bypass
+//
+// Created by Alan Li on 2021/8/13.
+//
+
+import Cocoa
+
+@main
+class AppDelegate: NSObject, NSApplicationDelegate {
+
+ func applicationDidFinishLaunching(_ notification: Notification) {
+ // Insert code here to initialize your application
+ }
+
+ func applicationWillTerminate(_ notification: Notification) {
+ // Insert code here to tear down your application
+ }
+
+ func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
+ return true
+ }
+
+}
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/AccentColor.colorset/Contents.json b/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/AccentColor.colorset/Contents.json
new file mode 100644
index 0000000..eb87897
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/AccentColor.colorset/Contents.json
@@ -0,0 +1,11 @@
+{
+ "colors" : [
+ {
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/AppIcon.appiconset/Contents.json b/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..50ab7bd
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,58 @@
+{
+ "images" : [
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "32x32"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "32x32"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "128x128"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "128x128"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "256x256"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "256x256"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "512x512"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "512x512"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/Contents.json b/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/Base.lproj/Main.storyboard b/Quizlet-bypass(Safari)/Quizlet bypass/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..40988f3
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/Base.lproj/Main.storyboard
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/Info.plist b/Quizlet-bypass(Safari)/Quizlet bypass/Info.plist
new file mode 100644
index 0000000..cfbbdb7
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/Info.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIconFile
+
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ $(PRODUCT_BUNDLE_PACKAGE_TYPE)
+ CFBundleShortVersionString
+ 1.0
+ CFBundleVersion
+ 1
+ LSMinimumSystemVersion
+ $(MACOSX_DEPLOYMENT_TARGET)
+ NSMainStoryboardFile
+ Main
+ NSPrincipalClass
+ NSApplication
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/Quizlet_bypass.entitlements b/Quizlet-bypass(Safari)/Quizlet bypass/Quizlet_bypass.entitlements
new file mode 100644
index 0000000..f2ef3ae
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/Quizlet_bypass.entitlements
@@ -0,0 +1,10 @@
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.files.user-selected.read-only
+
+
+
diff --git a/Quizlet-bypass(Safari)/Quizlet bypass/ViewController.swift b/Quizlet-bypass(Safari)/Quizlet bypass/ViewController.swift
new file mode 100644
index 0000000..e38c810
--- /dev/null
+++ b/Quizlet-bypass(Safari)/Quizlet bypass/ViewController.swift
@@ -0,0 +1,51 @@
+//
+// ViewController.swift
+// Quizlet bypass
+//
+// Created by Alan Li on 2021/8/13.
+//
+
+import Cocoa
+import SafariServices.SFSafariApplication
+import SafariServices.SFSafariExtensionManager
+
+let appName = "Quizlet bypass"
+let extensionBundleIdentifier = "com.alanli.Quizlet-bypass.Extension"
+
+class ViewController: NSViewController {
+
+ @IBOutlet var appNameLabel: NSTextField!
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+ self.appNameLabel.stringValue = appName
+ SFSafariExtensionManager.getStateOfSafariExtension(withIdentifier: extensionBundleIdentifier) { (state, error) in
+ guard let state = state, error == nil else {
+ // Insert code to inform the user that something went wrong.
+ return
+ }
+
+ DispatchQueue.main.async {
+ if (state.isEnabled) {
+ self.appNameLabel.stringValue = "\(appName)'s extension is currently on."
+ } else {
+ self.appNameLabel.stringValue = "\(appName)'s extension is currently off. You can turn it on in Safari Extensions preferences."
+ }
+ }
+ }
+ }
+
+ @IBAction func openSafariExtensionPreferences(_ sender: AnyObject?) {
+ SFSafariApplication.showPreferencesForExtension(withIdentifier: extensionBundleIdentifier) { error in
+ guard error == nil else {
+ // Insert code to inform the user that something went wrong.
+ return
+ }
+
+ DispatchQueue.main.async {
+ NSApplication.shared.terminate(nil)
+ }
+ }
+ }
+
+}