Giter Site home page Giter Site logo

115581748 / cpp-browser-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maxikilliane/cpp-browser-extension

0.0 0.0 0.0 375 KB

This repository contains the code for the CPP browser extension as described in the paper "Implementation and In Situ Assessment of Contextual Privacy Policies".

License: MIT License

JavaScript 85.27% CSS 9.16% HTML 5.57%

cpp-browser-extension's Introduction

CPP-browser-extension

This repository contains the code for the CPP browser extension as described in the paper "Implementation and In Situ Assessment of Contextual Privacy Policies".

This is the German and English version of a browser extension we implemented for a diary study about contextual privacy policies (CPPs). CPPs embed relevant information from privacy policies directly in the user's current context of use. For further information about this study, please submit an issue or otherwise get in contact with the maintainers of this repository. We will gladly share our seminar paper with you. The extension works on Chrome, Firefox and Edge browsers. CPPs are displayed in different situations on 7 different websites: Google Search, Youtube, Facebook, Twitter, Ebay, Ebay Kleinanzeigen and Amazon.

To try out the extension:

For Firefox:

There are two ways to try out the extension on Firefox.

For Chrome:

  1. Open the Extension Management page by typing "chrome://extensions" into the browser's address bar.
  2. Enable Developer Mode by clicking the toggle switch next to "Developer mode".
  3. Click the "load unpacked" button and select the extension directory.

For Edge:

Install it in the developer's options. See https://docs.microsoft.com/en-us/microsoft-edge/extensions/guides/adding-and-removing-extensions for a detailed description.

Our plugin logs data

During the usage of the plugin, a pop-up will appear repeatedly, asking for feedback on just seen CPPs. This is part of the logic of the diary study. Users can also give feedback using a browser toolbar icon. All data collected by this extension is saved on the user's computer, in the extension's local storage.

To read data from the local-storage on Firefox:

  1. Type "about:debugging" into the adressbar of the browser
  2. Activate the debugging of add-ons by setting the appropriate check-mark
  3. Click on "Debugging" for the ContextualPP-extension โ€“ a separate window will open
  4. Select the console in that separate window.
  5. Enter the following code into the console and press "Enter" afterwards:
window.browser.storage.local.get(null, function(items) {
var blob = new Blob([JSON.stringify(items, null,' ')], {type: "text/plain"});
var url = URL.createObjectURL(blob);
window.browser.tabs.create({ url: url }); // extension has the "tabs" permission to make this work
window.browser.downloads.download({ url: url }); // extension has the "downloads" permission to make this work
});

This opens a separate tab in your browser and downloads the local-storage of the extension. 6. In your Downloads-Folder there should be a document called "download" now. It probably doesn't have a file type, but this document is a .json-file, which contains the logdata, diary entries and feedback entries from the usage of the plugin.

To read data from the local-storage on Chrome:

  1. Install the extension Storage Area Explorer (https://chrome.google.com/webstore/detail/storage-area-explorer/ocfjjjjhkpapocigimmppepjgfdecjkb)
  2. Go to the extensions page by typing chrome://extensions/ into the address bar of the browser.
  3. Activate debugging of the extension by toggling the toggle-button at the bottom right corner of the card for the ContextualPP-extension.
  4. Click on the blue link for the background page โ€“ a new window will open.
  5. The left most tab on this window will be "Storage Explorer". Select this tab.
  6. You can export the data by clicking on the "Export"-button in the sub-tab named "chrome.storage.local"

To read data from the local-storage on Edge:

  • Currently not possible. You are invited to share a way of downloading data from the extension's local storage on Edge. Please let us know in an issue or contact us otherwise, so we can update this read-me.

cpp-browser-extension's People

Contributors

bluecat11 avatar maxikilliane avatar

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.