Steemed Phish v0.0.32: Performance improvements

in #utopian-io6 years ago (edited)

View this post on Hive: Steemed Phish v0.0.32: Performance improvements


Repository

https://github.com/quochuy/steemedphish

These are changes since v0.0.31
This pull request contains small changes to increased the performance of the extension.

Bug Fixes

Sometimes external links are not scanned properly at the same time, if a link is used multiple times it is unshorten through an API call for each occurrence. This has been fixed by keeping an array of URLs already requested for unshortening and generating a uniq ID for each link. The unshortening result would then be applied once to all occurences. This fix also improves performance of the scanning process.

Optimisations

  • the content script has been optimised to not require JS injection into the page itself
  • the code has been cleaned up, reformatted with added comments

GitHub Account

https://github.com/quochuy


Download the extension

https://chrome.google.com/webstore/detail/steemed-phish/eiaigalhddmmpdnehcigmlmgllomljgj

What is Steemed Phish?

Steemed Phish

Steemed Phish is a Chrome extension that offers protection against Steemit.com phishing clones

Features

Changing icon color based on white/blacklist

This extension will validate Steemit related websites by changing its icon color:

  • red is for blacklisted sites
  • green is for recognised friendly sites
  • grey is for unrecognised sites
Whitelist and blacklist

Steemed Phish does not rely solely on these list as anything not listed won't be protected. Blacklist and whitelist are hard to maintain but adding them helps widening the protection coverage.

When a site is neither whitelisted or blacklisted, Steemed Phish will try to check the URL structure to find known patterns and flag a link as supsicious by coloring it in pink.

There are currently 19 blacklisted websites and 31 whitelisted websites.

Phishing Alerts

If a user lands on a phishing website, Steemed Phish will display two types of alerts:

  • a dialog that shows up even if the page was loaded in a tab in the background
  • a full page alert, that covers the whole phishing page and offers a link to go back to Steemit.com. The full page alert also reminds the user of not using their Steemit Keys on unknown websites and keep their password (Owner Key) safe.

Spammer highlight

The extension is now using the SteemCleaners' public blacklist to highlight spammers' name on posts and comments they have authored.

Expand shorten URL

Some links are shortened using services such as bit.ly, this prevents people from easily analysing the URL of the link. Steemed Phish uses a link expanding API to determine the destination URL of a link and then compare it again against the white/blacklist logic above.

Steemed Phish expand URL

Making external links more visible

Ideally, a user should be more careful on links they are clicking on by always paying attention to the URL of an anchor. But this is easier said than done and even the most experienced user can let down their guard sometimes and get tricked by the scammers.

Recently, Steemit.com, has added a feature that marks external links with a grey icon on the right of each links. Steemed Phish will make that icon more obvious by coloring it in purple. On top of that, it will make a bubble appear next to the mouse cursor with a text explaining the fact that clicking on the link with leads you away so don't use your password. This bubble won't show up on friendly (whitelisted) websites

Steemed Phish dialog alert

Support lazy loading

The extension works even if the links are inserted into the page after page load (Ajax), for example:

  1. The link was in a comment that was hidden due to low rating and I then revealed it.
  2. The link is in a comment low in a popular page. The comment was not loaded at first but only when you scroll down

In both cases, the first time the page loads, the comment and the link is not loaded and displayed. Steemed Phish still works in these cases.

Download the extension

https://chrome.google.com/webstore/detail/steemed-phish/eiaigalhddmmpdnehcigmlmgllomljgj

Sort:  

Thank you for your contribution. It's good to improve your code, but for this contribution the work done is quite low. Also, own Bug Fixes is actually not considered by Utopian.

What can be done to improve the contribution is to add some enhancement and then add bug fixes along with that contribution.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Gotcha! Thanks for the review and clarification of the contribution guidelines.

Posted using Partiko iOS

Thank you for your review, @codingdefined!

So far this week you've reviewed 2 contributions. Keep up the good work!

Nice stuff... looks like the next evolution of blockchain "Ad" blockers...

hehehe :-D

This post has been just added as new item to timeline of Steemed Phish Extension on Steem Projects.

If you want to be notified about new updates from this project, register on Steem Projects and add Steemed Phish Extension to your favorite projects.

Congratulations! Your post has been selected as a daily Steemit truffle! It is listed on rank 11 of all contributions awarded today. You can find the TOP DAILY TRUFFLE PICKS HERE.

I upvoted your contribution because to my mind your post is at least 8 SBD worth and should receive 100 votes. It's now up to the lovely Steemit community to make this come true.

I am TrufflePig, an Artificial Intelligence Bot that helps minnows and content curators using Machine Learning. If you are curious how I select content, you can find an explanation here!

Have a nice day and sincerely yours,
trufflepig
TrufflePig

Hey, @quochuy!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.027
BTC 59356.21
ETH 2723.43
USDT 1.00
SBD 2.53