Comments (7)
YES!!!! I made it and now all is alright, thank you!!!!
manifest.json:
"matches": ["*://*/**/mod/quiz/*", "*://*/mod/quiz/*", "file:///*", "http://127.0.0.1:5500/*"],
from moodlegpt.
I tried using extention on your test Moodle page*
from moodlegpt.
Could you send the console by pressing f12 and then console. Also active title injection option and check the injection is working because sometimes the extension don’t have access to local files
from moodlegpt.
Sure! I running fake page on local server, but still dont see a notification about injection:
from moodlegpt.
Yes it’s because the path is not registered into the manifest. You can add it manually
from moodlegpt.
Hy, I'm sorry to have to comment on a closed issue, but I do not understand how to modify the manifest. How do I do it?
Thanks.
from moodlegpt.
Hi! It's easy, just open a /extention/manifest.json
in your code editor and add this string "http://127.0.0.1:5500/*"
in matches
array:
{
...other things
"content_scripts": [
{
"matches": ["*://*/**/mod/quiz/*", "*://*/mod/quiz/*", "file:///*"], // <<< MAKE CHANGES HERE
"js": ["MoodleGPT.js"],
"run_at": "document_end"
}
]
}
So complete file should be like that:
{
"manifest_version": 3,
"name": "MoodleGPT",
"version": "1.0.3",
"description": "Hidden chat-gpt for your moodle quiz",
"permissions": ["storage"],
"action": {
"default_icon": "icon.png",
"default_popup": "./popup/index.html"
},
"icons": {
"16": "icon.png",
"32": "icon.png",
"48": "icon.png",
"128": "icon.png"
},
"content_scripts": [
{
"matches": ["*://*/**/mod/quiz/*", "*://*/mod/quiz/*", "file:///*", "http://127.0.0.1:5500/*"],
"js": ["MoodleGPT.js"],
"run_at": "document_end"
}
]
}
And yeah, if you want modify manifest.json
just to try an extention, remember to use a correct URL (so I used a LiveServer in Visual Studio Code, URL is http://127.0.0.1:5500
)
from moodlegpt.
Related Issues (20)
- Error 404 on POST https://api.openai.com/v1/chat/completions HOT 1
- Not working when having true / false as radio buttons HOT 4
- Unable to find a GPT Model HOT 3
- MoodleGPT isn't working HOT 12
- Latest Moodle version HOT 10
- GPT Model say's, Undefined, HOT 2
- Can you explane to me how to make it work? HOT 13
- Can you help me make it work please HOT 5
- Undefined HOT 2
- Injection not working HOT 4
- Injection? HOT 2
- Error API Key HOT 6
- No answers are filled : UPDATE : answer replace thequestion HOT 8
- Dont choose an answer HOT 1
- Difficult to let the app work HOT 6
- GPT model isnt loading HOT 3
- [HELP] HOT 10
- [BUG] Marche pas HOT 1
- [FEATURE] ChatGPT Assistants HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodlegpt.