Skip to content

caiqizhe/COS561_final_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

COS561_final_project

Here is a quick demo for AccWeb:

    1. Open Predictor Extension directory
    1. Open background.js and uncomment the line 3 var prediction_dict = {"g":[{url:"https://www.google.com/", hit_count:10, miss_count:0}]};
    1. Open Google Chrome, type chrome://extensions/ and enable Developer mode
    1. Load unpacked extension and choose Predictor Extension directory
    1. SSH to the remote server ssh -i "COS561.pem" -X ubuntu@ec2-54-167-38-140.compute-1.amazonaws.com and the public key COS561.pem is in the backend directory. You can use your own servers, but you do need to change the server_address in the background.js file.
    1. cd webserver directory and type python3 server.py. A HTTP simple server should run.
    1. Load "www.google.com" in Chrome for multiple times. Servers get web resources from navigation.
    1. Clear browsing history of Chrome.
    1. In Chrome, type omnix and press TAB in address bar; this action enables clients to interact with Predictor Extension and type g.
    1. Open background pagein chrome://extensions.
    1. In Network panel, you will find all resources related to www.google.com are fecthed.