Skip to content

GabeG888/OpenAI-JS-Injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI JS Injector

Description

This is a Google Chrome extension that modifies the contents of webpages by injecting Javascript with GPT-3.5.

Warning

This extension runs code generated by a large language model in your browser with no safety measures. Use it carefully, as it could harm your device. This extension never reads the pages you view or any metadata about your usage, but injected Javascript code has access to all of this data and could do anything with it. The creator of this project is not responsible for any harmful results of using this extension.

Installation

  • git clone https://github.com/GabeG888/openai-js-injector.git or download ZIP and extract
  • Go to chrome://extensions
  • Enable developer mode
  • Click Load Unpacked and choose this folder

How to Use

Click Ctrl+Q or the button in the extensions menu to open the interface. You will be asked for your OpenAI API key the first time. You can get an OpenAI API key at https://platform.openai.com/api-keys. This extension costs about $0.01 per 50-100 requests. After entering your OpenAI API key, click Ctrl+Q again and enter what you want to happen.

Example Prompts

  • light blue background
  • Make this page black and white
  • Rotate 5 degrees
  • Upside down
  • Replace 4 with 5
  • alert(123)
  • Open 3 google search tabs
  • Open 50 google search tabs
  • Open a google search tab every 5 seconds
  • Show Norway in google maps
  • Refresh
  • Go back
  • Click the first link
  • Show Nvidia stock price
  • Replace all links with archive.org ones
  • Log the page HTML to the console
  • Log every link on this page in the console as a list

Note

The latest version of Chrome extensions (v3) does not allow injecting arbitrary Javascript code. This extension uses v2, which Google plans to disable around June 2024.

About

Modifies page contents by injecting Javascript with GPT-3.5.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors