可以通过我们的前端插件来实现隐藏:
GD.on('gd-route-change', () => {
const { pathname, search } = window.location
if(pathname.includes('/cast') && search.includes('ps=iframe2')) {
const styleEle = document.getElementById('_custom_hide_cast_exit_button__')
if(styleEle) return
const newStyle = document.createElement('style')
newStyle.id = '_custom_hide_cast_exit_button__'
const textNode = `
#page-container > #pageContent .digitalLayoutContainer + div {
display: none !important;
}
`
const css = document.createTextNode(textNode)
newStyle.appendChild(css)
document.head.appendChild(newStyle)
}
}) |