101 lines
4.7 KiB
Markdown
101 lines
4.7 KiB
Markdown
|
||
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 Ninantic put up a new version because all the variables might get new names.
|
||
|
||
So instead, here’s a userscript that starts from scratch:
|
||
|
||
|
||
[](http://breunigs.github.com/ingress-intel-total-conversion/screen.png)
|
||
|
||
(click to zoom)
|
||
|
||
Features
|
||
--------
|
||
|
||
- feels faster. (Likely because [leaflet](http://leafletjs.com/) is faster, although there are some other tricks.)
|
||
- full view of portal images
|
||
- better chat
|
||
- separated automated/public/faction
|
||
- only showing the last automated message for each user. Makes a great “where are they now” guide.
|
||
- automatic idle resume
|
||
- portal details actually update themselves
|
||
- 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
|
||
|
||
|
||
Missing
|
||
-------
|
||
|
||
(and probably not going to implement it)
|
||
|
||
- logout link (but you wouldn’t want to *quit*, would you?), privacy link, etc.
|
||
- redeem pretty display
|
||
|
||
|
||
Install
|
||
-------
|
||
|
||
[**INSTALL**](https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/total-conversion-build.user.js)
|
||
|
||
|
||
**Firefox:** Install [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) or [Scriptish](https://addons.mozilla.org/en-US/firefox/addon/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 Button` → `Tools` → `Extensions`.
|
||
4. Drag and drop the download over the window and Chrome will offer you to install the script.
|
||
|
||
*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](http://www.opera.com/docs/userjs/using/#writingscripts).
|
||
|
||
|
||
[**INSTALL**](https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/total-conversion-build.user.js)
|
||
|
||
|
||
|
||
Contributing
|
||
------------
|
||
|
||
Please do!
|
||
|
||
(Obviously, Resistance folks must send in complete patches while Enlightenment gals and guys may just open feature request ☺)
|
||
|
||
|
||
Hacking
|
||
-------
|
||
|
||
Execute `./build.js` to effectively concatenate `main.js` with all the files in `code/`. It generates the user script which may be installed into your browser.
|
||
|
||
`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.
|
||
|
||
`leaflet_google.js` contains some code to display Google Maps imagery with Leaflet, which is a slightly modified version [of this gist](https://gist.github.com/4504864). I tried to track down the original author, but failed.
|
||
|
||
|
||
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 ingress-intel-total-conversion@breunigs.user.js`
|
||
- 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:
|
||
|
||
- [load.js by Chris O'Hara; MIT](https://github.com/chriso/load.js)
|
||
- [leaflet.js; custom license (but appears free)](http://leafletjs.com/)
|
||
- `leaflet_google.js`; unknown
|
||
- StackOverflow-CopyPasta is attributed in the source; [CC-Wiki](https://creativecommons.org/licenses/by-sa/3.0/)
|
||
- all Ingress/Ninantic related stuff obviously remains non-free and is still copyrighted by Ninantic/Google
|