Skip to content

[BUG] Steam Inventory Helper does not work in ScriptCat #737

@xPaw

Description

@xPaw

Problem Description

The script: https://github.com/Nuklon/Steam-Economy-Enhancer

It works in tampermonkey, and worked in violentmonkey (v2), I'm not quite sure what scriptcat is doing that makes it fails in this way. It's failing inside of "jQuery UI" code when it's called by execScript?

ERROR: Execution of script 'Steam Economy Enhancer' failed! Maximum call stack size exceeded
Steam Economy Enhancer.user.js:12555 RangeError: Maximum call stack size exceeded
    at Arguments.slice (<anonymous>)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1620)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)
    at V.widget.extend (Steam Economy Enhancer.user.js:11:1796)

Reproduction Steps

  1. Install https://raw.githubusercontent.com/Nuklon/Steam-Economy-Enhancer/master/code.user.js
  2. Open https://steamcommunity.com/market/

Minimal script to repro:

// ==UserScript==
// @name         test
// @namespace    test
// @description  test
// @version      1.0
// @match        https://*/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.14.1/jquery-ui.min.js
// ==/UserScript==

ScriptCat Version

1.1.1

Operating System and Browser Information

Windows 11 Chrome 140.0.7339.128 (Official Build) (64-bit)

Additional Information (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions