2025-06-13
- YT ads
- Used req2proto (https://github.com/ddd/req2proto) to get current gRPC definition
- issue with bc-def script making stringify non-configurable before uBO scriptlets run
- yt does
Object.assign({}, [fetch request], { body: [json to fetch] })- can do smth withObject.assign?- can do this as a userscript
Object.realAssign = Object.assign; Object.assign = function(a,b,c) { let ret = Object.realAssign.apply(this, arguments); if (arguments.length === 3 && typeof c === "object" && c.body) { ret.body = c.body.replace(/"contentPlaybackContext":{/, '"contentPlaybackContext":{"isInlinePlaybackNoAd":true,'); } return ret; }
- safer
try { Object.realAssign = Object.assign; Object.assign = function(a,b,c) { let ret = Object.realAssign.apply(this, arguments); try { if (arguments.length === 3 && typeof c === "object" && c.body) { ret.body = c.body.replace(/"contentPlaybackContext":{/, '"contentPlaybackContext":{"isInlinePlaybackNoAd":true,'); } } catch (e) {} return ret; } } catch (e) {}// one-lined try {Object.realAssign=Object.assign;Object.assign=function(a,b,c) {let ret = Object.realAssign.apply(this, arguments);try {if (arguments.length === 3 && typeof c === "object" && c.body) {ret.body = c.body.replace(/"contentPlaybackContext":{/, '"contentPlaybackContext":{"isInlinePlaybackNoAd":true,');}} catch (e) {}return ret;}} catch (e) {}
- can do this as a userscript
- I don't get bc-def when logged out now
- sometimes I do though, seems random
- yt does