Hide Payout Update: Add Customize Rules + Hide busy.org Wallet
Introduction
Hide-SteemIt-Payout is a chrome extension that hides payout and wallets for most steemit sites. I am adding a customize rule editor in this version so that in the future the users can add rules by themselves without need for a new version.
The tool's slogan If payout makes you unhappy, why not hide it? Indeed, the steemit is not a place to make money, at least it should not be advertised in this way. Steemit is a social platform, where we make friends and promote healthy, useful contents.
New Features
- What feature(s) did you add?
- Adding customize rules editor
- Hide busy.wall wallet
- How did you implement it/them?
ScreenShots
add customize rule:
wallet removed:
Javascript to clear payout
Hide payout via Javascript DOM:
function clearPayout() {
let url = location.href;
if (IsSteemWebsite(url)) {
let e = document.querySelectorAll('span.FormattedAsset');
for (let i = e.length - 1; i >= 0; -- i) {
e[i].innerHTML = XXX;
}
e = document.querySelectorAll('span.post-payout');
for (let i = e.length - 1; i >= 0; -- i) {
e[i].innerHTML = XXX;
}
e = document.querySelectorAll('span.Payout');
for (let i = e.length - 1; i >= 0; -- i) {
e[i].innerHTML = XXX;
}
e = document.querySelectorAll("a[href*=transfers]");
for (let i = e.length - 1; i >= 0; -- i) {
e[i].innerHTML = '';
e[i].setAttribute("href", "#");
}
for (let i = 0; i < ruleslen; ++ i) {
let rule = arr[i];
if (rule) {
let [domain, dom] = /([^\s]+)\s(.+)/.exec(rule).slice(1);
if (domain && dom) {
let e = document.querySelectorAll("li[data-key=transfers]");
if (e) {
for (let i = e.length - 1; i >= 0; -- i) {
e[i].innerHTML = '';
e[i].setAttribute("href", "#");
}
}
}
}
}
if (url.includes("busy.org")) {
let e = document.querySelectorAll("li[data-key=transfers]");
for (let i = e.length - 1; i >= 0; -- i) {
e[i].innerHTML = '';
}
}
}
}
Chrome Webstore
Chrome Extension Available: https://chrome.google.com/webstore/detail/hide-steemit-payout/lbpcheminbfokogdnckkipdmaadldhlh
Support me and my work as a witness by
Thank you! You may also like: SteemIt Tools, Bots, APIs and Tutorial
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved. I've had interesting debates with other Steemians about this : "Come for the money, stay for the community". Even though money is a huge part of what the ecosystem is, I think some will be interested in your feature in order to judge contributions without bias. Thanks for going through the trouble of scrapping all the right classes in the different platforms, I know how painful this is!
You can contact us on Discord.
[utopian-moderator]
Thank you very much. It is not easy to get many people agree on this and some may even say this plugin is useless ! :(
Hey @stoodkev, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Hey @justyy I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x