Skip to main content

Questions tagged [javascript]

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

Filter by
Sorted by
Tagged with
263 votes
12 answers
23k views

Obsolete - 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 ...
Soviut's user avatar
  • 3,313
41 votes
0 answers
3k views

OBSOLETE - Stack Exchange Deleted Question Viewer

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 ...
Jeremy's user avatar
  • 781
25 votes
15 answers
3k views

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

OBSOLETE This library uses the old API, and the soapi.info domain doesn't work anymore. There's still an archive on CodePlex. Soapi.js If you are looking for a full featured, compact JavaScript ...
Sky Sanders's user avatar
  • 12.1k
23 votes
2 answers
994 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 achieve ...
SztupY's user avatar
  • 713
21 votes
1 answer
343 views

sechatr - adding Hangouts-style avatars to chat

New And Improved! I have rewritten the application and fixed a ton of bugs that were causing issues (and extremely high memory usage). If you ran into trouble before, give the new version a spin! ...
Nathan Osman's user avatar
  • 23.3k
18 votes
3 answers
2k views

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

OBSOLETE - Site is dead. And domain has been un-hosted and/or parked since 2013. Screenshots About Web application to show how all a user has been involve in the different stack sites over time. ...
RichH's user avatar
  • 281
16 votes
1 answer
895 views

OBSOLETE - 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' src='http://files.quickmediasolutions.com/stackad/stackad.min....
Nathan Osman's user avatar
  • 23.3k
15 votes
1 answer
391 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 ...
Gelatin's user avatar
  • 796
14 votes
3 answers
641 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 original ...
Nathan Osman's user avatar
  • 23.3k
13 votes
12 answers
1k 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) { ...
Sky Sanders's user avatar
  • 12.1k
13 votes
0 answers
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 but is ...
Nathan Osman's user avatar
  • 23.3k
13 votes
0 answers
15k 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 ...
12 votes
1 answer
1k 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 abstracts ...
Josh's user avatar
  • 563
12 votes
0 answers
401 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: ...
andrewsomething's user avatar
11 votes
0 answers
461 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 ...
ArtOfCode's user avatar
  • 483
10 votes
0 answers
260 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 ...
Nathan Osman's user avatar
  • 23.3k
9 votes
3 answers
545 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 ...
Doorknob's user avatar
  • 1,309
9 votes
1 answer
853 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 ...
Lizza's user avatar
  • 193
9 votes
0 answers
926 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 ...
Marcin Orlowski's user avatar
7 votes
1 answer
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?
Soviut's user avatar
  • 3,313
7 votes
0 answers
766 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 ...
Siddhant's user avatar
  • 171
6 votes
3 answers
94 views

Tab4SE - the TAB key in your post

Tab4SE Screenshot / Code Snippet About Uses SmartTabbing™ technology to enable Tabing (Indent) and Shift+Tabing (Unindent). Can be enabled via the toggle switch in the toolbar (preference is ...
Spectric's user avatar
  • 1,705
6 votes
1 answer
195 views

JavaScript SDK-based workflow never pushes message back from OAuth login_success page on Stack Exchange side

I'm using the JavaScript SDK by Stack Exchange provided with the latest API, and despite following the official instructions & examples it doesn't work - it seems there is a bug which breaks the ...
Mikhail Vink's user avatar
6 votes
1 answer
9k 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 ...
MDalt's user avatar
  • 161
6 votes
1 answer
293 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) { alert('...
Alex Saskevich's user avatar
6 votes
2 answers
185 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 ...
mylesagray's user avatar
6 votes
1 answer
7k 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 benefits over ...
Jonny Buchanan's user avatar
6 votes
1 answer
249 views

OBSOLETE - 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 open ...
Nathan Osman's user avatar
  • 23.3k
6 votes
0 answers
181 views

View close votes, reopen votes, and delete votes with insufficient repuation

Screenshot / Code Snippet About This script shows the number of current close votes, reopen votes and delete votes for a question. Works on all Stack Exchange sites. License GNU Lesser General Public ...
user avatar
6 votes
0 answers
142 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, ...
ThiefMaster's user avatar
6 votes
0 answers
346 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. Downloads: ...
micahwittman's user avatar
5 votes
3 answers
164 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?
Joe's user avatar
  • 59
5 votes
1 answer
169 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 ...
Adam's user avatar
  • 809
5 votes
1 answer
162 views

How can I implement a method to call the SE API that handles backoff correctly?

I'm writing JavaScript (Node.js) code that calls the Stack Exchange API. One part of the API is that it may return a non-zero value for backoff, which essentially means "wait n seconds before ...
cocomac's user avatar
  • 498
5 votes
1 answer
300 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 suggestions, ...
user2428118's user avatar
5 votes
1 answer
858 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 ...
Nathan Osman's user avatar
  • 23.3k
5 votes
1 answer
281 views

Cannot authenticate with OAuth2

I was testing an app and suddenly I can't login any more. Neither my app or the Stack App configuration hasn't changed, so I'm thinking this might be a bug on the API side. The OAuth error seems a ...
gion_13's user avatar
  • 161
5 votes
0 answers
94 views

Load Anonymous feedback

Access to anonymous and low-rep post feedback This User script allows to view anonymous and low-rep post feedback/votes under the voting menu: You can get it from GitHub: Source Install What is ...
dan1st's user avatar
  • 261
5 votes
1 answer
644 views

Issue with JavaScript SDK

When using the JavaScript SDK to enable client side OAuth flow, I'm running into this issue: Uncaught TypeError: Cannot read properties of null (reading 'postMessage') And the page gets stuck with the ...
Sourabh Choraria's user avatar
5 votes
0 answers
920 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 ...
Sachin Jain's user avatar
5 votes
0 answers
429 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 CORS ...
Universal Electricity's user avatar
5 votes
0 answers
79 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: http://...
Universal Electricity's user avatar
5 votes
0 answers
346 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 flair that ...
austinbv's user avatar
  • 151
4 votes
1 answer
566 views

Javascript SDK channelUrl for local development [duplicate]

I am trying to get started with the Javascript SDK. I am developing on a web server on my local machine. I get a channelUrl-related error when calling SE.init. My code: SE.init({ clientId: ...
joews's user avatar
  • 149
4 votes
2 answers
172 views

How to use the StackExchange object on a userscript?

This object seems to be available in all Stack Exchange pages and contains interesting information about the actual page, site, user, among others. Just type StackExchange on the console to check it ...
brasofilo's user avatar
  • 1,002
4 votes
0 answers
282 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. There is ...
Tim's user avatar
  • 581
4 votes
0 answers
213 views

IGB Stack Flair – A dynamic flair for Stack Exchange sites

A dynamic flair for Stack Exchange sites inspired by Stack Exchange's native User Flairs. With Advanced Features Including Stack Exchange sites with more than 101 reputation (compared to 200). ...
Gerold Broser's user avatar
4 votes
0 answers
378 views

Angular StackOverflow Activity, a module for showing off your public activity

Screenshot About AngularJS directive module for showing off your public StackOverflow activity. Works well with responsive frameworks including Bootstrap 3. Customizable templates and iconography. ...
Dan Kanze's user avatar
  • 141
4 votes
0 answers
226 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 allow ...
Precastic's user avatar
  • 141
4 votes
0 answers
289 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 ...
Crashthatch's user avatar