Tag Info

Hot answers tagged

9

Unfortunately the news is bad all around. Sathya has updated the tag wiki for script to include the following paragraph: As of May/June 2012, Chrome no longer allows for direct installations of off-store extensions. To install them, you'll have to download/save the .user.js file, open chrome://chrome/extensions/ (or Click on Wrench -> Tools -> ...


3

You don't need to support alias domains. They redirect to *.stackexchange.com domains, anyway. This will match all current Stack Exchange sites. It uses @match for smarter domain and path wildcards. @match also works better for Chrome: // @match http://*.askubuntu.com/* // @match http://*.mathoverflow.net/* // @match ...


2

Okay, I didn't quite do what you wanted, but hopefully you'll find the solution I came up with acceptable. user-script is now a synonym of script, and I went through and retagged all questions that were about userscripts (but weren't posts intending to make a script available) with just scripts. Admittedly the distinction may not be immediately obvious to ...


2

You can actually just pass in window.location.hostname directly: This parameter can be the full domain name (ie. "stackoverflow.com"), or a short form identified by api_site_parameter on the site object. (emphasis mine) Since the site does not provide the short form to you directly anywhere, going the full hostname route is probably your best bet. ...


1

You have two options: 1. Tampermonkey Install Tampermonkey for Chrome; Click the script to install it. 2. Vanilla Chrome Copy the code and save it to a file called anything.user.js; In Chrome, go to Tools > Extensions; Open the folder you saved the script to and drag it onto the Extensions dialog.


1

Alrighty - I found the issue. Tampermonkey assumes that any exception thrown from a user script is an Error object (well...it assumes the exception data will have at least the message and stack properties). When it tries to do string operations on undefined properties, it throws its own exception which makes the whole thing blow up. The Javascript SDK ...


1

This would actually warrant a separate post. But I can't be bothered to make it look nice. So, if anyone wants to pick it up.. Question voting from the main view So it was 23:57 and I forgot to spend all my votes for the day. Obviously I didn't write this script right then, but laboriously clicked through interesting questions to upvote one by one. But to ...



Only top voted, non community-wiki answers of a minimum length are eligible