Questions tagged [javascript]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
120 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 ...
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 ...
2 votes
1 answer
68 views

Is there any API or documentation that would help my adding functionality to Q&A textareas?

I'm writing an userscript that should add some functionality to the main textarea (WMD) used to post and edit answers and questions. The functionality will usually need to do things like insert text ...
7 votes
0 answers
763 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
1 answer
291 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, ...
4 votes
0 answers
218 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 ...
4 votes
2 answers
167 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 ...
9 votes
3 answers
517 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 ...
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 ...
3 votes
0 answers
114 views

I am an awful person and I hate lazers

About Don't like the hover animation on Arqade's mothership? You are probably an awful person, but here's a userscript anyway. Download I am an awful person and I hate lazers Platform Runs ...
1 vote
0 answers
97 views

Banana Stand: Hide the green

Don't like your green rep notifications? Hide them completely with Banana Stand: Banana Stand User Script Download Link Alternatively, make the less intrusive with Banana Stand Lite: Banana Stand ...
4 votes
0 answers
377 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. ...
3 votes
1 answer
5k 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? How ...
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 ...
2 votes
1 answer
286 views

Javascript SDK init fails on sytax error...why?

I'm writing a user script and I want to hit the SE API for something, but SE.init is failing without much feedback indicating what the issue is. According to the documentation, it should be ...
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, ...
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 ...
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 ...
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) { ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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....
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 ...
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?
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 ...

1
2