Skip to main content

Tag: javascript

Nexus Clash UserScripts

Carrying on my rich tradition of shoehorning quality-of-life improvements into PBBGs, I've created a couple of UserScripts for the Nexus Clash browser game.

The first is an improvement to the Pets management panel which color-codes pets whose AP is running low and shows their decay time in both GMT and …

Continue reading

Tail for browser windows

Have you ever been watching log output via a web application, and you just want your browser window to jump to the bottom of the document whenever new output shows up? Well, stranger, let me tell you, I certainly have. That's why I wrote a bookmarklet that does just that …

Continue reading

UserScripts for Urban Dead

Several years ago, I wrote a series of UserScripts for a persistent, browser-based game (PBBG) called Urban Dead. These scripts tidy up the user interface a bit and add some new features to the game that make quality-of-life improvements to the experience (in my opinion). I abandoned them--and the game--for …

Continue reading

ASP.NET/C# image resizer for responsive layouts

I will probably elaborate on this a bit further when I find some more time, but for now, this post is going to be mostly code. What I have here is a relatively simple way to generate images that are resized server-side based on the screen dimensions (note: not window …

Continue reading

jQuery visibility pseudo-selectors

To help me with a project at work, I've written two jQuery pseudo-selectors which will help determine if an element is currently in the viewport or if it has been reached during scroll. This can be incredibly powerful if you're looking to only display certain items (like a "back to …

Continue reading

SVG polyfill in pure Javascript

A designer at work pointed out this SVG polyfill as a candidate for our new production site. While I like the elegance of it, I was a bit disappointed that the author felt the need to include jQuery as a dependency simply to use its selector engine and each function …

Continue reading

Give-Me-Coins.com Condensed UserScript

Lately, my interest has been piqued by cryptocurrency. After discovering that my ATI card could produce a decent hash rate without seriously spiking my electricity bill, I got specifically interested in Litecoin. Long story short, I joined a Litecoin mining pool (Give-Me-Coins.com) and decided that I could do without …

Continue reading

Mozilla's TogetherJS in a bookmarklet

Mozilla recently introduced TogetherJS, a succession of their TowTruck service. Being that it is so similar to TowTruck, I went ahead and made a bookmarklet for it.

Drag the bookmarklet below onto your bookmarks bar, and tell your collaborators to do the same. When you're on a page you want …

Continue reading

Truck It!: Mozilla TowTruck in a bookmarklet

Mozilla Labs has this really nifty, Javascript-based collaboration utility, ~~TowTruck~~, which allows real-time web editing collaboration in the browser. It's got a lot of nifty features I won't get into in this post; sufficed to say, it's pretty frickin' sweet. What I did not find to be as frickin' sweet …

Continue reading