Giter VIP home page Giter VIP logo

Comments (3)

hiepnp1990 avatar hiepnp1990 commented on August 11, 2024 3

I was able to fix these issues by doing the following:

  1. Use "host_permissions" to specify host-specific permissions:
"host_permissions": [
  "http://localhost:3000/*",
  "https://opulent-funicular-94rx4v9w775f96q-3000.app.github.dev/*",
  "https://anycontext.dhr.wtf/*"
],
  1. Simplify permissions:
"permissions": [
  "activeTab",
  "storage"
],
  1. Build using bun build:
mkdir ./build
bun install
bun build ./src/*.tsx --outdir ./build
  1. Paste the built files into ./src
  2. Update manifest.json
    Replacing all .tsx files with the newly built .js files:
{
  "manifest_version": 3,
  "name": "SuperMemory",
  "version": "2.0.0",
  "action": {
    "default_popup": "index.html"
  },
  "icons": {
    "16": "icons/icon16.png",
    "32": "icons/icon32.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },
  "content_scripts": [
    {
      "js": ["src/content.js"],
      "matches": [
        "http://localhost:3000/*",
        "https://opulent-funicular-94rx4v9w775f96q-3000.app.github.dev/*",
        "https://anycontext.dhr.wtf/*",
        "<all_urls>"
      ]
    }
  ],
  "host_permissions": [
    "http://localhost:3000/*",
    "https://opulent-funicular-94rx4v9w775f96q-3000.app.github.dev/*",
    "https://anycontext.dhr.wtf/*"
  ],
  "permissions": [
    "activeTab",
    "storage"
  ],
  "background": {
    "service_worker": "src/background.js"
  }
}
  1. Update the index.html:
    Also replacing with the built .js one:
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + React + TS</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>
  1. Manually load the Chrome extension
  • Turn on Developer Mode
  • Click on the Load unpacked
  • Select the apps/extension folder

After installation, click on the extension icon > Log In.

Still having errors importing Twitter Bookmark though:
Screenshot 2024-04-15 at 16 08 22

Hope it helps.

from supermemory.

Dhravya avatar Dhravya commented on August 11, 2024 2

import from twitter is still in the works, will be perfected very very soon 🙏

from supermemory.

Dhravya avatar Dhravya commented on August 11, 2024 2

Hi! The chrome extension is on the webstore now. See instructions on how to use it here - https://github.com/Dhravya/supermemory?tab=readme-ov-file#how-do-i-use-this

from supermemory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.