jQuery Library Conflict (TamperMonkey)

Hello all! I'm writing a short little script for a website I use frequently using TamperMonkey. I'm coding in jQuery, but the site uses a different library. These two libraries conflict and break some of the site's built-in coding (all my customizations work).

I went through this https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ and it seemed perfect for what I was trying to do, but TamperMonkey insists that
jQuery
is an undefined function and cannot be used. When I force it to run on the site, it throws a console error as well.

This is what I have so far, with the main code snipped since it's not relevent.

// ==UserScript==
// @name         {snipped}
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  {snipped}
// @author       You
// @match        {snipped}
// @require      http://code.jquery.com/jquery-3.7.1.min.js
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pokefarm.com
// @grant        none
// ==/UserScript==

/* global jQuery */

jQuery.noConflict();

jQuery( document ).ready(function( $ ) { ... });
Was this page helpful?