BeyondDimension / BeyondDimension/SteamTools

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

Open
#2,497 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
26.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

GM 核心不兼容@require

### 🐛 描述(Description)

GM 核心不兼容@require的这种写法,同样的写法在浏览器中的支持的。
```js
// @require data:application/javascript,%3Bvar%20Reflect%3Dwindow.Reflect%3B
```

### 📷 复现步骤(Steps to Reproduce)

1. 使用[steam-price-converter.user.js-2.0.2.zip](https://github.com/marioplus/steam-price-converter/releases/tag/v2.0.2)中的 `steam-price-converter.user.js`导入
2. 进入 steam 商店首页

使用压缩包内的 `steam-price-converter.user.steam++.js` 则正常,唯一的区别是35行增加了一行代码
```js
;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](https://user-images.githubusercontent.com/26264731/215224532-f4d874fe-aeaf-4db2-94c2-35b42c0ce486.png)

- steam-price-converter.user.js
![steam-price-converter.user.js](https://user-images.githubusercontent.com/26264731/215224692-0b6266ea-9bd9-4c39-a099-a79ce8ddea85.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.