This commit is contained in:
lunaticbum 2025-07-21 20:10:49 +09:00
commit 9526cf1bac
3 changed files with 49 additions and 8 deletions

View File

@ -85,7 +85,7 @@
android:theme="@style/Theme.LunarLauncher.Starting" android:theme="@style/Theme.LunarLauncher.Starting"
android:launchMode="singleInstance" android:launchMode="singleInstance"
android:screenOrientation="userPortrait" android:screenOrientation="userPortrait"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|screenLayout|layoutDirection" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|screenLayout|layoutDirection|navigation"
android:windowSoftInputMode="adjustResize" android:windowSoftInputMode="adjustResize"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>

View File

@ -63,7 +63,7 @@ port.onMessage.addListener(response => {
}else { }else {
document.querySelector("#goNextBtn").click() document.querySelector("#goNextBtn").click()
} }
document.querySelector(".link_ad")
} }
} }
} }
@ -86,11 +86,7 @@ port.onMessage.addListener(response => {
break break
} }
}); });
if (document.location.href.search("reddit") > -1) {
if (document.querySelector('#xpromo-bottom-sheet')) {
document.querySelector('#xpromo-bottom-sheet').remove()
}
}
if (document.querySelector(".show_viewer") !== null) { if (document.querySelector(".show_viewer") !== null) {
document.querySelector(".show_viewer").click(); document.querySelector(".show_viewer").click();
sendMessage({type: "SHOWVIEWER"}); sendMessage({type: "SHOWVIEWER"});
@ -242,7 +238,52 @@ function toast(msg) {
port.postMessage(JSON.stringify({type:"MSG",msg:msg})); port.postMessage(JSON.stringify({type:"MSG",msg:msg}));
} }
if (port) {
setTimeout(
function(){
if (location.hostname.search("clien") > -1 && document.querySelectorAll('[class^="view_top"]')) {
document.querySelectorAll('[class^="view_top"]').forEach(e => e.remove())
}
function dssd() { if (location.hostname.search("toki") > -1 && document.querySelectorAll('[id^="id_mbv"]')) {
document.querySelectorAll('[id^="id_mbv"]').forEach(e => e.remove())
}
if (location.hostname.search("toki") > -1 && document.querySelectorAll('[class^="basic-banner"]')) {
document.querySelectorAll('[class^="basic-banner"]').forEach(e => e.remove())
}
if (document.querySelector(".top_google_ad_space")) {
document.querySelector(".top_google_ad_space").remove()
}
if (document.querySelectorAll(".adv-group")) {
document.querySelectorAll(".adv-group").forEach(e =>
e.remove()
)
}
if (document.querySelectorAll('[id^="div-gpt-ad"]')) {
document.querySelectorAll('[id^="div-gpt-ad"]').forEach(e =>
e.remove()
)
}
if (document.location.href.search("reddit") > -1) {
if (document.querySelector('#xpromo-bottom-sheet')) {
document.querySelector('#xpromo-bottom-sheet').remove()
}
}
if (document.querySelectorAll('[id^="div_adnmore_area"]')) {
document.querySelectorAll('[id^="div_adnmore_area"]').forEach(e =>
e.remove()
)
}
if (document.querySelectorAll('[id^="div_adnmore_area"]')) {
document.querySelectorAll('[id^="div_adnmore_area"]').forEach(e =>
e.remove()
)
}
if (document.querySelectorAll('[class^="adv-groupno"]')) {
document.querySelectorAll('[class^="adv-groupno"]').forEach(e =>
e.remove()
)
}
},1500)
} }