Skip to content

A Website that lets you appear to prank other websites. Designed so other devs can add their own pranks.

Notifications You must be signed in to change notification settings

steveja42/webpranks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Pranks

Web Pranks is a website that lets you appear to prank other websites. For example, enter cnn.com as the Website Address, choose Wrecking Ball for the Prank, and then a wrecking ball will appear to smash the current CNN website- though all changes actually only happen on the local device.

How to add your own prank to Web Pranks!

Web Pranks was designed so other developers can easily add their own pranks to it. Each prank is basically a Phaser3 scene. To add your own prank, export a function named doPageEffect in a Typescript or JavaScript file.

export  function  doPageEffect(page:  PageInfo):  Phaser.Scene

doPageEffect should add a scene to the game and then return the scene. You will be passed a pageInfo object which contains a phaser game object and an array of images of elements from the webpage being pranked, and an array of rectangles for all the background rectangles on the page. Phaser3 textures will already be pre-loaded for the images with the key names of dom0 through domx when there are x number of images.

Pranks are in the src/pageEffects folder and you can look there for examples. To run your prank put your typescript or javascript file in the src/pageEffects folder and add the title and filename of your prank to a new line in modulelist.ts. Then build the app and you can run your prank! After testing it do a pull request to add your prank to the main Web Pranks website.

Building the app

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.\

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.\

You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.\

See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.\

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\

Your app is ready to be deployed!

See the section about deployment for more information.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

A Website that lets you appear to prank other websites. Designed so other devs can add their own pranks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published