Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add http request headers #737

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Add http request headers #737

merged 4 commits into from
Oct 2, 2024

Conversation

boomzero
Copy link
Member

@boomzero boomzero commented Oct 2, 2024

What does this PR aim to accomplish?:

This pull request includes updates to the XMOJ.user.js script to enhance API requests and improve the rendering process for MathJax. The most important changes include adding new headers to the API requests and ensuring that MathJax rendering is awaited properly.

How does this PR accomplish the above?:

Enhancements to API requests:

  • XMOJ.user.js: Added new headers XMOJ-UserID, XMOJ-Script-Version, and DebugMode to the RequestAPI function to provide more context and control over the requests.

By submitting this pull request, I confirm the following:

  1. I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented my proposed changes within the code and I have tested my changes.
  3. I am willing to help maintain this change if there are issues with it later.
  4. It is compatible with the GNU General Public License v3.0
  5. I have squashed any insignificant commits. (git rebase)
  6. I have checked that another pull request for this purpose does not exist.
  7. I have considered, and confirmed that this submission will be valuable to others.
  8. I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  9. I give this submission freely, and claim no ownership to its content.

  • I have read the above and my PR is ready for review. Check this box to confirm

@hendragon-bot hendragon-bot bot added the user-script This issue or pull request is related to the main user script label Oct 2, 2024
@pull-request-size pull-request-size bot added size/S and removed size/XS labels Oct 2, 2024
Copy link
Contributor

github-actions bot commented Oct 2, 2024

Qodana for JS

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@boomzero boomzero merged commit 280ca3e into dev Oct 2, 2024
3 checks passed
@boomzero boomzero deleted the boomzero/headers! branch October 2, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S user-script This issue or pull request is related to the main user script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant