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

🐛[BUG] GM 核心不兼容@require #2497

Open
marioplus opened this issue Jan 27, 2023 · 2 comments
Open

🐛[BUG] GM 核心不兼容@require #2497

marioplus opened this issue Jan 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@marioplus
Copy link

GM 核心不兼容@require

🐛 描述(Description)

GM 核心不兼容@require的这种写法,同样的写法在浏览器中的支持的。

// @require      data:application/javascript,%3Bvar%20Reflect%3Dwindow.Reflect%3B

📷 复现步骤(Steps to Reproduce)

  1. 使用steam-price-converter.user.js-2.0.2.zip中的 steam-price-converter.user.js导入
  2. 进入 steam 商店首页

使用压缩包内的 steam-price-converter.user.steam++.js 则正常,唯一的区别是35行增加了一行代码

;var Reflect=window.Reflect;

📄 日志信息(Log Information)

Uncaught TypeError: Reflect.get is not a function
    at 11:177
    at 11:2258
    at 11:2260
    at 11:2260

🚑 基本信息(Basic Information)

  • GM : 2.0.0.8
  • Steam++: 2.8.6 for Windows Desktop Bridge(x86)
  • OS: Windows 11 专业版 22H2
  • Browser: Crome 109.0.5414.120
  • Tampermonkey: BETA 4.19.6176

截图

  • steam-price-converter.user.steam++.js
    steam-price-converter.user.steam++.js

  • steam-price-converter.user.js
    steam-price-converter.user.js

@marioplus marioplus added the bug Something isn't working label Jan 27, 2023
@Mossimos
Copy link
Contributor

目前程序内的实现只是非常简单的几个方法
这种需要在打包时去解决,修改这个方法必须更新客户端。
目前只能通过手动在内部添加方法兼容。

@Mossimos
Copy link
Contributor

以及
https://cdn.jsdelivr.net/npm/reflect-metadata@0.1.13/Reflect.min.js
在我长沙联通的环境下时不时无法访问。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants