Skip to content

Instantly share code, notes, and snippets.

@scarf005
Last active September 14, 2025 03:14
Show Gist options
  • Select an option

  • Save scarf005/fa439569d0d146fb4c25b9a388429d1e to your computer and use it in GitHub Desktop.

Select an option

Save scarf005/fa439569d0d146fb4c25b9a388429d1e to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name 파파존스 무조건 소스많이
// @namespace https://github.com/scarf005
// @description 무조건 소스많이!!!!!!
// @author scarf
// @version 1.2.0
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
//
// @homepageURL https://gist.github.com/scarf005/fa439569d0d146fb4c25b9a388429d1e
// @supportURL https://gist.github.com/scarf005/fa439569d0d146fb4c25b9a388429d1e
// @downloadURL https://gist.github.com/scarf005/fa439569d0d146fb4c25b9a388429d1e/more-sauce.user.js
//
// @match https://pji.co.kr/menu/productPizzaDetail*
// @match https://pji.co.kr/menu/w_productHalf*
// @match https://pji.co.kr/w_main*
// @grant GM.addStyle
// ==/UserScript==
{
GM.addStyle(`button.btn_payment[disabled] { background-color: gray; }`)
const check = (event) => {
// console.log(event)
const paymentButton = document.querySelector("button.btn_payment")
if (!paymentButton) return
const sauce = document.querySelector(`input[type=radio][id=odsSauce][data-text="소스 많이"]`)
sauce?.click()
paymentButton.disabled = sauce?.getAttribute("data-text") !== "소스 많이"
}
document.addEventListener("change", check)
check()
const orderwayView = document.querySelector("#orderwayView")
const localFirst = (_, observer) => {
const localAddress = document.querySelector(`input[name="local_address"]`)
if (!localAddress) return
localAddress.click()
observer.disconnect()
}
orderwayView && new MutationObserver(localFirst).observe(orderwayView, { childList: true, subtree: true })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment