Skip to content

Commit

Permalink
Merge pull request #1800 from brave/fix-yt-buff
Browse files Browse the repository at this point in the history
Temp disable YT rule
  • Loading branch information
ryanbr authored Jun 9, 2024
2 parents 079e96d + 07c525b commit 2d6dc20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brave-unbreak.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ search.brave.com###search-ad
! pageview-api detection
music.youtube.com##+js(brave-video-bg-play)
music.youtube.com,channel4.com,crunchyroll.com,fubo.tv,gem.cbc.ca,shudder.com,watch.att.com,crave.ca,tvnz.co.nz,threenow.co.nz,foxtel.com.au,stan.com.au,binge.com.au,skygo.co.nz,hulu.com,disneyplus.com,max.com,paramountplus.com,peacocktv.com,pandora.com,deezer.com,slingtv.com,discoveryplus.com,curiositystream.com,spotify.com,netflix.com,tidal.com,soundcloud.com,music.apple.com,nicovideo.jp,tiktok.com,twitch.tv,nzherald.co.nz##+js(brave-disable-pageview-api)
! buffering issues https://community.brave.com/t/youtube-black-video-with-buffer-icon/552783
m.youtube.com,music.youtube.com,www.youtube.com#@#+js(trusted-rpnt, script, window.Polymer=, /*start*/(function(){const e={apply:(e\,t\,o)=>{if(!window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id||!o[0]||"X-Goog-Visitor-Id"!==o[0]||!o[1])return Reflect.apply(e\,t\,o)}};window.XMLHttpRequest.prototype.setRequestHeader=new Proxy(window.XMLHttpRequest.prototype.setRequestHeader\,e)})();(function(){const e={construct:(e\,t\,o)=>{if(window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id){const c=t[0]\,s=t[1];if("https://www.youtube.com/"!==location.href&&c&&c.includes?.("/youtubei/"))try{delete s.headers["X-Goog-Visitor-Id"]}catch(e){}if(s&&s.body?.includes("visitorData"))try{t[1].body=t[1].body.replace(/"visitorData":".*?"\,/\,"")}catch(e){}if(c&&c.includes?.("&sabr=1"))try{t[0]=t[0].replace("&sabr=1"\,"")}catch(e){}}return Reflect.construct(e\,t\,o)}};window.Request=new Proxy(window.Request\,e)})();document.currentScript.textContent=document.currentScript.textContent.replace(/\/\*start\*\/(.*)\/\*end\*\//g\,"");/*end*/window.Polymer=)
! counter FF ubo rules
! avoid interference
m.youtube.com,music.youtube.com,www.youtube.com#@#+js(trusted-rpnt, script, window.Polymer=, /*start*/(function(){const e={apply:(e\,t\,o)=>{if(!window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id||!o[0]||"X-Goog-Visitor-Id"!==o[0]||!o[1])return Reflect.apply(e\,t\,o)}};window.XMLHttpRequest.prototype.setRequestHeader=new Proxy(window.XMLHttpRequest.prototype.setRequestHeader\,e)})();(function(){const e={construct:(e\,t\,o)=>{if(window.yt?.config_?.EXPERIMENT_FLAGS?.html5_enable_ssap_entity_id){const c=t[0]\,s=t[1];if("https://www.youtube.com/"!==location.href&&c&&c.includes?.("/youtubei/"))try{delete s.headers["X-Goog-Visitor-Id"]}catch(e){}if(s&&s.body?.includes("visitorData"))try{t[1].body=t[1].body.replace(/"visitorData":".*?"\,/\,"")}catch(e){}}return Reflect.construct(e\,t\,o)}};window.Request=new Proxy(window.Request\,e)})();document.currentScript.textContent=document.currentScript.textContent.replace(/\/\*start\*\/(.*)\/\*end\*\//g\,"");/*end*/window.Polymer=)
Expand Down

0 comments on commit 2d6dc20

Please sign in to comment.