Skip to content

girlfriend-technology/xtoy-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

61 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

X to Y extension

Replace words and links

icon

Ever think it would be funny to replace a word with another? Sick and tired of a website deadnaming you? You are going to enjoy X to Y!

X to Y supports plain text, regex, and urls.

  • To do regex just type regex (/pattern/flags) in the X field
  • To replace links, just check the Link Mode checkbox

Download

Folder Structure

  • 'X to Y' - the Xcode project for iOS and Mac
  • content-script - javascript bundle for the extension's content script that replaces the text and links on webpages
  • popup-ui - javascript bundle for the extension's user interface that loads when the toolbar icon is tapped
  • firefox - The Firefox build
  • chrome - The Edge and Chrome build

Build Locally

  • cd content-script - cd into the content script folder
  • npm install - install the content script dependencies
  • npm run build - build the content script
  • cd .. - cd back to the root folder
  • cd popup-ui - cd into the popup ui folder
  • npm install - install the popup ui dependencies
  • npm run build - build the popup ui

Now you are ready to play around with the code or even build it with Xcode. πŸ’–