Questions about usage of the Stack Exchange API in client-side browser JavaScript.

learn more… | top users | synonyms

246
votes
12answers
21k views

StackTack, a JavaScript widget you can stick anywhere

Screenshot / Code Snippet <head> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script ...
37
votes
0answers
2k views

Stack Exchange Deleted Question Viewer [broken]

READ: THIS DOES NOT WORK. It has been broken by improvements in privilege enforcement. Sorry! The only reason I haven't deleted this post is that it would be particularly cruel for people seeking a ...
25
votes
0answers
1k views

SO Live! — live updates to your reputation score

Stack Exchange now updates your reputation score in real time. There is no more need to install this extension. Screenshot About This userscript, based on SOApi.js, injects itself in all ...
22
votes
15answers
2k views

Soapi.JS : fluent JavaScript client library for the Stack Exchange API

Soapi.js If you are looking for a full featured, compact JavaScript client library that provides complete end to end coverage of the API, Soapi.JS is a good choice. You may also want to check out ...
20
votes
1answer
170 views

Stack Exchange Chat Status - adding Hangouts-style avatars to chat

About Stack Exchange chat is awesome. But there are a couple of missing features that would complete the experience: Showing how far each user has read Indicating when a user is typing This ...
19
votes
2answers
721 views

VoteCounts: bookmarklet to display up/down votes even for rep less than 1000

Screenshot / Code Snippet About This small bookmarklet will allow anyone to use the "vulnerability" of the API that it allows you to check the up/down vote count - a feat you could normally ...
18
votes
3answers
1k views

Stack Insight - Track a User's Activity Over all Stack Sites.

Screenshots ... but why not see the live site at http://stackinsight.com About Web application to show how all a user has been involve in the different stack sites over time. Just enter your ...
17
votes
0answers
358 views

SO Live! Chat Edition. — live updates to your reputation score, while chatting

Screenshot About This userscript, based on SOApi.js, injects itself in all SE sites' chat pages and polls the API for reputation changes every 60 seconds. When your reputation changes, this ...
13
votes
1answer
293 views

Support Cross-Origin Resource Sharing

Currently, the only way to call the API from javascript is to use JSONP, but this can be cumbersome and has security issues. If the following header was included in all API responses, the API could be ...
13
votes
1answer
750 views

StackAd - An Easy Way to Display Open-Source Ads on Your Site/Blog

Note: This page is due for an update but until then you can add StackAd to your site by adding: <script type='text/javascript' ...
12
votes
3answers
604 views

StackCenter 2 - Now in Public Beta!

Visit now: http://stackcenter.quickmediasolutions.com/beta/ Feedback is appreciated! About StackCenter 2 has been brewing for quite some time now. Since the global inbox was introduced, the ...
11
votes
12answers
962 views

Soapi.JS2: a fully relational JavaScript client library for the Stack Exchange API - beta preview

Soapi.JS2 var context = new Soapi.ApiContext(yourApiKey); context.initialize(function() { context.official.stackApps .Users().ById(14) .invoke(function(users) { ...
11
votes
0answers
295 views

StackBrowser for Ubuntu Touch

About StackBrowser allows you to explore the StackExchange network natively on Ubuntu Touch. Written in QML and JavaScript, it is mostly an excuse to play with the new Ubuntu SDK. Currently you can: ...
11
votes
0answers
12k views

How to call the API via JSONP in Plain Old JavaScript

This tips demonstrates how to call the API in JavaScript without the need of jQuery or other frameworks. In a lot of cases you will find that the JSONP implementations provided in various frameworks ...
10
votes
1answer
690 views

ThirdPlace JavaScript chat library

Screenshot / Code Snippet var room = ThirdPlace.Room.GetCurrentRoom(); var message = new ThirdPlace.Message; message.room_id = room.id; message.content = "ThirdPlace.js is a library which ...
10
votes
0answers
2k views

Stack.JS - Powerful Event-driven Library for Accessing the Stack Exchange API in JavaScript.

About Stack.JS is the JavaScript equivalent of Stack.PHP and aims to replicate the request structure of that library as much as possible. The library is still a long ways from being complete ...
9
votes
0answers
184 views

StackTack - George Edison Remix (now with a few extra features!)

Screenshot About StackTack was originally listed here on Stack Apps. The idea was terrific and Soviut did such an awesome job building the application that I decided to fork it. My original ...
8
votes
3answers
263 views

Stack Exchange userscript template / boilerplate

I find it annoying to have to type the entire list of Stack Exchange sites to include every single time I make a new userscript. Furthermore, jQuery isn't automatically included by default. Is there ...
7
votes
0answers
307 views

Stack Addict: Always-on StackExchange question viewer (Chrome Extension)

Stack Addict is a question-list widget accessible at any time, from any page you're on. Pressing a simple keyboard-shortcut brings up the question viewer, from which you can search, sort, and ...
6
votes
1answer
1k views

Is it safe to embed my API key into my javascript-only application?

I have an application I'm developing that's pure javascript and consumes the Stack API. My API key is embedded in the source which anyone could read. Is this safe?
6
votes
1answer
217 views

Suggestion Status - a userscript to view the status of your suggested edits

Suggestion Status is a small userscript which displays the status of your suggestions using color codes; , and yet to be reviewed. This allows you to immediately see the status of your ...
6
votes
2answers
140 views

OR operator for StackOverflow API

I'm trying to get a list of questions from the SO API for a number of tags, At the moment I am using the ; operator to separate the tags in the URL but the thing is this only brings up questions that ...
6
votes
1answer
6k views

Stack Overflow Tag Manager

Screenshot About Stack Overflow Tag Manager is a Greasemonkey script for expressing your tag preferences, which partly inspired Stack Overflow's own tag preferences feature. Continued ...
6
votes
1answer
177 views

StackAd Scroller

Screenshot About StackAd Scroller is a small web application that scrolls the open source ads from this Meta question. It is highly configurable and makes a nice page to leave your web browser ...
6
votes
0answers
203 views

ArtOfChatbot + Chat API - a customisable chatbot

Stack Exchange chat has no API. While this is not a complete chat API, it introduces a level of control that makes it far easier to run chatbots. About ArtOfChatbot is a two-part creation: a basic ...
6
votes
0answers
102 views

JSBeautifier shortcut

This userscript adds a shortcut (CTRL+SHIFT+B) to beautify the selected JavaScript code using the same engine that also runs jsbeautifier.org. You can find the source on GitHub (feel free to fork, ...
5
votes
3answers
152 views

Injecting HTML Into A Stackexchange Site

I am writing an application that injects some HTML into the page. I was wondering what the policy is for this. Is it ok or generally frowned upon?
5
votes
0answers
143 views

StackUnderflow - Greasemonkey/Tampermonkey helper for StackOverflow users

StackUnderflow StackUnderflow is Greasemonkey/Tampermonkey (or compatible) user script that aims to improve your experience with StackOverflow.com. Once it runs, you should easily notice additional ...
5
votes
0answers
406 views

Stack Overflow Instant Search

Screenshot About I love the concept of instant search that Google introduced. Stack Overflow Instant Search does exactly that - it brings (almost) instant search to Stack Overflow. The results ...
5
votes
0answers
260 views

Question Dashboard (Greasemonkey Script)

Question Dashboard for stackoverflow.com (plus meta, serverfault and superuser) - page analyzed and indicators shown at the top of the question, just under the title, for key information. ...
4
votes
1answer
129 views

What timezone is used in the API?

When a timestamp is used, for example the fromdate parameter in /questions, what timezone are dates in? Is the number supposed to be in milliseconds or in seconds? To get the current time to pass as ...
4
votes
1answer
39 views

Help with javascript SDK configuration

The following problem is REAL! All names have been changed to protect the innocent. I have a site at "http://Something.github.io/MyRepository/Directory/index.html" And I have my app configured like ...
4
votes
1answer
3k views

'The target origin provided does not match the recipient window's origin' message when trying to use localhost

I am trying to experiment with the Stack Overflow API on my localhost and am struggling to get the authentication to complete. Here is my application JavaScript code (note that I am using IBM ...
4
votes
1answer
674 views

StackScript JavaScript Wrapper

Code Snippet Demonstrates the StackUser class: // Global object var ss = new StackScript(''); function GetInfo() { // The provided callback will be called // when the data arrives var ...
4
votes
0answers
45 views

QuestionPacker - Packs Question in a Webpage

Screenshot About It is my version of StackTack, which seems to be discontinued. License Inbox Reader is released under the Apache License 2.0. Download You can get QuestionPacker here: ...
4
votes
0answers
69 views

Stack Exchange API in Chrome extension

How I can connect my extension to the API? I tried to use this example code for connecting: SE.init({ clientId: 1, key: '?', channelUrl: '?', complete: function (data) { ...
4
votes
0answers
136 views

Hide unwanted questions (Greasemonkey Script)

About This Greasemonkey script enables you to hide questions you don't want to see. At the moment Stack Overflow gives you the option to "dim" or hide questions with ignored-tags but doesn't ...
4
votes
0answers
324 views

Small jQuery plugin for flair

See it in action at http://iamaust.in About I know I know another flair plugin. I made this because I always wanted to write a jQuery plugin and for my new website I needed a Stack Overflow ...
3
votes
1answer
212 views

How do I get a GreaseMonkey/UserScript to interact with the Live Preview?

I've converted a script that I hope to get embedded on a StackExchange site (Lego Answers) to a GreaseMonkey/Userscript but I'd like to get it interacting with the live preview when creating or ...
3
votes
1answer
274 views

Web SENotify - Stack Exchange website new question notification

Screenshot About This website is a notification tool of new question on Stack Exchange website. License Public Domain Download Download http://senotify.jeb.be/ content (html, css, js from) ...
3
votes
0answers
89 views

Want a way to give your user the access token nicely?

Well your wishes have been fulfilled. Over on GitHub is a page ready designed for you to use! It's my SEAuthentication repro. What does it do? How does it work? The essential code is below. ...
3
votes
0answers
166 views

StackScraper - export questions as JSON or HTML

About StackScraper is a user script that adds HTML and JSON export options to each question. The JSON loosely resembles the API format and includes the HTML and markdown bodies of all posts, ...
3
votes
0answers
233 views

Stack Tunnel - WebGL Visualization for Stack Exchange

Stack Tunnel Screenshots About StackTunnel is a WebGL visualization which displays the latest questions from any Stack Exchange site interactively within your web browser. You can click on the ...
3
votes
0answers
375 views

Widget Of Awesomeness, an extended profile JavaScript widget

2010-07-17: Due to lack of interest I'm shutting down the hosted version of this. Screenshots Widget: About The Widget Of Awesomeness lets you embed a simple widget on any page that will display ...
2
votes
1answer
3k views

How to convert a (javascript) date to the API timestamp format?

When I am using this page for the Stack Exchange API /search path, I can see that it is generating time-stamps in this format: fromdate=1380326400&todate=1380412800 What is this date format? ...
2
votes
1answer
77 views

Is there a way to increase the contrast of the special highlighting that is applied to the OP of a question?

I apologize if this question is off topic or has already been asked; I couldn't find anything related. When the Original Poster of a question comments somewhere on the question page, his name is sort ...
2
votes
1answer
54 views

Getting “application not configured for implicit grants” error trying to setup website

I had a developer setup StackExchange auth for a site last year and that still works fine. I have cloned that site and am in the process of changing out all of the relevant names and keys to the new ...
2
votes
1answer
199 views

Using the API directly from JavaScript

Is there any way I can use the API directly from JavaScript without any Server side proxy? I know of the inter-domain restrictions, but can we do it somehow in case of facebook API right?
2
votes
0answers
71 views

StackExchange API JS SDk

I am planning to write a javascript library as a wrapper over StackExchange API. Currently, every webapp using StackExchange api needs to compile the url and make a GET request (mostly by ajax) which ...
2
votes
0answers
73 views

ChatExchange - It is an API for Chat

Code Snippet sendMessage('chat.meta.stackexchange.com', 721, 'Hello @Sha', fkey().fkey) //Sends the message 'Hello @Sha' to Shadow's Den //Must be run in a chat site, due to @Balpha not wanting ...