Code Monkey home page Code Monkey logo

real-js-samples's Introduction

About this repository

This repository contains JavaScript code extracted semi-automatically from highly ranked webpages.

This data is published for two reasons:

  • research;
  • web compatibility tests.

The data is not owned by Mozilla. All these files were made publicly available on third-party web sites. Mozilla has merely compiled data from around the web to simplify the life of researchers and developers working own web compatibility.

Protocol we followed to obtain this data.

  1. Establish list of pages to visit, using Alexa top 50 webpages at the time of visit.
  2. Install extension https://github.com/binast/js-scrapper, to automatically save to disk some of the content sent by the website.
  3. Visit each of the pages. Some pages were skipped as they required an account and did not support anonymous accounts.
  4. Have arbitrary/random interactions with the pages, including clicking on arbitrary links, buttons, videos, moving the mouse randomly around the page, scrolling randomly.
  5. Wait a few minutes before closing page.
  6. Once browsing session is complete, run https://crates.io/crates/dedup on the result to remove duplicate files.

Future

We intend to update irregularly the repository to mirror evolutions of the web.

real-js-samples's People

Contributors

jorendorff avatar yoric avatar

Stargazers

O.T Osman avatar Bryan A. S. avatar Nicolas B. Pierron avatar krircc avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

jorendorff nbp

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.