This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Show Timeline | |
// @namespace https://github.com/Tunaki/stackoverflow-userscripts | |
// @version 0.4 | |
// @description Adds an anchor below posts that links to their timeline | |
// @author Tunaki @TinyGiant | |
// @include /^https?:\/\/(?!chat)\w*.?(stackexchange.com|stackoverflow.com|serverfault.com|superuser.com|askubuntu.com|stackapps.com|mathoverflow.net)\/.*/ | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Show Timeline | |
// @namespace https://github.com/Tunaki/stackoverflow-userscripts | |
// @version 0.4 | |
// @description Adds an anchor below posts that links to their timeline | |
// @author Tunaki @TinyGiant | |
// @include /^https?:\/\/(?!chat)\w*.?(stackexchange.com|stackoverflow.com|serverfault.com|superuser.com|askubuntu.com|stackapps.com|mathoverflow.net)\/.*/ | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StackExchange.inlineTagEditing = (function () { | |
var questions = $('div.question'); | |
var inits = {}; | |
questions.each(function(){ | |
var question = $(this); | |
var jTagList; | |
var jEditTagsLink; | |
var jLinkWrapper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) | |
{ | |
'use strict'; | |
var leftDivHeight = $('.testimonial-one').height(); | |
$('.testimonial-wrap .span_1_of_3').eq(0).css('height', leftDivHeight); | |
var rightage = $('.testimonial-two').height(); | |
$('.testimonial-wrap .span_2_of_3').eq(1).css('height', rightage); | |
var rightage1 = $('.testimonial-three').height(); | |
$('.testimonial-wrap .span_2_of_3').eq(2).css('height', rightage1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) | |
{ | |
'use strict'; | |
if (typeof jQuery == 'undefined') | |
{ | |
alert('no jquery'); | |
} | |
$(document).ready(function() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class interLeave | |
{ | |
public static void main(String[] args) | |
{ | |
String you = "hhhh"; | |
String me = "aaa"; | |
int length = Math.max(you.length(), me.length()); | |
for (int i = 0; i < length; i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) | |
{ | |
'use strict'; | |
var HeaderVideo = function(settings) | |
{ | |
if (settings.element.length === 0) | |
{ | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addXHRListener(callback) | |
{ | |
var open = XMLHttpRequest.prototype.open; | |
XMLHttpRequest.prototype.open = function() | |
{ | |
this.addEventListener('load', callback.bind(null, this), false); | |
open.apply(this, arguments); | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('click', function(e) | |
{ | |
if (!/a/i.test(e.target.tagName)) | |
{ | |
return; | |
} | |
if (!/#/.test(e.target.href)) | |
{ | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If we query the nodes from the DOM first, we save CPU cycles. | |
var nodes = {}; | |
nodes.row = document.getElementById("row"); | |
nodes.results = document.getElementById("results"); | |
function getStates(str) | |
{ | |
if (str.length == 0) | |
{ |