TypeError: b'Pizza is a flatbread generally topped with tomato sauce and cheese and baked in an oven. It is commonly topped with a selection of meats, vegetables and condiments. The term was first recorded in the 10th century, in a Latin manuscript from Gaeta in Central Italy. The modern pizza was invented in Naples, Italy, and the dish and its variants have since become popular in many areas of the world.\nIn 2009, upon Italy\'s request, Neapolitan pizza was safeguarded in …Run Code Online (Sandbox Code Playgroud) 有一个Web应用程序发出请求(我们称它为/api/item)。该请求返回一个带有称为的字段的json主体,该字段itemData通常对用户隐藏,但我想显示该字段。
那么,如何使用户脚本在以下位置监听请求/api/item并显示itemData字段?
作为参考,webapp发出请求的方式为:
return Promise.resolve(new Request(e,r)).then(sendCookies).then(addLangParam).then(addCacheParam).then(addXsrfKey).then(checkZeroRating).then(function(e) {
return fetch(e)
}).then(checkStatus).then(checkApiVersionMismatch).then(checkApiResponse)
Run Code Online (Sandbox Code Playgroud)
大多数都无关紧要,但重要的部分是Request(我认为)。
fetch-api ×1
greasemonkey ×1
javascript ×1
python ×1
python-3.x ×1
tampermonkey ×1
userscripts ×1