Addition of New Bots by User for Trending Posts

in #utopian-io6 years ago (edited)

Organic Post Viewer is a tool to see Steemit trending posts that did not pay to bid-bots to buy upvotes.

New Features

  • BEFORE : No bot addition by user, only the ones in the current array.

var bots = ["postdoctor", "moneymatchgaming", "slimwhale", "boostbot", "honestbot", "ebargains", "lost-ninja", "estream.studios", "adriatik", "redwhale", "minnowhelper", "mrswhale", "foxyd", "mitsuko", "dailyupvotes", "lovejuice", "steembloggers", "booster", "megabot", "voterunner", "authors.league", "canalcrypto", "whalebuilder", "mercurybot", "msp-bidbot", "promobot", "upmewhale", "redlambo", "lrd", "lightningbolt", "sunrawhale", "upyou", "thebot", "onlyprofitbot", "pushbot", "flymehigh", "nado.bot", "seakraken", "spydo", "childfund", "minnowvotes", "dolphinbot", "upme", "upboater", "proffit", "bluebot", "brupvoter", "oceanwhale", "jerrybanfield", "luckyvotes", "minnowfairy", "estabond", "bodzila", "peace-bot", "appreciator", "discordia", "emperorofnaps", "zapzap", "cryptoempire", "bearwards", "alphaprime", "therising", "buildawhale", "aksdwi", "sleeplesswhale", "isotonic", "noicebot", "upgoater", "dlivepromoter", "upmyvote", "youtake", "smartsteem", "fishbaitbot", "rocky1", "shares", "boomerang", "brandonfrye", "postpromoter", "pushup", "singing.beauty", "edensgarden", "pwrup", "inciter", "chronocrypto", "allaz", "sneaky-ninja"];

AFTER :

A bot addition button added to project.

image.png

When pressed, the current list of the bots is shown and there is an input box where the user can enter the name of the new bot.

image.png

Entering the new bot ( or circle voters ) name, it is added to the bot array.

image.png

As the close button is pressed, the list will be shown eliminating the posts that are upvoted by the new chosen bot or user.

image.png

The Scripts

  • Open a new div for bot addition screen

The function for making main screen invisible and bot addition div visible.

function add_bot() {
      document.getElementById("bots_div").style.display = 'block';
      document.getElementById("main_container").style.display = 'none';
      document.getElementById("rank_tag").style.display = 'none';
      document.getElementById("author_tag").style.display = 'none';
      document.getElementById("tags_div").style.display = 'none';
      document.getElementById("link_tag").style.display = 'none';
      document.getElementById("votes_tag").style.display = 'none';
      document.getElementById("value_tag").style.display = 'none';
      document.getElementById("info_tag").style.display = 'none';
      document.getElementById("button_div").style.display = 'none';
      document.getElementById("name_the_bots").innerHTML="";
      for (let i = 0; i < bots.length; i++) {
         document.getElementById("name_the_bots").innerHTML=document.getElementById("name_the_bots").innerHTML+bots[i]+"<br />";
      }
    }
  • Add new bot to array

The function to add new bot to array and write it to the bot list DIV.

function add_new_bot() {
 var new_bot = document.getElementById("username").value;
 if ((new_bot=="")||(new_bot=="botname")){      
 window.alert("Please enter a valid bot name");
 }      
 if ((new_bot!="")&&(new_bot!="botname")){
 bots.push(new_bot);
 var div_in=document.getElementById("name_the_bots").innerHTML
 document.getElementById("name_the_bots").innerHTML=new_bot+"<br />"+div_in; 
}
}
  • Close and Return to Search

The function connected to close button. It closes the bot addition div and re-make the search with the new bots added.

function close_bot(){
      document.getElementById("bots_div").style.display = 'none';
      document.getElementById("main_container").style.display = 'block';
      document.getElementById("rank_tag").style.display = 'block';
      document.getElementById("author_tag").style.display = 'block';
      document.getElementById("tags_div").style.display = 'block';
      document.getElementById("link_tag").style.display = 'block';
      document.getElementById("votes_tag").style.display = 'block';
      document.getElementById("value_tag").style.display = 'block';
      document.getElementById("info_tag").style.display = 'block';
      document.getElementById("button_div").style.display = 'block';
      re_start();
      
    }

Links

Contact

Proof of Work

image.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

They are numerous and frightening if you ask me. I will look into it for more understanding. Thanks for bringing this.

Coin Marketplace

STEEM 0.19
TRX 0.14
JST 0.030
BTC 60122.55
ETH 3199.29
USDT 1.00
SBD 2.43