Skip to content

Instantly share code, notes, and snippets.

View Tiny-Giant's full-sized avatar

Tiny Giant Tiny-Giant

  • Ladysmith, BC, Canada
View GitHub Profile
// ==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==
// ==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==
StackExchange.inlineTagEditing = (function () {
var questions = $('div.question');
var inits = {};
questions.each(function(){
var question = $(this);
var jTagList;
var jEditTagsLink;
var jLinkWrapper;
(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);
(function($)
{
'use strict';
if (typeof jQuery == 'undefined')
{
alert('no jquery');
}
$(document).ready(function()
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++)
(function($)
{
'use strict';
var HeaderVideo = function(settings)
{
if (settings.element.length === 0)
{
return;
}
function addXHRListener(callback)
{
var open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function()
{
this.addEventListener('load', callback.bind(null, this), false);
open.apply(this, arguments);
};
};
document.addEventListener('click', function(e)
{
if (!/a/i.test(e.target.tagName))
{
return;
}
if (!/#/.test(e.target.href))
{
return;
// 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)
{