Skip to content

Instantly share code, notes, and snippets.

@kotjea2137
Last active September 24, 2022 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kotjea2137/51b6e88cdb2eacce91c96a2f893d178b to your computer and use it in GitHub Desktop.
Save kotjea2137/51b6e88cdb2eacce91c96a2f893d178b to your computer and use it in GitHub Desktop.
Kara Mobile User JS For Android/iOS
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