Closed jonathanmayer closed 3 years ago
Closing this issue, both because @PranayAnchuri worked through all the items and because we paused development on the SocialMediaAccountExposure
module half a year ago: https://github.com/citp/news-disinformation-study/commit/0c651ca55375ee6e39a4cbaffae3dd0aacc56ded
General
domains.js
,mediaFbAccounts.js
, andmediaYtChannels.js
for clarity and consistency (e.g.,newsDomains.js
,newsFacebookAccounts.js
, andnewsYouTubeChannels.js
) and update references to those files.socialmedia.js
and the reference instudy.js
(seems like this isn't used anymore).SocialMediaAccountExposure
ModulenextPageIdCounter
that was copy and pasted from another module, since it's not actually counting pages (e.g.,nextSocialMediaAccountExposureIdCounter
).ytChannelMatchCode
andytChannelMatcher
) with aRegExp
in extension local storage.fbAccountMatchCode
andfbAccountMatcher
) with aRegExp
in extension local storage.getStudyDataAsObject
to reflect the current stored data.socialMediaAccountExposure-fb.js
Content Scriptx
with a more descriptive variable name.socialMediaAccountExposure-youtube.js
Content Scriptg
andm
modifiers don't appear necessary for theytmatcher
string.checkChannel
function would benefit from a more descriptive name (e.g., isVideoPage).isYoutube
function is only used once. That code can be consolidated into thecheckChannel
function. Also... I don't think we want this check, since a user could be exposed to news videos on pages that aren't a video viewing page. Can also drop thevideoTitle
logic.https://www.youtube.com/user/CNN
andhttps://www.youtube.com/channel/UCupvZG-5ko_eiXAupbDfxWw
.checkChannel
function clarifying what it's doing. Also rename thex
variable.