GithubHelp home page GithubHelp logo

rixth / sitemod Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 108 KB

Easily make modifications to your favorite websites using your favorite technologies

License: MIT License

Ruby 92.96% CoffeeScript 7.04%

sitemod's Introduction

sitemod

Sitemod lets you customize your favourite websites in a way that isn't painful. It is heavily inspired by dotjs.

While user scripts & user styles are possible in Chrome, they're a pain to manage. With sitemod, you have a directory at ~/.sitemod. Inside here, are folders for domains. Inside domain directories, you can have subdirectories that match individual paths. Wildcard directories are also allowed.

You can write your modifications in JavaScript, CoffeeScript, CSS or SCSS. When you visit a webpage in Chrome, any file that matches under your ~/.sitemod directory will be loaded in to the page.

Setup

You need to build and install the browser extension, located in extension/ with rake build_extension, and start the server with rake start_server.

Example

Given this file structure:

~/.sitemod
  google.com/
    move_top_bar.coffee
    finance/
      highlight_portfolio.js
      increase_contrast.css
  github.com/
    hide_footer.css
    */
      pull/
        comment_templates.js

If you were to go to google.com/finance it would load both the specific files for the finance path, in addition to your mods to google.com.

The GitHub example demonstrates the use of wildcards. comment_templates.js will be injected on to any page that matches http://github.com/*/pull.

Subdomains are supported too. www is automatically stripped from the beginning of URLs when calculating what files to apply to a page.

TODO

  • Auto-start the mod server with a plist
  • Shell-script installation proceedure
  • Share your mods over a LAN using Bonjour, useful to show quick ideas to colleagues

sitemod's People

Contributors

rixth avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.