diff --git a/README.md b/README.md index 951e53ea..d337826b 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,12 @@ Once the host app is open, you will see a button called "Change save location". > While editing a file, clicking `Command + S` will save the file. While working the editor, clicking `Command + F` will bring up the search bar. +**When I use `@require`, where are the required files stored?** + +> All required files are saved *as Javascript files* in the extension container folder in macOS 11.x. That folder is located in the default save location, at: `~/Library/Containers/Userscripts/Data/Documents/require/`. +> +> If you move files from the require folder or manually edit the `manifest.json` file, you will likely break app/extension functionality. + ## Support Development Currently, there are a few ways you can support the development of this extension. The first way is simple; if you enjoy using the extension, consider [leaving a positive review on the App Store](https://apps.apple.com/us/app/userscripts/id1463298887). Seeing the reviews motivates me to continue working on the development. diff --git a/etc/App Store Screenshot.png b/etc/App Store Screenshot.png new file mode 100644 index 00000000..4b1f4b6e Binary files /dev/null and b/etc/App Store Screenshot.png differ diff --git a/etc/uilayout.sketch b/etc/uilayout.sketch new file mode 100644 index 00000000..29424ca5 Binary files /dev/null and b/etc/uilayout.sketch differ diff --git a/extension/Userscripts Extension/Info.plist b/extension/Userscripts Extension/Info.plist index a690a409..9b0326c8 100644 --- a/extension/Userscripts Extension/Info.plist +++ b/extension/Userscripts Extension/Info.plist @@ -53,7 +53,7 @@ NSHumanReadableCopyright - Copyright © 2019 Justin Wasack. All rights reserved. + Copyright © 2021 Justin Wasack. All rights reserved. NSHumanReadableDescription Save and run javascript for the web pages you visit diff --git a/extension/Userscripts Extension/index.html b/extension/Userscripts Extension/index.html index cda69012..7e5163ce 100644 --- a/extension/Userscripts Extension/index.html +++ b/extension/Userscripts Extension/index.html @@ -1 +1 @@ -Userscripts Safari
\ No newline at end of file +Userscripts Safari
\ No newline at end of file diff --git a/extension/Userscripts.xcodeproj/project.pbxproj b/extension/Userscripts.xcodeproj/project.pbxproj index 42f79cb3..f5649f03 100644 --- a/extension/Userscripts.xcodeproj/project.pbxproj +++ b/extension/Userscripts.xcodeproj/project.pbxproj @@ -409,7 +409,7 @@ CODE_SIGN_ENTITLEMENTS = "Userscripts Extension/Userscripts Extension.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_TEAM = J74Q8V8V8N; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "Userscripts Extension/Info.plist"; @@ -418,7 +418,7 @@ "@executable_path/../Frameworks", "@executable_path/../../../../Frameworks", ); - MARKETING_VERSION = 3.0.1; + MARKETING_VERSION = 3.0.2; PRODUCT_BUNDLE_IDENTIFIER = "com.userscripts.macos.Userscripts-Extension"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -432,7 +432,7 @@ CODE_SIGN_ENTITLEMENTS = "Userscripts Extension/Userscripts Extension.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_TEAM = J74Q8V8V8N; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "Userscripts Extension/Info.plist"; @@ -441,7 +441,7 @@ "@executable_path/../Frameworks", "@executable_path/../../../../Frameworks", ); - MARKETING_VERSION = 3.0.1; + MARKETING_VERSION = 3.0.2; PRODUCT_BUNDLE_IDENTIFIER = "com.userscripts.macos.Userscripts-Extension"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -458,7 +458,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_TEAM = J74Q8V8V8N; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = Userscripts/Info.plist; @@ -466,7 +466,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 3.0.1; + MARKETING_VERSION = 3.0.2; PRODUCT_BUNDLE_IDENTIFIER = com.userscripts.macos; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; @@ -482,7 +482,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_TEAM = J74Q8V8V8N; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = Userscripts/Info.plist; @@ -490,7 +490,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 3.0.1; + MARKETING_VERSION = 3.0.2; PRODUCT_BUNDLE_IDENTIFIER = com.userscripts.macos; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; diff --git a/extension/Userscripts/Info.plist b/extension/Userscripts/Info.plist index b50a15eb..850198fe 100644 --- a/extension/Userscripts/Info.plist +++ b/extension/Userscripts/Info.plist @@ -38,7 +38,7 @@ LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSHumanReadableCopyright - Copyright © 2019 Justin Wasack. All rights reserved. + Copyright © 2021 Justin Wasack. All rights reserved. NSMainStoryboardFile Main NSPrincipalClass diff --git a/index.html b/index.html new file mode 100644 index 00000000..dc965a8e --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Userscripts Safari
Built for Safari - functionality might be broken in other browsers
diff --git a/src/App.svelte b/src/App.svelte index 6d93cd4d..12c2cc64 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -41,6 +41,15 @@ // start initialization process safari.extension.dispatchMessage("REQ_INIT_DATA"); }); + + // currently inactive, but could be used to globally prevent auto text replacement in app + // eslint-disable-next-line no-unused-vars + function preventAutoTextReplacements(e) { + if (e.inputType === "insertReplacementText" && e.data === ". ") { + e.preventDefault(); + e.target.value += " "; + } + }