Hide Payout Update: Add Customize Rules + Hide busy.org Wallet

in #utopian-io7 years ago (edited)

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?
  1. Adding customize rules editor
  2. Hide busy.wall wallet
  • How did you implement it/them?
  1. here and
  2. here

ScreenShots

add customize rule:

image.png

wallet removed:

image.png

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

  1. voting me here, or
  2. voting me as a proxy.

Thank you! You may also like: SteemIt Tools, Bots, APIs and Tutorial



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

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

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Coin Marketplace

STEEM 0.20
TRX 0.20
JST 0.034
BTC 90437.72
ETH 3138.83
USDT 1.00
SBD 2.95