Tag Info

Hot answers tagged

12

Remember, you should only publicize your app if it can actually be used! I'm working on an idea for an app. In true "customer development" fashion, I'd like to publish the idea, with a screenshot of what it will look like, to see what kind of reaction it gets and what features people want it to have. It's not difficult to implement, but I'd rather ...


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 -> ...


6

Yes, see the wiki page for the script tag.


5

Historical Note StackList is no longer available - the features that made it an attractive supplement to listing your app here have found their way into Stack Apps itself. This answer remains for historical purposes. Don't forget to also publish your app on stacklist.quickmediasolutions.com (404 Not Found) The site is shaping into a nice ...


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 *://*.askubuntu.com/* // @match *://*.mathoverflow.net/* // @match *://*.onstartups.com/* ...


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. ...


2

No, there isn't. We don't guarantee the javascript interfaces won't change (or that that dialog won't be radically altered). Generally speaking, if you want to mimic a piece of our UI you'll just have to re-implement it if you want it to be stable.


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

template.user.js // ==UserScript== // @name Stack Exchange Userscript (Template) // @grant none // @match *://*.stackexchange.com/* // @match *://*.stackoverflow.com/* // @match *://*.superuser.com/* // @match *://*.serverfault.com/* // @match *://*.askubuntu.com/* // @match *://*.stackapps.com/* // @match *://*.mathoverflow.net/* // ==/UserScript== var ...


1

Here's a Greasemonkey / Tampermonkey script that'll run a stop watch until an edit reaches 5 minutes of age. Give it a try and see what you think. It might have bugs, but it's close enough for government work I think. (That's a United States idiom meaning it has the mediocre quality one might expect from the lowest bidder, but it works well enough.) Bear ...


1

The markdown code supposedly lives at the pagedown project on code.google.com. (Reference) You may also find these files to be useful: The commented, human readable version of wmd.js The commented, human readable version of full.js Personally, I find it easier to just use normal <textarea> processing followed by a call to ...


1

When an HTTP request to show a page is sent to the Stack Exchange web site, a check is explicitly made to ensure that returned page is not loaded into an <iframe>. The response header that comes back for X-Frame-Options is SAMEORIGIN which means that only pages loaded from the same origin can be included in the <iframe>. There are good reasons ...


1

I'm detecting which page we are using the StackExchange object: The property StackExchange.options.routeName can be (among other values): Questions/Show (/questions/POST-ID) Questions/List (/questions) Questions/ListByTag (/questions/tagged/TAG-NAME) So, to run a script only when viewing an individual post: var userscript = function($) { if( ( ...


1

Here is a one for css too: // ==UserScript== // @name changeMe // @namespace http://use.your.homepage/ // @version 0.1 // @description addSomethingUseful // @match http*://*.stackoverflow.com/* // @match http*://*.serverfault.com/* // @match http*://*.superuser.com/* // @match http*://*.stackexchange.com/* // @match ...


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

PHP /** * 101 sites sorted alphabetically * Updated 2013.04.14 */ $se_sites = array ( 'academia' => array( 'Academia', 'http://academia.stackexchange.com', 'Q&A for academics and those enrolled in higher education', ), 'android' => array( 'Android Enthusiasts', 'http://android.stackexchange.com', 'Q&A for ...


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