From cae84f92d7b5e637a2495206e4811a550b6be222 Mon Sep 17 00:00:00 2001 From: Gautam Hathi Date: Thu, 18 May 2017 16:11:20 -0700 Subject: [PATCH] fixing license file and adding readme --- LICENSE.txt | 35 +++++++++++++++++++++-------------- README.md | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+), 14 deletions(-) create mode 100644 README.md diff --git a/LICENSE.txt b/LICENSE.txt index 7723526..e169e7a 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,14 +1,21 @@ -document.body.innerHTML += " This page may be based on content from: " + "" + response[0].source + "
"; -var dialog = document.querySelector("dialog"); -dialog.querySelector("button").addEventListener("click", function() { - dialog.close(); - dialog.parentNode.removeChild(dialog); -}); - -window.setTimeout(function () { - var dialogToClose = document.querySelector("dialog"); - dialog.close(); - dialog.parentNode.removeChild(dialog); -}, 3000); -dialog.style = "position: fixed; width: 400px; height: auto; border: 1px solid rgb(51, 102, 153); padding: 10px; background-color: rgb(255, 255, 255 ); z-index: 2001; overflow: hidden; text-align: center; top: 25px; left: calc(100% - 425px);"; -dialog.show(); \ No newline at end of file +MIT License + +Copyright (c) 2017 Duke Reporters' Lab + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..f1f53ca --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Story Tracer + +Story Tracer is a Chrome extension that identifies the source information that web pages are based upon. Story Tracer uses the [ground-truth](https://github.com/ReportersLabDuke/ground-truth) node library. + +## How it works + +When you navigate to a webpage with Story Tracer added to Chrome, Story Tracer will try to identify the source behind the webpage by looking at the links on the page. If a likely source is identified, a popup will appear indicating that the page you are on might be based on content from another page: + +![Story Tracer in action](https://pbs.twimg.com/media/DAJQwOAUQAA4eUc.jpg) + + +## Installation instructions + +Story Tracer is not yet available on the Chrome webstore. This repository can be downloaded and then added to Chrome as an extension in developer mode. + +## License and copyright + +Copyright Duke Reporters' Lab + +Story Tracer is made available under the MIT licence +