Giter Site home page Giter Site logo

sorgo / ingress-intel-total-conversion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jroq/ingress-intel-total-conversion

0.0 1.0 0.0 1.97 MB

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.

License: ISC License

Shell 0.10% Python 0.10% JavaScript 99.80%

ingress-intel-total-conversion's Introduction

WEBSITE LOOKS BROKEN? Update the script. On the upside you may scroll the portal details if there’s not enough screen space.

ingress.com/intel total conversion

It’s annoying to extend the intel page with new features because the minified code makes it hard to grasp what’s going on. Also, one has to play catch up each time Niantic put up a new version because all the variables might get new names.

So instead, here’s a userscript that starts from scratch:

Screenshot of the total conversion in Johannesburg

(click to zoom)

Features

  • feels faster. (Likely because leaflet is faster, although there are some other tricks.)
  • full view of portal images
  • better chat
    • separated full/compact/public/faction
    • compact only shows the last automated message for each user. Makes a great “where are they now” guide.
    • nick tab completion
    • clickable links
  • automatic idle resume
  • portal details get updated while portal is visible on map
  • links to portals made easy (partly works with the vanilla map, too)
  • info porn. Everything with the help cursor has more info hidden in a tooltip.
  • may toggle portals/links/fields
  • hack range (yellow circle) and link range (large red circle) for portals. Click on the range link in the sidebar to zoom to link range.
  • double clicking a portal zooms in and focuses it
  • display of XM and AP rewards for redeemed passcodes
  • extend it even more with the use of plugins

Install

Current version is 0.61. See NEWS.md for details. THIS VERSION CONTAINS A SECURITY UPDATE. Please update as soon as possible and also alert friends about it.

INSTALL

Firefox: Install Greasemonkey or Scriptish. Click install link. Install. Reload page.

Chrome: The user script works in vanilla Chrome.

  1. Click install link and ignore the warning.
  2. The file should be downloaded and appear in your download bar.
  3. Goto Menu ButtonToolsExtensions.
  4. Drag and drop the download over the window and Chrome will offer you to install the script.
  5. Reload page.

Note: if Chrome only shows you the text, but does not offer an install dialog, make sure the file ends in .user.js. If it’s something like .user(2).js it won’t work.

Opera: Download the script and put it into your user_js folder (that’s ~/.opera/user_js on Unix). If you can’t find it see Opera’s docs. After placing it there, reload the page.

NoScript: It doesn’t work with NoScript, unless you uncheck NoScriptEmbeddingsBlock every object coming from a site makred as untrusted. This is required, even if NoScript is set to allow scripts globally. No embedded objects are being loaded. I tried reporting the bug, but only a forum that wouldn’t let me register was available. There’s a stripped down example in noscript-sucks.html. If you can manage to report the bug, be my guest.

INSTALL

Contributing

Please do!

(Obviously, Resistance folks must send in complete patches while Enlightenment gals and guys may just open feature request ☺)

So far, these people have contributed:

Bananeweizen, cmrn, epf, integ3r, JasonMillward, mledoze, OshiHidra, phoenixsong6, Pirozek, saithis, Scrool, sorgo, vita10gy, Xelio, ZauberNerd

Hacking

Execute ./build.py to effectively concatenate main.js with all the files in code/. It generates the user script which may be installed into your browser. Do not modify ttic-debug.user.js manually, because it is automatically generated. Instead, modify the files in code/ and have that file built for you. The files in dist/ are for release only and should not be touched by you.

style.css contains most styles required for the user-script. The extra ones can be found in code/boot.js#window.setupStyles. Only CSS rules that depend on config variables should be defined there.

external/leaflet_google.js contains some code to display Google Maps imagery with Leaflet, which is a slightly modified version of this gist. The code likely was originally written by Pavel Shramov.

external/autolink.js is the same file as distributed by Bryan Woods.

My dev setup is like this:

  • checked out git repository
  • symlinked the user script to the version in the repo. It should work like this:
    • cd ~/.mozilla/firefox/<YOUR FF PROFILE>/scriptish_scripts/ingress-intel-total-conversion@breunigs
    • ln -s ~/<PATH TO REPO>/total-conversion-build.user.js [email protected]
  • if you are working on styles or scripts that are normally served via HTTP, you can setup an HTTP server for the current directory at http://0.0.0.0:8000 using python -m SimpleHTTPServer.
  • run ./autobuild.sh to re-build the user script whenever you make changes
  • Focus the location bar and hit enter instead of reloading. This way your browser doesn’t look for new versions of cached files.

Attribution & License

This project is licensed under the permissive ISC license. Parts imported from other projects remain under their respective licenses:

ingress-intel-total-conversion's People

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.