Created
September 18, 2012 23:35
-
-
Save kirb/3746730 to your computer and use it in GitHub Desktop.
JailbreakQA Answer Macros
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 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" | |
| }; | |
| (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