originally posted in:BungieNetPlatform
This is an example userscript for other developers to show how to script Bungie.next. Others are welcome to download/install it. The script performs the following:
- Highlights posts with a rating > 50
- Places a red "@OP" marker beside each of the OP's posts within a topic
- Recolours the posts of Bungie Employees and Forum Ninjas to their old colours
- Displays topic information when mousing over a topic's title in the forum
- Displays extra information when mousing over a topic's last post/timestamp in the forum
- Highlights topics with a rating > 50
- Colours employee/ninja topic titles
- Modifies the notification readout to show who liked/replied to your post
Note the way in which the broker/s dispatch events to those functions which have been defined.
[b]NOTE:[/b] because of the restrictions Chrome places on extensions and scripts, this WILL NOT work in Chrome.
-
I'm running this in Firefox with Greasemonkey, but for some reason the script is not doing anything. I haven't used Greasemonkey in ages, so I don't know what's up. I have everything enabled, but it's not modifying the webpage at all.
-
Edited by MoonDawg: 5/24/2014 10:31:41 PMNevermind. Just loaded fine. :)
-
Edited by Player3Th0mas: 5/2/2013 7:10:35 PMI have it enabled, but it doesn't do anything... )=
-
I used it and I couldn't see any threads in any of the main 6 forums on the site. Chrome v30.0.1599.69 (up-to-date).
-
Edited by Entraps: 5/10/2013 12:56:59 AMNeat Too bad the Bnet dark theme overrides it.
-
Seems cool, but your post background is green.
-
I just tested it and I'm liking it, just some feedback: The green background makes text hard to read when you're using the light theme, since the font color is different for either the dark or light themes.
-
Edited by Avants Garde: 4/29/2013 7:20:04 PMCouldn't you have a function that was a prototype member or a standalone that basically patched in your function and then passed the call to the original function? [url=http://en.wikipedia.org/wiki/Don't_repeat_yourself]DRY. DRY. DRY.[/url] So much easier to read. To be honest this looks like a lot of OOP-bloat. Ex: fn(a, b) -> { return fn() { a(args, onerr, fn(result) { b(result); }); } }; fn(bnet.serviceFn, myFn); Something like that. Then either a.patch(b) or a = patch(a, b); Does this do anything on load in general? Because I've figured out how to script an onload event very very easily, and it works on every page.
-
Nice, what does it run in? File wasn't supported for android. Is there an add on for chrome (android) to just use the script, I'm guessing the link you have runs in some script editing software?
-
Is it safe to assume this works on just Firefox and Chrome?
-
Dude, could I borrow your brain?
-
Edited by VIC: 4/28/2013 8:52:21 PMI'll give it a shot for curiosity's sake. Definitely admire your dedication, Daz. : )
-
Thanks, it's always fun trying something new.