From 15f133ca6f57d6ddb5fcd1f5f57d5179a70be393 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 1 Jan 2025 19:18:43 -0600 Subject: [PATCH 01/34] Delete .github/workflows directory --- .github/workflows/deployment.yaml | 68 ------------------------------- .github/workflows/lint.yml | 14 ------- 2 files changed, 82 deletions(-) delete mode 100644 .github/workflows/deployment.yaml delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml deleted file mode 100644 index e534bb34..00000000 --- a/.github/workflows/deployment.yaml +++ /dev/null @@ -1,68 +0,0 @@ -# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions - -name: Userscripts deployment -on: - release: - types: [published] # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release -jobs: - Deployment: - strategy: - matrix: # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs - platform: [mac, ios] - runs-on: macos-latest # https://github.com/actions/runner-images - steps: - - uses: actions/checkout@v4 # https://github.com/actions/checkout - with: - fetch-depth: 0 - fetch-tags: true # https://github.com/actions/checkout/issues/1781 - - uses: actions/setup-node@v4 # https://github.com/actions/setup-node - with: - node-version: latest - - id: semver # Parse semver from github ref - uses: userscriptsup/actions/semver-parser@main - - name: Verify release type - run: | - if ${{ github.event.release.prerelease }}; then - ${{ steps.semver.outputs.beta }} || exit 11 - else - ${{ steps.semver.outputs.alpha }} && exit 12 - ${{ steps.semver.outputs.beta }} && exit 13 - [ -n "${{ steps.semver.outputs.prerelease }}" ] && exit 14 - exit 0 - fi - - run: npm install - - run: npm run lint:js - - run: npm run lint:css - - run: npm run build:${{ matrix.platform }}-beta - if: ${{ github.event.release.prerelease }} - - run: npm run build:${{ matrix.platform }} - if: ${{ ! github.event.release.prerelease }} - - name: Set xcode version - run: sudo xcode-select -s "/Applications/Xcode_15.4.app" # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode - - name: Run fastlane - id: fastlane - working-directory: ./fastlane - env: - FASTLANE_OPT_OUT_USAGE: "YES" - MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }} - MATCH_GIT_PRIVATE_KEY: "fastlane/${{ secrets.GIT_PRIVATE_KEY_FILE }}" - GIT_PRIVATE_KEY_FILE: ${{ secrets.GIT_PRIVATE_KEY_FILE }} - GIT_PRIVATE_KEY_BASE64: ${{ secrets.GIT_PRIVATE_KEY_BASE64 }} # https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#storing-base64-binary-blobs-as-secrets - MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} - GYM_INSTALLER_CERT_NAME: ${{ secrets.GYM_INSTALLER_CERT_NAME }} # required for mac (unable to auto-detect) - APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} - APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} - APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} - MARKETING_VERSION: ${{ steps.semver.outputs.core }} - IS_PRERELEASE: ${{ github.event.release.prerelease }} - run: | - echo $GIT_PRIVATE_KEY_BASE64 | base64 --decode > $GIT_PRIVATE_KEY_FILE - chmod 600 $GIT_PRIVATE_KEY_FILE - bundle install - $IS_PRERELEASE && bundle exec fastlane ${{ matrix.platform }} beta - $IS_PRERELEASE || bundle exec fastlane ${{ matrix.platform }} release - - name: Artifact dSYM - uses: actions/upload-artifact@v4 # https://github.com/actions/upload-artifact - with: - name: Userscripts_${{ matrix.platform }}_${{ steps.fastlane.outputs.ver || github.ref_name }}.app.dSYM - path: build/*.dSYM.zip diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 45e462ed..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: lint -on: - - pull_request -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install modules - run: npm install - - name: Run ESLint - run: npm run lint:js - - name: Run Stylelint - run: npm run lint:css From 8276c407413c2a32d17ef6b77123c1b9c33b9707 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Mon, 3 Feb 2025 18:39:47 -0600 Subject: [PATCH 02/34] Update ViewController.swift --- xcode/App-Mac/ViewController.swift | 86 ++---------------------------- 1 file changed, 4 insertions(+), 82 deletions(-) diff --git a/xcode/App-Mac/ViewController.swift b/xcode/App-Mac/ViewController.swift index fc7598ee..666ed620 100644 --- a/xcode/App-Mac/ViewController.swift +++ b/xcode/App-Mac/ViewController.swift @@ -1,82 +1,4 @@ -import SafariServices.SFSafariApplication - -private let logger = USLogger(#fileID) - -class ViewController: NSViewController { - - @IBOutlet var appName: NSTextField! - @IBOutlet var saveLocation: NSTextField! - @IBOutlet weak var enabledText: NSTextField! - @IBOutlet weak var enabledIcon: NSView! - @IBOutlet weak var openButton: NSButton! - - let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "??" - let buildNumber = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "??" - - override func viewDidLoad() { - super.viewDidLoad() - self.appName.stringValue = "Userscripts Safari Version \(appVersion) (\(buildNumber))" - setExtensionState() - NotificationCenter.default.addObserver( - self, - selector: #selector(setExtensionState), - name: NSApplication.didBecomeActiveNotification, - object: nil - ) - let url = getSaveLocationURL() - self.saveLocation.stringValue = url.absoluteString - self.saveLocation.toolTip = url.absoluteString - if #available(macOS 13, *) { - self.openButton.title = "Open Safari Settings" - } - } - - @objc func setExtensionState() { - SFSafariExtensionManager.getStateOfSafariExtension(withIdentifier: extIdentifier) { (state, error) in - guard let state = state else { - self.enabledText.stringValue = "Safari Extension State Unknown" - if let error = error { - logger?.error("\(#function, privacy: .public) - \(error.localizedDescription, privacy: .public)") - } else { - logger?.error("\(#function, privacy: .public) - couldn't get safari extension state in containing app") - } - return - } - DispatchQueue.main.async { - self.enabledIcon.layer?.backgroundColor = state.isEnabled ? NSColor.green.cgColor : NSColor.red.cgColor - self.enabledText.stringValue = state.isEnabled ? "Safari Extension Enabled" : "Safari Extension Disabled" - } - } - } - - @IBAction func changeSaveLocation(_ sender: AnyObject?) { - guard let window = self.view.window else { return } - let saveLocationURL = getSaveLocationURL() - let panel = changeSaveLocationPanel(directoryURL: saveLocationURL) - panel.beginSheetModal(for: window, completionHandler: { response in - // check if clicked open button and there is a valid result - guard response == .OK, let url: URL = panel.urls.first else { return } - // revoke implicitly starts security-scoped access - defer { url.stopAccessingSecurityScopedResource() } - // check if path has indeed changed - if url.absoluteString == saveLocationURL.absoluteString { return } - // try set new save location path to bookmark - guard setSaveLocationURL(url: url) else { return } - // update user interface text display - self.saveLocation.stringValue = url.absoluteString - self.saveLocation.toolTip = url.absoluteString - // notify browser extension of relevant updates - sendExtensionMessage( - name: "SAVE_LOCATION_CHANGED", - userInfo: [ - "saveLocation": url.absoluteString.removingPercentEncoding ?? url.absoluteString, - "returnApp": true - ] - ) - }) - } - - @IBAction func openSafariExtensionPreferences(_ sender: AnyObject?) { - SFSafariApplication.showPreferencesForExtension(withIdentifier: extIdentifier) - } -} +void +delete +stop +end From 63d3d07261fdf250c8fcdd591e5a0e8ebc0712cc Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:53:20 -0600 Subject: [PATCH 03/34] Update LICENSE --- LICENSE | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index f288702d..1edf0bdb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,11 +1,35 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 +uninstall +delete +end +stop +close + + + + + + + + + + + + + + + + + + + + + + + + + - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. From 9fca7a14b4837bb0201bdc33abab562e4edcffea Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:54:01 -0600 Subject: [PATCH 04/34] Update Userscripts.code-workspace --- Userscripts.code-workspace | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Userscripts.code-workspace b/Userscripts.code-workspace index 11c4d094..eeb430b1 100644 --- a/Userscripts.code-workspace +++ b/Userscripts.code-workspace @@ -1,14 +1,6 @@ -// https://code.visualstudio.com/docs/editor/workspaces -{ - "folders": [ - { - "name": "Userscripts-JS", - "path": ".", - }, - { - "name": "Userscripts-Xcode", - "path": "xcode", - }, - ], - "settings": {}, -} +uninstall +delete +close +void +end +stop From a6d41f1974337816c246f09d3d596a45274a30f5 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:54:53 -0600 Subject: [PATCH 05/34] Update .stylelintrc.json --- .stylelintrc.json | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 707413f5..e029be5d 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,25 +1,6 @@ -{ - "extends": ["stylelint-config-standard", "stylelint-config-html"], - "ignoreFiles": [ - "**/etc/**", - "**/dist/**", - "**/build/**", - "**/node_modules/**", - "**/reset.css", - "public/**", - "xcode/**" - ], - "rules": { - "alpha-value-notation": "number", - "custom-property-empty-line-before": null, - "no-descending-specificity": null, - "property-no-vendor-prefix": null, - "selector-class-pattern": null, - "selector-pseudo-class-no-unknown": [ - true, - { - "ignorePseudoClasses": ["global"] - } - ] - } -} +uninstall +delete +end +close +void +close From bb760980882d07dc39b4a5829e89b0231b09cc10 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:55:47 -0600 Subject: [PATCH 06/34] Update .git-blame-ignore-revs --- .git-blame-ignore-revs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index cc156834..a120b8b0 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,9 +1,6 @@ -# https://git-scm.com/docs/git-blame -# https://github.blog/changelog/2022-03-24-ignore-commits-in-the-blame-view-beta/ -# https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view - -# Prettier 3.0.3 -acc35fbec38d72968b735826c6807793a2054aed - -# Xcode swift indent replace spaces to tabs -962c4d81879e85362a5f878889d3aa869f4e6961 +uninstall +delete +stop +close +end +void From f7fbdb1fc29d260a435bb7d6efe61aef764824b0 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:56:42 -0600 Subject: [PATCH 07/34] Update jsconfig.json --- jsconfig.json | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/jsconfig.json b/jsconfig.json index 8f85baf3..57e0cc68 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,26 +1,6 @@ -// https://code.visualstudio.com/docs/languages/jsconfig -// https://www.typescriptlang.org/docs/handbook/tsconfig-json.html -// https://www.typescriptlang.org/tsconfig +uninstall +delete +close +end +stop -// https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html -// https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html - -{ - "compilerOptions": { - "target": "ESNext", - "module": "ESNext", - "moduleResolution": "bundler", - - "verbatimModuleSyntax": true, - "isolatedModules": true, - "resolveJsonModule": true, - - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, - "sourceMap": true - }, - "include": ["*.d.ts", "*.js"] -} From 1781eda8a5c8c6561ddfb74362cba46050fc0d1b Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:57:31 -0600 Subject: [PATCH 08/34] Update entry-app-webview.html --- entry-app-webview.html | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/entry-app-webview.html b/entry-app-webview.html index 7e4280cc..54c19a04 100644 --- a/entry-app-webview.html +++ b/entry-app-webview.html @@ -1,17 +1,5 @@ - - - - - - - - Userscripts App - - -
- - - +uninstall +end +stop +delete +void From f753e4f9cb318df603aa8487b4ae1f094a49f82b Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:58:25 -0600 Subject: [PATCH 09/34] Update package-lock.json --- package-lock.json | 60 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2460b76..bb0561c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,57 @@ -{ - "name": "userscripts", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { +uninstall +end +delete +stop close + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "name": "userscripts", "devDependencies": { "@sveltejs/vite-plugin-svelte": "^5.0.2", From 1f7b10457bee133f507a6046edaa8540152fa221 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Wed, 5 Feb 2025 23:59:02 -0600 Subject: [PATCH 10/34] Update entry-ext-background.html --- entry-ext-background.html | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/entry-ext-background.html b/entry-ext-background.html index e3ee5d4c..aa8e76fd 100644 --- a/entry-ext-background.html +++ b/entry-ext-background.html @@ -1,9 +1,5 @@ - - - - Userscripts background - - - - - +uninstall +delete +stop +end +close \ No newline at end of file From 992242fcd92e5cddb72378131a41bcc356ae85b2 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:00:16 -0600 Subject: [PATCH 11/34] Update entry-ext-extension-page.html --- entry-ext-extension-page.html | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/entry-ext-extension-page.html b/entry-ext-extension-page.html index f275bcb8..aa8e76fd 100644 --- a/entry-ext-extension-page.html +++ b/entry-ext-extension-page.html @@ -1,15 +1,5 @@ - - - - - - - Userscripts page - - - -
- - - - +uninstall +delete +stop +end +close \ No newline at end of file From de0ecdad5912c44b9bf024fb92348c77f66b7e6f Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:01:07 -0600 Subject: [PATCH 12/34] Update entry-ext-action-popup.html --- entry-ext-action-popup.html | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/entry-ext-action-popup.html b/entry-ext-action-popup.html index c329fa52..0dea5e39 100644 --- a/entry-ext-action-popup.html +++ b/entry-ext-action-popup.html @@ -1,14 +1,4 @@ - - - - - - - Userscripts popup - - - -
- - - +uninstall +end +close +delete From ff7167710a3ccb74a00b66d8fe10111f3a97ff35 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:03:13 -0600 Subject: [PATCH 13/34] Update eslint.config.js --- eslint.config.js | 72 ++++-------------------------------------------- 1 file changed, 5 insertions(+), 67 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 7471ce7d..303ecc61 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,67 +1,5 @@ -/** - * @file ESLint project configuration (New flat config) - * @see {@link https://eslint.org/docs/latest/use/configure/configuration-files-new} - * @see {@link https://eslint.org/docs/latest/use/configure/migration-guide} - * @see {@link https://eslint.org/docs/latest/extend/plugin-migration-flat-config} - * @see {@link https://eslint.org/blog/2022/08/new-config-system-part-1/} - * @see {@link https://eslint.org/blog/2022/08/new-config-system-part-2/} - */ - -import js from "@eslint/js"; -import globals from "globals"; -import eslintPluginSvelte from "eslint-plugin-svelte"; -import eslintConfigPrettier from "eslint-config-prettier"; - -export default [ - /** - * @see {@link https://eslint.org/docs/latest/use/configure/configuration-files-new#using-predefined-configurations} - * @see {@link https://github.com/eslint/eslint/tree/main/packages/js} - */ - js.configs.recommended, - - /** - * @see {@link https://github.com/sveltejs/eslint-plugin-svelte} - */ - ...eslintPluginSvelte.configs["flat/recommended"], - ...eslintPluginSvelte.configs["flat/prettier"], - - /** - * @see {@link https://github.com/prettier/eslint-config-prettier} - * turns off the conflict rules, put it last - */ - eslintConfigPrettier, - - /** custom config objects */ - - /** @see {@link https://eslint.org/docs/latest/use/configure/configuration-files-new#globally-ignoring-files-with-ignores} */ - { - ignores: ["**/dist/", "**/build/", "etc/", "xcode/", "public/"], - }, - - /** @see {@link https://eslint.org/docs/latest/use/configure/migration-guide#configuring-language-options} */ - { - files: ["scripts/**/*.js"], - languageOptions: { - globals: { - ...globals.node, - }, - }, - }, - { - files: ["src/{app,dev}/**/*.{js,svelte}"], - languageOptions: { - globals: { - ...globals.browser, - }, - }, - }, - { - files: ["src/ext/**/*.{js,svelte}"], - languageOptions: { - globals: { - ...globals.browser, - ...globals.webextensions, - }, - }, - }, -]; +uninstall +delete +close +stop +end \ No newline at end of file From da44fa1bd24c4ef78e24a0a7a6277860e495d931 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:04:13 -0600 Subject: [PATCH 14/34] Update index.html --- index.html | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/index.html b/index.html index 215948a7..94afadb4 100644 --- a/index.html +++ b/index.html @@ -1,28 +1,4 @@ - - - - - - Userscripts dev - - - -
- - - - +uni stall delete +void +end +close From a5145199d56fa4d81c5c569fcb6c1c1a1717663e Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:05:11 -0600 Subject: [PATCH 15/34] Update vite.config.js --- vite.config.js | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/vite.config.js b/vite.config.js index f7cf2b45..fae3b3e1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,25 +1,5 @@ -import { defineConfig } from "vite"; -import { svelte } from "@sveltejs/vite-plugin-svelte"; - -/** - * About `inline-svg` - * use `?raw` suffix import svg assets as inline - * @see {@link https://vitejs.dev/guide/assets.html#importing-asset-as-string} - * Ignore lint errors `{@html}`, since these are deterministic local svg resources, - * there is no risk of Cross-Site Scripting (XSS) attacks and can be safely disabled. - * @see {@link https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-html-tags/} - */ - -/** - * About `autoprefixer` - * have config with `.postcssrc.json` file - * @see {@link https://vitejs.dev/guide/features.html#postcss} - * about `missing peer postcss` error, ignore it - */ - -/** @see {@link https://vitejs.dev/config/} */ -export default defineConfig({ - publicDir: "public/ext/vendor/", - plugins: [svelte()], - base: "./", -}); +uni stall +delete +close +end +void From 8b89190a486b7784c62f7732b9d70128e6a1e979 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:06:13 -0600 Subject: [PATCH 16/34] Update .prettierrc.json --- .prettierrc.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.prettierrc.json b/.prettierrc.json index a651d67a..3c97e252 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,4 +1,5 @@ -{ - "plugins": ["prettier-plugin-svelte"], - "useTabs": true -} +end +uninstall +delete +close +void \ No newline at end of file From b02d5bb48e81295ddf375ec600404bf9cabfefec Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:06:54 -0600 Subject: [PATCH 17/34] Update .prettierignore --- .prettierignore | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/.prettierignore b/.prettierignore index 5c1a0da1..075ae734 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,26 +1,5 @@ -# env -.env -.env.* -!.env.example -.DS_Store - -# root -/package -/public/**/vendor -/etc - -# dir -node_modules -xcode -build -built -dist -temp - -# files -*.svg - -# Ignore files for PNPM, NPM and YARN -package-lock.json -pnpm-lock.yaml -yarn.lock +void +delete +close +end +stop From 6b182593bef8c018508c19455b551e40b3d21ac4 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:07:26 -0600 Subject: [PATCH 18/34] Update .postcssrc.json --- .postcssrc.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.postcssrc.json b/.postcssrc.json index 5c893e80..9d7c409d 100644 --- a/.postcssrc.json +++ b/.postcssrc.json @@ -1,5 +1,5 @@ -{ - "plugins": { - "autoprefixer": { "overrideBrowserslist": ["safari >= 15"] } - } -} +void +end +close +stop +delete \ No newline at end of file From 351b697763a8e95b9c4dd1a63cfb8b9036891830 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:08:03 -0600 Subject: [PATCH 19/34] Update .gitattributes --- .gitattributes | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index b4a7b25c..aa8e76fd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,5 @@ -# https://git-scm.com/docs/gitattributes -# https://git-scm.com/book/en/Customizing-Git-Git-Attributes -* text=auto - -# https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github -# https://github.com/github-linguist/linguist/blob/master/docs/overrides.md -public linguist-generated \ No newline at end of file +uninstall +delete +stop +end +close \ No newline at end of file From ce9f36f10b5a222b54e38d5ffdc642a1cdc35daf Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:08:41 -0600 Subject: [PATCH 20/34] Update .editorconfig --- .editorconfig | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.editorconfig b/.editorconfig index 60bfc63b..f64a04c5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,11 +1,5 @@ -# https://editorconfig.org/ -# https://prettier.io/docs/en/configuration#editorconfig - -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_style = tab -insert_final_newline = true -max_line_length = 80 +uninstall +delete +end +close +stop From cebe2cffda5e167dea276c9e284c440c88012de1 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:09:23 -0600 Subject: [PATCH 21/34] Update global.d.ts --- src/ext/global.d.ts | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/ext/global.d.ts b/src/ext/global.d.ts index 167d6d97..8991c7b1 100644 --- a/src/ext/global.d.ts +++ b/src/ext/global.d.ts @@ -1,13 +1,5 @@ -// https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html - -/// -/// - -import type Browser from "webextension-polyfill"; - -declare global { - const browser: Browser.Browser; - interface Window { - browser: Browser.Browser; - } -} +uninstall +end +void +close +stop From 2abdcc662f091466834a5407e5c9993a030d748e Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:10:13 -0600 Subject: [PATCH 22/34] Update api.js --- src/ext/content-scripts/api.js | 67 ++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/src/ext/content-scripts/api.js b/src/ext/content-scripts/api.js index fc7c447a..ef592345 100644 --- a/src/ext/content-scripts/api.js +++ b/src/ext/content-scripts/api.js @@ -1,3 +1,70 @@ +void +end +felete +close +s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + async function setValue(key, value) { if (typeof key !== "string" || !key.length) { return Promise.reject(new Error("setValue invalid key arg")); From 50abc71f71495b843c39bc276e2c3358787e94cf Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:10:55 -0600 Subject: [PATCH 23/34] Update entry-dot-user-js.js --- src/ext/content-scripts/entry-dot-user-js.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/ext/content-scripts/entry-dot-user-js.js b/src/ext/content-scripts/entry-dot-user-js.js index 66757ff0..02b1411d 100644 --- a/src/ext/content-scripts/entry-dot-user-js.js +++ b/src/ext/content-scripts/entry-dot-user-js.js @@ -1,12 +1,5 @@ -async function initialize() { - // avoid duplicate injection of content scripts - if (window["CS_ENTRY_DOT_USER_JS"]) return; - window["CS_ENTRY_DOT_USER_JS"] = 1; - // check user settings - const key = "US_AUGMENTED_USERJS_INSTALL"; - if ((await browser.storage.local.get(key))[key] === false) return; - // actual execution content - browser.runtime.sendMessage({ name: "WEB_USERJS_POPUP" }); -} - -initialize(); +uninstall +stop +void +end +close \ No newline at end of file From 3e2db2ca90ac89e9dae8b9e3f4afbd4c53c9b266 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:11:34 -0600 Subject: [PATCH 24/34] Update entry-script-market.js --- .../content-scripts/entry-script-market.js | 58 ++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/src/ext/content-scripts/entry-script-market.js b/src/ext/content-scripts/entry-script-market.js index 67022e47..88cae60a 100644 --- a/src/ext/content-scripts/entry-script-market.js +++ b/src/ext/content-scripts/entry-script-market.js @@ -1,4 +1,60 @@ -let url; +void +stop +end +delete + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + async function injection() { const tabUrl = new URL(location.href); From 15836a40c937dbbba4705f818e56822329ab6846 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:12:26 -0600 Subject: [PATCH 25/34] Update entry-userscripts.js --- src/ext/content-scripts/entry-userscripts.js | 57 +++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/src/ext/content-scripts/entry-userscripts.js b/src/ext/content-scripts/entry-userscripts.js index 1742d606..46b2bcca 100644 --- a/src/ext/content-scripts/entry-userscripts.js +++ b/src/ext/content-scripts/entry-userscripts.js @@ -1,4 +1,59 @@ -import USAPI from "./api.js"; +void +delete +stop +clise + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + // code received from background page will be stored in this variable // code referenced again when strict CSPs block initial injection attempt From e74947bb6cb16a49c40cbec27e4c143ec317b660 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:13:02 -0600 Subject: [PATCH 26/34] Update main.js --- src/ext/background/main.js | 43 +++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/src/ext/background/main.js b/src/ext/background/main.js index 45589caf..0ca251cd 100644 --- a/src/ext/background/main.js +++ b/src/ext/background/main.js @@ -1,4 +1,45 @@ -import { +void +delete + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + contentScriptRegistration, openExtensionPage, } from "../shared/utils.js"; From 1ba9aa705c323f8777f35a1ff0a608db348ed2c1 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:13:50 -0600 Subject: [PATCH 27/34] Update Dropdown.svelte --- src/ext/shared/Components/Dropdown.svelte | 58 ++++++++++++++++++++++- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/src/ext/shared/Components/Dropdown.svelte b/src/ext/shared/Components/Dropdown.svelte index 7acb0fcc..561012f3 100644 --- a/src/ext/shared/Components/Dropdown.svelte +++ b/src/ext/shared/Components/Dropdown.svelte @@ -1,5 +1,59 @@ - +void +delete +end +stop +
From f75a83991c20f7c34df404bf086c2de68d5e6770 Mon Sep 17 00:00:00 2001 From: Dirtylowdown Date: Thu, 6 Feb 2025 00:35:30 -0600 Subject: [PATCH 30/34] Update Loader.svelte --- src/ext/shared/Components/Loader.svelte | 57 ++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/src/ext/shared/Components/Loader.svelte b/src/ext/shared/Components/Loader.svelte index 666ae404..d8d1ba9b 100644 --- a/src/ext/shared/Components/Loader.svelte +++ b/src/ext/shared/Components/Loader.svelte @@ -1,4 +1,59 @@ -