GithubHelp home page GithubHelp logo

cryptokittiesdarkorig's Introduction

Styler / Chrome Extension

Styler lets you inject .css and .js files into web sites you visit.

Install

  1. Pull this repository
  2. Navigate to chrome://extensions
  3. Make sure that the Developer mode checkbox in the top right corner is checked
  4. Click on the Load Unpacked button and select the folder containing this repository

Configuration

Option Defaults Description
enable false Toggle configuration
cache false Toggle caching
match [] List of domains to match
ignore [] List of domains to ignore
inject [] List of files to inject
location '' Files location

When cache is enabled you have to Reload the extension every time you make changes to the injected files.

When match is set to ['*'] it is going to match every domain.

When location is ommited it defaults to the sites folder.

Example

[
  {
    "enable": true,
    "cache": true,
    "match": [
      "*"
    ],
    "ignore": [
      "google.com"
    ],
    "inject": [
      "global-font.css"
    ]
  },
  {
    "enable": true,
    "cache": false,
    "match": [
      "github.com",
      "gist.github.com"
    ],
    "inject": [
      "dark-theme.css",
      "fixes.css"
    ],
    "location": "github"
  },
  {
    "enable": false,
    "cache": true,
    "match": [
      "youtube.com"
    ],
    "inject": [
      "youtube.css",
      "ads.js"
    ],
    "location": "youtube"
  }
]
sites/
├── config.json
├── global-font.css
├── github
│   ├── fixes.css
│   └── dark-theme.css
└── youtube
    ├── ads.js
    └── youtube.css

  1. Create a folder called sites under the root directory of this extension
  2. Copy the above configuration in sites/config.json
  3. Create two separate directories: sites/github and sites/youtube, and place your styles and scripts there
  4. Repeat step 3. for each web site you want to style

Every time you make changes to the configuration data structure you have to Reload the extension from chrome://extensions

cryptokittiesdarkorig's People

Contributors

simov avatar

Watchers

 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.