Skip to content

Instantly share code, notes, and snippets.

@bgmort
bgmort / gist:4455742
Created January 4, 2013 20:28
User script providing the functionality discussed at https://jira.atlassian.com/browse/JRA-13079. Provides a link from a JIRA issue page to a search page containing the issue's subtasks, where then can be modified in bulk.
// ==UserScript==
// @name Jira: Edit all sub-tasks
// @description Open subtasks of a story in search so they may all be modified at once
// @match http://jira.your.company.com/browse/*
// ==/UserScript==
(function(){
var matches = location.pathname.match(/[A-Z]+-[0-9]+/),
list, id, item, link;
@bgmort
bgmort / starwars-ify.bookmarklet.js
Last active July 29, 2016 19:18
Star Wars-ify Bookmarklet
//Intended for use as a bookmarklet. See http://mortensoncreative.com/code/starwars-ify
//License TBA
(function(c){var a=c.body.style;c.documentElement.style.background=a.background="black";a.color="yellow";a.height=a.width="100%";a.position="fixed";a.overflowY="scroll";a.top="-15%";a.webkitTransform=a.MozTransform=a.transform="matrix3d(1,0,0,0,0,1,0,-0.0015,0,0,1,0,0,0,0,1)";for(var a=c.body.children,b=0;b<a.length;b++)"SCRIPT"!=a[b].nodeName&&(a[b].style.overflowY="scroll",a[b].style.maxHeight="100%");var b=new Audio();b.src="https://archive.org/download/StarWarsThemeSongByJohnWilliams/Star%20Wars%20Theme%20Song%20By%20John%20Williams.mp3";var f=function(){for(var a,b=0;a=c.body.children[b];b++)"SCRIPT"!=a.nodeName&&(a.scrollTop+=2);setTimeout(f,50)};setTimeout(f,1000);b.load();b.play()})(document)