Skip to content

Instantly share code, notes, and snippets.

@kirb
Created September 18, 2012 23:35
Show Gist options
  • Select an option

  • Save kirb/3746730 to your computer and use it in GitHub Desktop.

Select an option

Save kirb/3746730 to your computer and use it in GitHub Desktop.
JailbreakQA Answer Macros
// ==UserScript==
// @name JailbreakQA Answer Macros
// @description Lazy answers for the lazy questions
// @author thekirbylover
// @include http://www.jailbreakqa.com/questions/*
// @version 1.0
// ==/UserScript==
var macros = {
"Safe Mode": "Have you tried the instructions at [this FAQ entry](http://www.jailbreakqa.com/questions/32462/frequently-asked-questions/32560)?",
"Crashing Tweak": "You've installed an incompatible tweak. Try the instructions at [this FAQ entry](http://www.jailbreakqa.com/questions/32462/frequently-asked-questions/32560) to remove the incompatible tweak.",
"Deleted the Cydia":"You might be able to try the instructions at [this FAQ entry](http://www.jailbreakqa.com/questions/32462/frequently-asked-questions/116177) to get Cydia back.",
"RTFM":"Please see the link at the top of the JailbreakQA site.",
"He's a Pirate!": "We don't support piracy. Buy your apps.\n\n![](http://i.imgur.com/B53uV.png)"
};
(function() {
var p = $("<p style=\"margin:0\"></p>");
for (var i in macros)
p.append($("<button style=\"margin-right:6px\"></button>").text(i).click(function(e) {
e.preventDefault();
$("#fmanswer .resizable-textarea textarea").val(macros[this.innerText]).focus().keydown();
}));
p.insertBefore("#fmanswer .resizable-textarea");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment