Skip to content

Instantly share code, notes, and snippets.

@xnuk
Created November 27, 2022 14:04
Show Gist options
  • Save xnuk/be1e93f041f6e85ee4b90fbd4532f8e2 to your computer and use it in GitHub Desktop.
Save xnuk/be1e93f041f6e85ee4b90fbd4532f8e2 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name jQuery ajax force async
// @version 1
// @grant none
// @run-at document-end
// @match https://stdict.korean.go.kr/search/*
// ==/UserScript==
const a = () => {
const ajax = window.$.ajax.bind(window.$)
window.$.ajax = (first, ...args) => {
if (first != null) first.async = true
return ajax(first, ...args)
}
}
unsafeWindow.eval('(' + a + ')()')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment