Skip to content

Enables you to get a new joke every time you click on this extension in your browser. It uses a Joke API that randomly give you a joke every time.

Notifications You must be signed in to change notification settings

indrajitsahu/Random-Jokes-Chrome-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random-Jokes-Chrome-Extension

This is a API based projects that named Random jokes Generator. It uses an JOKE API that gives you a new joke everytime.

So I integrate it with a extension by which you can click every time and get new joke.

API Documentation: https://icanhazdadjoke.com/api

API link: https://icanhazdadjoke.com/slack

In response you will get:

{
  "attachments": [
    {
      "fallback": "My first time using an elevator was an uplifting experience. The second time let me down.",
      "footer": "<https://icanhazdadjoke.com/j/1DQZvXvX8Ed|permalink> - <https://icanhazdadjoke.com|icanhazdadjoke.com>",
      "text": "My first time using an elevator was an uplifting experience. The second time let me down."
    }
  ],
  "response_type": "in_channel",
  "username": "icanhazdadjoke"
}

We are interested in the text part in the response, so extract it using JS and replace with your HTML and show it to the extension.

About

Enables you to get a new joke every time you click on this extension in your browser. It uses a Joke API that randomly give you a joke every time.

Topics

Resources

Stars

Watchers

Forks