Git Product home page Git Product logo

evil.css's Introduction

evil.css

Mess with peoples' webpages. Various subtle and not-so-subtle CSS rules that will slowly drive people insane.

Inspired by Upside-Down-Ternet and kitgoncharov's evil.js.

Fork it and add your own evil rules. Worthy pull requests will be accepted.

How to use it

Inject it into unsuspecting users' webpages. evil.js was intended to wreak havoc on sites hotlinking JavaScript library files, however hotlinking CSS is far less common. Some other evil ideas:

  • Set it as the user stylesheet in a browser (example: discouraging "customers" at retail stores from using the computers to browse Facebook and check their email).
  • Inject it into webpages or CSS files served to WiFi leachers on your open access point.
  • Exploit this week's WordPress vulnerability and add it to your friend's blog.
  • Hack an Internet backbone router and inject it into everyone's webpages.

A script called evil-safari-mac.sh is included that automates setting Safari's user stylesheet to the latest version of evil.css. Run it on any Mac using Terminal.app with this easy to remember URL:

curl -L bit.ly/evil-safari-mac | sh

Uninstall it by deselecting the stylesheet in Safari's preferences, or execute this in a shell:

defaults write "com.apple.Safari" "WebKitUserStyleSheetEnabledPreferenceKey" "1"

Demo

This bookmarklet will inject the latest version of evil.js into any webpage, just copy and paste into the URL bar and hit enter:

javascript:(function(d,l){l=d.createElement("link");l.rel="stylesheet";l.href="https://github.com/tlrobinson/evil.css/raw/master/evil.css";d.body.appendChild(l)})(document);

Credits

License

Public domain.

Obligatory disclaimer

evil.css is purely for entertainment purposes. I'm not responsible for anything you do with evil.css, nor do I suggest doing any of the above activities, especially hacking backbone routers.

evil.css's People

Contributors

tlrobinson avatar smasty avatar lanzaa avatar mathiasbynens avatar paulirish avatar

Stargazers

Paul Dacus avatar

Watchers

Paul Dacus avatar James Cloos avatar

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.