GithubHelp home page GithubHelp logo

typpo / ad-detector Goto Github PK

View Code? Open in Web Editor NEW
196.0 19.0 21.0 346 KB

Detects articles with corporate sponsors.

Home Page: http://www.ianww.com/ad-detector/

License: MIT License

JavaScript 90.50% Shell 1.47% CSS 8.03%
ads browser-extension chrome firefox

ad-detector's Introduction

AdDetector

AdDetector is a Chrome and Firefox addon that flags articles with corporate sponsors by putting a banner above articles which may mislead the reader.

"Corporate content" is present in publications like the New York Times, Newsweek, The Atlantic, Buzzfeed, and others. Stories are sometimes marked as sponsored, but these indicators are sometimes very subtle, leaving many users unaware that the article is sponsored.

AdDetector contains rules to identify small "sponsored" markings. In some cases, these indicators are not even visible normally and instead are hidden in the source code of the webpage.

Install for Chrome or Firefox

Get the latest download links on the AdDetector site.

Running from source

Start by running ./setup_hardlinks.

The hardlinks connect generic code in src/ to the proper locations in browser-specific subdirectories (browsers won't follow symlinks). To make changes to injected code, you only need to edit files under src/.

Next, run the extension locally in your browser of choice. For Chrome, go to chrome://extensions, enable developer mode, and load the chrome/ directory. For Firefox, set up your sdk and run cfx run in the firefox/ directory.

Testing

The tests rely on casperjs and phantomjs. You should npm install -g these before running test/testHarness.js.

Contributing

I value contributions. Looking for an easy way to get involved? Add a rule for a site currently not covered by AdDetector, or check out the issues page. Please open pull requests on this Github repository.

License (MIT)

Copyright (C) 2014 by Ian Webster

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ad-detector's People

Contributors

bcampbell avatar dtran320 avatar fivefilters avatar ggiraud avatar judymou avatar kmeisthax avatar mldangelo avatar ndarville avatar sarciszewski avatar typpo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ad-detector's Issues

0.1.12 is flagging all pages at theatlantic.com

Release a Firefox version

Firefox was all set to go, but I had to change the basic injection technique because Chrome sandboxed the 'window' variable, which was needed to detect Mashable and Fastcompany.

Now I have Chrome-specific calls in main.js that need to be removed before a Firefox version is ready.

Create rules for each of these articles.

http://recode.net/sponsored-content/the-future-of-content-its-a-journey-not-a-destination/
http://studioatgawker.kinja.com/your-wimpy-workout-has-nothing-on-houdinis-bizarre-trai-1613321041
http://www.bizjournals.com/houston/bizwomen/channels/pnc/2014/08/for-businesses-green-is-here-to-stay.html
http://thoughtcatalog.com/thought-catalog-sponsored-posts/2014/07/23-incredible-summer-photos-that-will-make-you-book-your-vacation-tomorrow/
http://gearpatrol.com/2014/08/04/nobody-wins-counterfeit-batteries/
http://tribtalk.org/2014/07/30/fixing-whats-wrong-with-testing-in-k-12-education/
http://www.newrepublic.com/article/118883/millennials-dont-want-climb-traditional-career-ladder
http://www.msnbc.com/msnbc/landfill-fuels-frances-energy-future
http://www.politico.com/magazine/sponsor-content/2014/07/to-save-detroit-start-small/#.U9fGvoBdVv0

http://www.adweek.com/news/technology/how-cnn-and-cisco-made-web-series-about-progressive-cities-158983
http://www.phillymag.com/sponsor-content/grilling-gets-healthy-makeover/
http://www.xojane.com/we-were-paid-for-this/my-favorite-things-lasvegas-day
http://gothamist.com/2014/06/16/opposites_attract_the_best_nyc_date_1.php
http://arstechnica.com/sponsored/it-consumption-model-interactive-infographic/
http://www.thedailybeast.com/articles/2014/05/29/will-you-choose-a-conflict-free-microprocessor.html
http://www.apartmenttherapy.com/when-to-spend-and-when-to-save-sauder-202896
http://www.bloomberg.com/native/article/?mvi=8a0a327343df4ca0b503d03a93deebd2
http://www.thestar.com/sponsored_sections/dailyhealth.html
https://www.yahoo.com/tech/spark-ignites-match-how-sam-yagan-became-the-dominant-a81624092647.html
http://www.bostonmagazine.com/sponsor-content/healthy/
http://www.foodrepublic.com/2014/05/15/whimsical-grilling-leif-hedendal
http://www.vice.com/ketelone/modern-craftsmen-gregory-laketek
http://www.marketwatch.com/ad/article/narratives?prx_t=RpABA5q0BAICAFA&prx_q=8163
http://www.today.com/home/chip-it-sherwin-williams-1D79856708
http://www.foodnetwork.com/recipes/orange-sorbet-recipe.html?COUPON=07-0094-01&bid=847241
http://business.financialpost.com/2013/06/26/a-joint-venture-with-capp-oil-industry-set-to-grow/?__lsa=4d92-1f6b
http://www.canadianfamily.ca/kids/baby/your-guide-to-baby-massage-sponsored/
http://www.inc.com/theupsstore/index.html
http://www.outsideonline.com/adventure-travel/travel-articles/2014-Adventure-Bucket-List.html
http://readwrite.com/2014/03/14/api-explainer-intel#awesm=~oDCS7ICV27l5BC
http://www.upworthy.com/30-seconds-of-women-over-apologizing-followed-by-30-seconds-of-them-so-destroying-that-stereotype?c=upw1&utm_content=bufferad514&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
http://pioneerlocal.suntimes.com/sponsored/?post=1486-What%20are%20the%20possible%20causes%20of%20your%20ankle%20pain%3F&sponsor=342412-Hinsdale%20Foot%20%26%20Ankle
http://www.dnainfo.com/new-york/sponsor-story/?mvi=8ca5f068f5b249b88f359b7dcc8ca6a0
http://www.arlnow.com/2014/07/11/your-beermonger-comparing-beer-prices-2005-to-today/
http://mic.com/articles/96860/two-engineers-have-created-the-doll-every-young-girl-should-be-playing-with
http://qz.com/241614/reducing-indias-dependence-on-foreign-oil-and-gas/
http://www.oracle.com/us/corporate/profit/partner-news/050814-informatica-2202772.html
http://www.mymodernmet.com/7-Artists-Create-Intricate-Works-Assembling-Thousands-Pieces
http://www.vox.com/sponsored/goldman-sachs-naes/episode-1-the-north-american-energy-opportunity
http://talkingpointsmemo.com/idealab-impact/medicare-partd-affordable-drug-coverage

Digiday

Digiday.com is labeled as a native ad. While perhaps not entire untrue, it's still not consistent with the theme you set for the plug-in.

The Bold Italic

"Candidate Running for BART Board Buys Bold Italic Journalist's ‘Endorsement’".

_Clarification:_ Bold Italic Editor Jennifer Maerz said she wants to make it clear the Bold Italic was not making an endorsement, rather providing sponsored content[.]

Well that clears everything up.

Just adding it here as a to-do; I haven’t had the time to write the script to detect sponsored content, but clearly this is a perfect example of a site that needs Ad Detector to put a big, fat warning on it.

Chrome version outdated?

The repository appears to contain version 0.0.20, but the version in the Chrome store is stuck on 0.0.19. Is this intended?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.