// ==UserScript== // @name Stack Overflow: StackPrinter // @namespace http://userscripts.org/users/gangsta75 // @description Add Printer-Friendly button to question. This script is forked from http://userscripts-mirror.org/scripts/show/77298 and it add supports for HTTPs // @include http*://stackoverflow.com/questions/* // @include http*://serverfault.com/questions/* // @include http*://superuser.com/questions/* // @include http*://stackapps.com/questions/* // @include http*://meta.stackoverflow.com/questions/* // @include http*://*.stackexchange.com/questions/* // @include http*://askubuntu.com/questions/* // @include http*://answers.onstartups.com/questions/* // @include http*://meta.mathoverflow.net/questions/* // @include http*://mathoverflow.net/questions/* // @version 2.0.1 // @grant none // @downloadURL none // ==/UserScript== function with_jquery(f) { var script = document.createElement("script"); script.type = "text/javascript"; script.textContent = "(" + f.toString() + ")(jQuery)"; document.body.appendChild(script); } with_jquery(function($) { var re = new RegExp("^http[s]*://(.*?)\.(com|net|org)"); var group = re.exec(window.location.href); var service = group[1]; $('#question .vote:first').append('
'); });