Skip to content

Commit

Permalink
Merge pull request #24 from sauravhathi/dev
Browse files Browse the repository at this point in the history
Bug Fixes and New Feature: Shareable Link for Assignment Submission + README Updates
  • Loading branch information
sauravhathi authored Jan 26, 2025
2 parents 47381e8 + 99bd36f commit 4075402
Show file tree
Hide file tree
Showing 26 changed files with 198 additions and 111 deletions.
6 changes: 6 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
github: sauravhathi
ko_fi: # Replace with a single Ko-fi username
custom:
- devfund@airtel
- https://www.buymeacoffee.com/sauravhathi
- https://paypal.me/sauravkumar680
18 changes: 10 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
## Pull Request Checklist

- **Problem:**

- Describe the problem that this PR addresses.

- **Solution:**

- Describe the solution implemented in this PR and how it integrates with the extension.

- **Validation:**

- Explain how this PR was tested and validated, including browser compatibility.

- **Type of Change:**

- [ ] Feature work
- [ ] Bug fix
- [ ] Documentation
Expand All @@ -18,11 +22,13 @@
- [ ] Logging/Telemetry

- **Risk:**

- [ ] High – Errors could cause MAJOR regression of many scenarios.
- [ ] Medium – Errors could cause regression of 1 or more scenarios.
- [ ] Small – No issues are expected.

- **Work Item Links:**

- Provide links to related work items, if any.

- **Documentation Links:**
Expand Down
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
rdr.js
scripts/content.js
popup/popup-o.js
node_modules/
src/
webpack.config.js
package*.json
secure.js
.prettierignore
.prettierrc
eslint.config.js
tsconfig.json
5 changes: 5 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainers. All complaints will be reviewed and investigated promptly and fairly.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 1.4.
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ Thank you for considering contributing to the Coursera Automation Extension! Her
## How to Contribute

1. **Fork the Repository**

- Clone your fork to your local machine.
- Add the original repository as an upstream remote to keep your fork updated.

2. **Create a Branch**

- Create a new branch for your feature or bugfix.
- Use a descriptive name for your branch (e.g., `feature/add-new-feature` or `bugfix/fix-issue`).

3. **Make Changes**

- Write clear and concise commit messages.
- Follow the coding style and conventions used in the project.
- Test your changes thoroughly before committing.
Expand All @@ -25,9 +28,11 @@ Thank you for considering contributing to the Coursera Automation Extension! Her
## Guidelines for Reporting Issues

1. **Search Existing Issues**

- Before opening a new issue, search the existing issues to avoid duplicates.

2. **Create a Detailed Report**

- Provide a clear and descriptive title.
- Describe the steps to reproduce the issue.
- Include any relevant logs, screenshots, or code snippets.
Expand Down
41 changes: 31 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# Coursera Automation Extension
![Version](https://img.shields.io/badge/version-2.4.4-blue)
![License](https://img.shields.io/badge/license-MIT-green)
# Coursera Automation Extension

![Version](https://img.shields.io/badge/version-3.5.4-blue)
![License](https://img.shields.io/badge/license-MIT-green)
![Platform](https://img.shields.io/badge/platform-Chrome-blue)

Using this extension, complete Coursera courses within seconds. It can be used for free to complete lectures, reading materials, ungraded assignments, and discussions. Note that quiz completion is not free.
Using this extension, complete Coursera courses within seconds. It can be used for free to complete lectures, reading materials, ungraded assignments, discussions, and shareable link. `Note:` Quiz completion is a paid feature.

`Note:` Numerical type questions answers may not be accurate.
`Disclaimer:` Quiz Automation provides AI-generated answers, which may not always be accurate.

## Table of Contents

- [Demo](#demo)
- [Features](#features)
- [Installation](#installation)
- [Activation for Quiz Automation](#activation-paid)
- [How to use](#how-to-use)
- [Shareable Link](#shareable-link)
- [Quiz Automation](#quiz-automation)
- [Pricing](#pricing)
- [Keyboard Shortcuts](#keyboard-shortcuts)
Expand All @@ -32,6 +35,7 @@ Using this extension, complete Coursera courses within seconds. It can be used f
- Complete reading materials
- Complete ungraded plugins
- Complete discussions
- Shareable link

## Installation

Expand All @@ -55,6 +59,14 @@ Only for `Quiz Automation`.
3. Choose the task you want to automate.
4. Sit back while the Extension completes the task.

## Shareable Link

To generate a **Shareable Link** for your assignment submission:

1. **Navigate to the Submission Page**: Ensure you're on the "My Submission" tab of your assignment.

2. **Use the Extension**: Click the "Shareable Link" button provided by the extension.

## Quiz Automation

Extension will automatically get the solutions and mark the correct options.
Expand All @@ -70,11 +82,11 @@ Extension will automatically get the solutions and mark the correct options.

[https://forms.gle/K7G7BYLfYX32UM9r6](https://forms.gle/K7G7BYLfYX32UM9r6)

| S.No | Credits | Price (₹/USD) | Validity (Months) |
|------|---------|-------------------|--------------------|
| 1 | 200 | 500 / 8.5 | 6 |
| 2 | 400 | 700 / 10.5 | 12 |
| 3 | 600 | 1000 / 15 | 36 |
| S.No | Credits | Price (₹/USD) | Validity (Months) |
| ---- | ------- | ------------- | ----------------- |
| 1 | 200 | 500 / 8.5 | 6 |
| 2 | 400 | 700 / 10.5 | 12 |
| 3 | 600 | 1000 / 15 | 36 |

`Note:` No refund after Credits assigned

Expand All @@ -83,6 +95,15 @@ Extension will automatically get the solutions and mark the correct options.
- `Alt + W` or `Alt + B`: Toggle the Extension
- `Alt + Z` or `Ctrl + Shift + Z`: Refresh the answers

## Support the Developer

If you find this extension helpful, consider supporting its development to keep it alive and growing! Every contribution makes a difference. ❤️

- Donate via UPI: devfund@airtel
- [Sponsor me on GitHub](https://github.com/sponsors/sauravhathi)
- [Buy me a coffee](https://www.buymeacoffee.com/sauravhathi)
- [Donate via PayPal](https://paypal.me/sauravkumar680)

## Author

- [Saurav Hathi](https://github.com/sauravhathi)
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
35 changes: 35 additions & 0 deletions dist/popup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Coursera Automation Extension</title>
<script src="scripts/popup.js"></script>
<link rel="stylesheet" href="ui/popup.css" />
</head>

<body>
<div id="courseraModel">
<div id="courseraModelContent">
<h1 id="courseraModelTitle">Coursera Automation Extension</h1>
<div id="courseraModelGrid"></div>
</div>
<footer id="footer">
<svg
stroke="#ffffff"
fill="#ffffff"
stroke-width="0"
viewBox="0 0 384 512"
height="1em"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"
></path>
</svg>
<span id="author">Saurav Hathi</span>
</footer>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions dist/scripts/background.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/scripts/content.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/scripts/popup.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/scripts/rdr.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions dist/ui/content.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.thin-scroll::-webkit-scrollbar {
width: 0.3em;
height: 0.3em;
}

.thin-scroll::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px #eff4ff;
}

.thin-scroll::-webkit-scrollbar-thumb {
background-color: #3872e3;
outline: none;
border-radius: 10px;
}
62 changes: 62 additions & 0 deletions dist/ui/popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#author,
#footer,
.courseraModelBtn {
font-weight: 700;
}
:root {
--primary-color: #00ff00;
--secondary-color: #333333;
--background-color: #1a1a1a;
}
#courseraModel,
body {
background-color: var(--background-color);
padding: 10px;
border-radius: 10px;
width: fit-content;
height: fit-content;
font-family: Arial, sans-serif;
}
#courseraModelContent {
display: flex;
flex-direction: column;
gap: 14px;
}
#courseraModelTitle {
font-size: 20px;
font-weight: 700;
color: #fff;
margin: 0;
text-align: center;
white-space: nowrap;
}
#courseraModelGrid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.courseraModelBtn {
padding: 10px;
font-size: 16px;
border: none;
border-radius: 5px;
background-color: var(--secondary-color);
color: var(--primary-color);
cursor: pointer;
white-space: nowrap;
}

.courseraModelBtn:disabled {
background-color: #333;
color: #666;
cursor: not-allowed;
}

#footer {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
color: #fff;
margin-top: 20px;
}
22 changes: 11 additions & 11 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"manifest_version": 3,
"name": "Coursera Automation Extension",
"version": "2.4.4",
"version": "3.5.4",
"author": "Saurav Hathi",
"version_name": "Release Version",
"description": "This extension is used to attempt the coursera course quiz, video, reading material, ungraded plugin and discussion automatically.",
"permissions": ["storage", "activeTab", "scripting", "tabs", "commands"],
"background": {
"service_worker": "/scripts/background.js"
"service_worker": "/dist/scripts/background.js"
},
"icons": {
"16": "images/1.png",
"32": "images/2.png",
"48": "images/3.png",
"128": "images/4.png"
"16": "dist/assets/1.png",
"32": "dist/assets/2.png",
"48": "dist/assets/3.png",
"128": "dist/assets/4.png"
},
"action": {
"default_popup": "/popup/popup.html"
"default_popup": "dist/popup.html"
},
"content_scripts": [
{
"run_at": "document_start",
"matches": ["*://*.coursera.org/*"],
"js": ["/scripts/minifyContent.js"],
"css": ["/styles/content.css"]
"js": ["dist/scripts/content.js"],
"css": ["dist/ui/content.css"]
}
],
"commands": {
Expand All @@ -44,9 +44,9 @@
},
"web_accessible_resources": [
{
"resources": ["minifyrdr.js"],
"resources": ["dist/scripts/rdr.js"],
"matches": ["*://*.coursera.org/*"]
}
],
"host_permissions": ["*://*.coursera.org/*"]
}
}
1 change: 0 additions & 1 deletion minifyrdr.js

This file was deleted.

Loading

0 comments on commit 4075402

Please sign in to comment.