Hey, I have created an open source extension based on TryNinja's script that is working perfectly on Chrome browser. The source is completely open and anyone can use it without any issue. I could keep that thing closed source but that would not be helpful for anyone.
Here's the link of the source code of the extension:
https://file.io/d9uQUNNZVwg5In order to install the extension, first you need to unzip the files in a folder and then enable developer mode in the extension, and after that click on Load unpacked and then select the folder of the extension, and it will be automatically installed.
Further if you want to make it from the source code then create a file and name it as contents.js and paste the following code in that file:
// content.js
try {
document.getElementById("smfheader").style.display = "none";
document.getElementById("hellomember").style.display = "none";
const avatars = document.querySelectorAll(".avatar");
avatars.forEach((avatar) => {
avatar.style.display = "none";
});
} catch (error) {
console.error("An error occurred:", error);
}
And then you will need to create another file and name it as manifest.json and paste the following code:
{
"manifest_version": 3,
"name": "Hide BitcoinTalk Username and Avatar",
"version": "1.0",
"description": "A Chrome extension to hide BitcoinTalk username and avatar",
"permissions": [
"activeTab"
],
"content_scripts": [
{
"matches": ["*://bitcointalk.org/*"],
"js": ["content.js"]
}
],
"action": {
"default_popup": "popup.html"
}
}
Once done save those into a folder and load it using the method mentioned above. I hope this will be helpful for the members of the forum. Remember it's based on TryNinja's script so all the credit goes to him!