Questions tagged [javascript]

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

Filter by
Sorted by
Tagged with
6 votes
0 answers
141 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
10 votes
0 answers
255 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
3 votes
1 answer
304 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, as well ...
Jeremy's user avatar
  • 1
4 votes
0 answers
283 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
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
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
1 vote
0 answers
299 views

OBSOLETE - StackOverflow Updater.. Update Questions without the refresh

Obsolete: App is long gone from the Chrome store. No source-code available. It was coded for a decommissioned version of the API anyway. SOUpdater - UnRefresh! (1.2) App (Chrome-Extension) ...
Ajai's user avatar
  • 119
3 votes
1 answer
402 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 ...
Zhaph - Ben Duguid's user avatar
5 votes
0 answers
345 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
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
  • 1
15 votes
1 answer
389 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
2 votes
1 answer
236 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?
mihsathe's user avatar
  • 121
2 votes
1 answer
122 views

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

EDIT: as you can see, the OP is now highlighted a bit more clearly, in 2021! But this may change, or someone might want a more striking contrast. When the Original Poster of a question comments ...
Cerberus's user avatar
  • 123
6 votes
2 answers
183 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
0 answers
328 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
14 votes
3 answers
637 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
2 votes
2 answers
896 views

Is something filtering 'document.cookie' in SO pages?

My colleague and I are developing an annotation tool for web resources. One way The user can us the tool is to click a special bookmarklet to view the current page with annotations added. The ...
Stephen C's user avatar
  • 123
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
5 votes
1 answer
167 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
3 answers
163 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
3 votes
1 answer
349 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) Platform ...
radius's user avatar
  • 473
2 votes
1 answer
312 views

Best way to calculate total badge count in Javascript?

I'm using Javascript and JSONP and want to find-out a user's total badge-count (i'm not using any libraries). At first I naively added up the badge counts individually, but some user's have no badges....
Gelatin's user avatar
  • 796
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 ...
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
4 votes
0 answers
407 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 your ...
carson's user avatar
  • 5,102
6 votes
1 answer
238 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
16 votes
1 answer
877 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
23 votes
2 answers
969 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
264 votes
12 answers
23k 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 type="text/javascript" ...
Soviut's user avatar
  • 3,333
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,333
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
5 votes
1 answer
849 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
1 vote
1 answer
379 views

How to use the stackapps API from JavaScript with XMLHttpRequest or XDomainRequest?

I had an idea for an app that required calling the stackapps API from JavaScript, but when I started prototyping it I quickly found out that the API does not allow cross origin requests. This means ...
Greg Bray's user avatar
  • 175

1
2