Coder Social home page Coder Social logo

kauth / retro-gamez Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 10.0 66 KB

Firefox extension where you can play a different retro game each day from the website https://www.retrogames.cc.

Home Page: https://addons.mozilla.org/en-US/firefox/addon/retro-gamez

License: Apache License 2.0

HTML 21.89% JavaScript 78.11%
firefox-extension hacktoberfest

retro-gamez's People

Contributors

dpauth avatar hankoj avatar kauth avatar nitish-awasthi avatar paulopacitti avatar rsk2 avatar stanjdev avatar syauqy avatar thomaslian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

retro-gamez's Issues

Programmatically Disable Popup Auto-Hide

Stop popup closing after clicking outside of it.

Find if there is a way to programmatically (not just when debugging, as shown here) stop the popup from closing when clicking outside of the popup.

Host game list file online

In order to avoid updating the Firefox extension every time we want to add a new game title to the list of available games, it is better to host the game_list.js file online and not locally. [Another option would be to create an API online.]

We can do that either on an online hosting service or more preferably on Github's raw content viewer (e.g., https://raw.githubusercontent.com/KAUTH/Retro-Gamez/master/retro-gamez/popup/game_list.js?).

In both cases, it is important to include the CORS header in the host server's response to the browser.

In Github, it supposedly returns a CORS header automatically (needs to be checked).
On an Apache-like server we need to add the following code in the .htaccess file:
Header set Access-Control-Allow-Origin "*"

Add 7 more game titles

At game_list.js, add 7 new items in the gameList array.

Go to https://www.retrogames.cc/ and get the source link for the iframes that are given as embedded code. Select among the most popular titles first.
Add a new item in the gameList array by incrementing the id number, giving the title of the game, and placing as source the source link that is mentioned above.

In the end, there will be a total of 31 different game titles available by the Retro-Gamez extension, a different one for each day of the month.

Create a HACKTOBERFEST-CONTRIBUTE.md file for Hacktoberfest

Prepare a file with instructions on how to contribute to this project for Hacktoberfest.

Give emphasis on "Good first issues", specifically how to add new game titles to game_list.js (issues are going to be created to add specific game titles to the extension - one title/issue). Mention that you can also contribute as described in the "Contributing" section of the README.md.

Update the README.md to mention the HACKTOBERFEST-CONTRIBUTE.md file specifically for Hacktoberfest.

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.