-
-
Save kotjea2137/51b6e88cdb2eacce91c96a2f893d178b to your computer and use it in GitHub Desktop.
Kara Mobile User JS For Android/iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const removeBible = async () => { | |
let originalPosts = []; | |
const response = await fetch( | |
performance.getEntriesByType("navigation")[0].name | |
); | |
const text = await response.text(); | |
const smok = document.getElementById("smok"); | |
smok.innerHTML = text; | |
smok.style.display = "none"; | |
const posts = document.querySelectorAll("#smok blockquote"); | |
for (const post of posts) { | |
const postId = post.getAttribute("id"); | |
const postContent = post.innerHTML; | |
originalPosts.push({ | |
postId, | |
postContent, | |
}); | |
} | |
smok.remove(); | |
originalPosts.forEach((post) => { | |
if (post.postId) { | |
const contentSelector = | |
".postContainer #p" + post.postId.substring(1) + " .postMessage"; | |
document.querySelector(contentSelector).innerHTML = post.postContent; | |
} | |
}); | |
document.querySelector(".blockquoteReply").innerHTML = | |
originalPosts[originalPosts.length - 1].postContent; | |
document.querySelector(".updateLink").click(); | |
}; | |
if (window.location.href.includes("/b/")) { | |
removeBible(); | |
localStorage.xD="xD"; | |
document.querySelector('#jesli-zablokujesz-tego-diva-ukraina-odniesie-zwyciestwo').remove(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment