Skip to content

Commit

Permalink
Merge pull request #6 from yoannchb-pro/dev
Browse files Browse the repository at this point in the history
v1.0.3
  • Loading branch information
yoannchb-pro authored Jun 21, 2023
2 parents f31252b + d6575bc commit 820baec
Show file tree
Hide file tree
Showing 44 changed files with 704 additions and 1,032 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

## v1.0.3

- Removed the option `table formating` because it will now set to true by default
- Adjusted the abort timeout to 15seconds
- If an error occur the user can now click back on the question
- `Textbox, question to answser mode and clipboard mode` is not formatted anymore
- Fixed many bugs
- Write AI system instructions

## v1.0.2

- Added `mode`
Expand Down
31 changes: 20 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
href="https://www.flaticon.com/free-icons/mortarboard" target="_blank" rel="noopener noreferrer"
title="Mortarboard icons created by itim2101 - Flaticon" ><img src="./extension/icon.png" alt="Mortarboard icons created by itim2101 - Flaticon" width="150" style="display:block; margin:auto;"></a></p>

# MoodleGPT v1.0.2
# MoodleGPT v1.0.3

This extension allows you to hide CHAT-GPT in a Moodle quiz. You just need to enter <b>the code configured in the extension</b> on the keyboard and then click on the question you want to solve, and CHAT-GPT will automatically provide the answer. However, one needs to be careful because as we know, CHAT-GPT can make errors especially in calculations.

Expand All @@ -12,18 +12,20 @@ I'm actually waiting for a review of my extension. It should be available in som

## Summary

- [MoodleGPT v1.0.2](#moodlegpt-v102)
- [MoodleGPT v1.0.3](#moodlegpt-v103)
- [Chrome Webstore](#chrome-webstore)
- [Summary](#summary)
- [Disclaimer !](#disclaimer-)
- [Donation](#donation)
- [Donate](#donate)
- [Update](#update)
- [MoodleGPT don't complete my quiz ?](#moodlegpt-dont-complete-my-quiz-)
- [Set up](#set-up)
- [Inject the code into the moodle](#inject-the-code-into-the-moodle)
- [Remove injection](#remove-injection)
- [Mode](#mode)
- [Settings](#settings)
- [Internal Features](#internal-features)
- [Support table](#support-table)
- [Supported questions type](#supported-questions-type)
- [Select](#select)
- [Put in order question](#put-in-order-question)
Expand All @@ -40,9 +42,11 @@ I'm actually waiting for a review of my extension. It should be available in som

I hereby declare that I am not responsible for any misuse or illegal activities carried out using my program. The code is provided for educational and research purposes only, and any use of it outside of these purposes is at the user's own risk.

## Donation
## Donate

Will be a pleasure if you want to support this project :) -> Just right [here](https://www.buymeacoffee.com/yoannchbpro)
Will be a pleasure if you want to support this project :)
<br/>
<a href="https://www.buymeacoffee.com/yoannchbpro" target="_blank" rel="noopener noreferrer"><img src="./assets/bmc-button.png" alt="Mortarboard icons created by itim2101 - Flaticon" width="150"></a>

## Update

Expand All @@ -64,7 +68,7 @@ Go to <b>"Manage my extensions"</b> on your browser, then click on <b>"Load unpa

## Inject the code into the moodle

You just need to enter on the keyboard the <b>code</b> you have set into the extension and clique on the question you want to solve.
You just need to enter on the keyboard the <b>code</b> you have set into the extension and click on the question you want to solve.

## Remove injection

Expand Down Expand Up @@ -95,13 +99,20 @@ Type back the <b>code</b> on the keyboard and the code will be removed from the
<br/> ![Injected](./assets/title-injected.png)
- <b>Console logs</b>: show logs into the console.
<br/><img src="./assets/logs.png" alt="Logs" width="250">
- <b>Request timeout</b>: if the request is too long it will be abort after 10seconds.
- <b>Request timeout</b>: if the request is too long it will be abort after 15seconds.
- <b>Typing effect</b>: create a typing effect for text. Type any text and it will be replaced by the correct one. If you want to stop it press <b>Backspace</b> key.
<br/> ![Typing](./assets/typing.gif)
- <b>Mouseover effect</b>: you will need to hover (or click for select) the question response to complete it automaticaly.
<br/> ![Mouseover](./assets/mouseover.gif)
<br/> ![Mouseover2](./assets/mouseover2.gif)
- <b>Table formatting</b>: format table from the question to make it more readable for CHAT-GPT but cost more tokens (so if the question is too large it will make an error). Example of formatted table:

- <b>Infinite try</b>: click as much as you want on the question (don't forget to reset the question).

## Internal Features

### Support table

Table are formated from the question to make it more readable for CHAT-GPT. Example of formatted table output:

```
| id | name | birthDate | cars |
Expand All @@ -110,8 +121,6 @@ Type back the <b>code</b> on the keyboard and the code will be removed from the
| Person 2 | Yann | 19/01/2000 | no |
```

- <b>Infinite try</b>: click as much as you want on the question (don't forget to reset the question).

## Supported questions type

### Select
Expand Down Expand Up @@ -154,4 +163,4 @@ To know if the answer has been copied to the clipboard, you can look at the titl

## Test

To test the code, you can run the index.html file located in the <b>"test"</b> folder. Or a better solution is to install moodle locally.
To test the code, you can run the index.html file located in the <b>"test/fake-moodle"</b> folder. Or a better solution is to install moodle locally.
8 changes: 6 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

## Priority: 1

- [ ] Fixe `normalizeText` (line break are sometimes removed for nothing e.g: checkbox)
- [ ] Support math equation from image stocked in the `data-mathml` attribute
- [ ] Fixe put in order
- [ ] Make some tests

## Priority: 2

## Priority: 3 (because hard to make)

- [ ] Increment question when there is statement (hard because it is often on another page)
- [ ] Support math equation from image stocked in the `data-mathml` attribute
- [ ] Try something to understand images like (image -> ascii or may be using other AI ?)
- [ ] Support multiple input type in a question
- [ ] Support drag and drop quiz
Binary file added assets/bmc-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/popup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed extension/128x128.png
Binary file not shown.
Loading

0 comments on commit 820baec

Please sign in to comment.