From c7057c0fca1208b853c493694c3ad24e639782e3 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Wed, 20 Mar 2019 19:11:34 +0700 Subject: [PATCH] Rename --- manifest.json | 4 ++-- readme.md | 4 ++-- src/content.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index 1eba931..5fa7943 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,8 @@ { - "name": "Coinbias", + "name": "Coinflict of Interest", "version": "0.0.1", "description": "Show user biases on crypto Twitter.", - "homepage_url": "https://github.com/lukechilds/coinbias", + "homepage_url": "https://github.com/lukechilds/coinflict-of-interest", "manifest_version": 2, "minimum_chrome_version": "36", "content_scripts": [ diff --git a/readme.md b/readme.md index 63a8bd7..7716343 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ -# Coinbias +# Coinflict of Interest -> Show user biases on crypto Twitter. +> Browser extension to show user biases on crypto Twitter. ## License diff --git a/src/content.js b/src/content.js index 6ed0d28..0a44b2d 100644 --- a/src/content.js +++ b/src/content.js @@ -22,14 +22,14 @@ const getData = async username => { const preloadTweetData = () => { Array.from(document.querySelectorAll('.tweet')).forEach(tweet => { - if (tweet.dataset.coinbiasPreloaded) { + if (tweet.dataset.coinflictPreloaded) { return false; } const username = tweet.dataset.screenName; getData(username); - tweet.dataset.coinbiasPreloaded = true; + tweet.dataset.coinflictPreloaded = true; }); }; @@ -39,10 +39,10 @@ const injectChart = async () => { const profileHoverContainer = document.querySelector('#profile-hover-container'); const profileCard = profileHoverContainer.querySelector('.profile-card'); - if (!(profileCard && !profileCard.dataset.coinbias)) { + if (!(profileCard && !profileCard.dataset.coinflict)) { return; } - profileCard.dataset.coinbias = true; + profileCard.dataset.coinflict = true; const username = profileCard.querySelector('[data-screen-name]').dataset.screenName; const data = await getData(username);