"FlagIt" Grease Monkey Script - Opting into Classic Flags

in flag •  5 years ago 

They may change the code but they will never take my flags away. 🚩

image.png

The beautiful thing is that anybody with the ability to design the front end can create a flag friendly UI. I'm not quite there yet but played around with jury rigging a client side script.

I held a minority view on the topic of this somewhat recent change to condenser and wasn't exactly thrilled for the symbol of the flag being "replaced" but understood the rationale. It's just that I had been building on flags for some time so I was taken aback.

Flags have been a part of the history of our blockchain. Many of my Steem projects I guess you can say are flag centric. Don't get me wrong. Their design is to serve the interests of the people and the people have spoken concerning flags v. downvotes. That doesn't however mean that we don't have the capability to choose. That's the beautiful thing.

As far as the blockchain is concerned, the discussion of flag v. downvote is not a thing as the nomenclature is really only pertinent to the UI. That being said, anybody can design a website with their own terminology and graphics. I mean imagine all the prospects for what could be substituted for a flag or downvote.

Here are a few of mine:

  • Tomatoes (you know like they used to throw on-stage) 🍅

  • Poo Emoji💩

  • Thumbs-down (obviously) 👎

Whatever the label, flags or downvotes will always be an important thing for me. It is probably one of the more intriguing aspects of this blockchain. I love that it allows the people to make a decision and redistribute rewards back to the pool. They are a great thing when used properly.

To satiate my nostalgia, I have created the following script to be used with the Grease Monkey Firefox plugin which is a work in progress to replace the downvote vector graphic with the classic flag. I need to figure out how to add the hover, on-click animations.

greasemonkeyflag.gif

During the process of getting this far, I have learned a few things namely how to work with the Firefox Web Developer Tools console which could be helpful.

greasemonkeyflag2.gif

// ==UserScript==
// @name     Flagit
// @version  1
// @grant    none
// @namespace https://github.com/anthonyadavisii
// @description Steemit Flag Classic 
// @include https://steemit.com/*
// ==/UserScript==

function replaceElementByClass(element_class, what) {
    var elem = document.getElementsByClassName(element_class);
    for (var i = 0; i < elem.length; i++) {
            elem[i].innerHTML = what;
    }
}

flag = "<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"Layer_1\" viewBox=\"0 0 512 512\" x=\"0px\" y=\"0px\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" xml:space=\"preserve\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\"><g><path d=\"M 368 112 c -11 1.4 -24.9 3.5 -39.7 3.5 c -23.1 0 -44 -5.7 -65.2 -10.2 c -21.5 -4.6 -43.7 -9.3 -67.2 -9.3 c -46.9 0 -62.8 10.1 -64.4 11.2 l -3.4 2.4 v 2.6 v 161.7 V 416 h 16 V 272.7 c 6 -2.5 21.8 -6.9 51.9 -6.9 c 21.8 0 42.2 8.3 63.9 13 c 22 4.7 44.8 9.6 69.5 9.6 c 14.7 0 27.7 -2 38.7 -3.3 c 6 -0.7 11.3 -1.4 16 -2.2 V 126 v -16.5 C 379.4 110.4 374 111.2 368 112 Z M 368 269 c -11 1.4 -23.9 3.5 -38.7 3.5 c -23.1 0 -45 -4.7 -66.2 -9.2 c -21.5 -4.6 -43.6 -13.3 -67.1 -13.3 c -25.7 0 -41.9 3 -51.9 6 V 118.7 c 6 -2.5 21.9 -6.8 51.9 -6.8 c 21.8 0 42.2 4.3 63.9 9 c 22 4.7 43.8 10.6 68.5 10.6 c 14.7 0 28.7 -2 39.7 -3.3 L 368 269 L 368 269 Z\" /></g></svg>"
replaceElementByClass("Icon chevron-down-circle flag", flag);.

Bonus Offer

I'll pay 3 SBD to anyone that can finish or create a new Grease Monkey script to bring back the flags to the Condenser UI

I don't really have time right now but it's a fun little aesthetic project for when I do.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Yes, I am not a fan of replacing "flags" with "downvotes" either. By the time they announced the change publicly, I think it was already implemented, so there wasn't really much room for people to have a say in the matter. I think I commented on the initial announcement post that they should change it back, but didn't get any response. Steemit is their website, so they can do whatever they want with it I guess.

A lot of new users don't understand flags primarily affect reputation and visibility, and often has very little to do with polling how many people like or dislike something.

Keep up the good work. Always appreciate the efforts of folks who understand the deeper details and ethics of how this blockchain is meant to operate for the best user experience. Even opening communication and awareness like this improves my perspective.

primarily affect reputation and visibility

The latter is definitely true but the former only if your rep exceeds the flagged which I think can be unfortunate when that user has achieved a greater rep due to reward manipulation, buying votes, circle jerking, proxy self voting etc.

I think I would say the primary function for me is the affecting payout and thus incentives for the activity. For example, a user just spinning content from an external site.

Another one is reposting which I think is just fine provided the user adds something maybe a preface specific to the Steem audience. Hopefully, users realize that they have the power to change the patterns of old and help build a more collaborative culture that adds value to the ecosystem.

As they say, a few bad apples ruin bunch or "a little leaven leavens the lump". Thanks for the thoughtful comment as always!

Posted using Partiko Android

So true. Yes, we gotta stop the robbers who are hogging the rewards by abusing the system and draining the rewards from people who deserve it more. That is probably the most important reason for flagging.

I was flagged on some of my own personal blogs due to someone just disagreeing with active steps. I assume the persons were a collective troll account, but it would have been better to just recieve a downvote. There should be an option for flags and downvotes either way. We should also be allowed to pin articles to the top of our blog for a 7 day period or set a time.

Sorry that happened to you. Sounds kind of petty but I guess I can understand the rationale but probably would not do that myself.

The reason being is, if you obviously took the time and effort to create a contribution that is unique to the blockchain, that is worth probably more than 90% of the low effort junk out there.

If I had an opinion to improve your steps, I would just comment and provide it as constructive feedback. I would not downvote in that instance but I guess the argument can be made that content that has inaccurate information (which can be subjective to the users knowledge - they could be the one that has it wrong) is less valuable and could use that to justify their negative vote.

That's not the way I do things as I feel it is more important to encourage (unless we are dealing with spam or abuse - that's a different story). We can correct people in the comments just fine. Thanks for sharing your thoughts.

I preferred to block a person who was being difficult, downvotes or/and flagging leave one to ponder having had some troll automatically downvoting for months.

Good luck finding a creator to complete the script!

Hi Joan,

Been awhile. I remember you from Steemthat ages ago now known as Stish. (Eric has come a long way with the site)

The reason I do not like to use the mute button is I want to maintain situational awareness of abusers. If the fox is stealing eggs from the chicken coop, don't matter if I close my eyes. That litter critter is still getting away with our eggs.

Some people can be annoying and spam so I get muting in that case.

Posted using Partiko Android

Yes Stish is doing well in growing, I have not used the platform in some time but like to keep in touch.

Only big offenders get blocked, glad I have only had to deal with a couple. I agree it is better to keep your friends close and your enemies even closer, good luck with getting more organized in fighting crime online Anthony.

Congratulations @anthonyadavisii! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You got more than 3750 replies. Your next target is to reach 4000 replies.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Hi, @anthonyadavisii!

You just got a 14.5% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @anthonyadavisii!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.797 which ranks you at #1395 across all Steem accounts.
Your rank has dropped 1 places in the last three days (old rank 1394).

In our last Algorithmic Curation Round, consisting of 171 contributions, your post is ranked at #55.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • The readers like your work!
  • You have already shown user engagement, try to improve it further.

Feel free to join our @steem-ua Discord server

They changed the flags for downvotes because they wanted to be more like Reddit and other social networks... probably...