Coder Social home page Coder Social logo

ndarville / djoefsk-til-dansk Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 432 KB

Chrome extension that translates political spin to Danish. // Chrome-udvidelse der oversætter politiker-DJØFsk til menigt dansk.

Home Page: https://twitter.com/pessimism/status/703255157618962432

License: Other

JavaScript 100.00%
chrome-extension

djoefsk-til-dansk's People

Contributors

ndarville avatar

Watchers

 avatar  avatar  avatar

djoefsk-til-dansk's Issues

Virker ikke i Windows

Synes ikke jeg kan få det til at spille med nogen af de to installationsmuligheder, selvom det fungerer fint i OS X.

Add <span> styling for replacement words

Just some simple CSS like:

span.djoefsk {
    margin-left: 2px; margin-right: 2px;
    background-color: #CFC;
}
  • JS
  • CSS
  // content.js
  function walk(rootNode) {
  // ...
      while (node = walker.nextNode()) {
          handleText(node);
      }
  }
  
  function handleText(textNode) {
      textNode.nodeValue = replaceText(textNode.nodeValue);
+   wrap(textNode, "span.djoefsk") // Pseudo code
  }

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.