Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Github Raw Copy Button - TM

// ==UserScript==
// @name Github Raw Copy Button
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/SmartManoj/SmartBot/blob/master/bm.py
// @grant GM_setClipboard
//@require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// ==/UserScript==
var $ = window.jQuery;
unsafeWindow.$=$;
unsafeWindow.copy2=function(){
var z='';$('[id^=LC]').each(function(){z+=$(this).text()+'\n'})
GM_setClipboard(z);
}

var copyf=function(){
console.log('copy');
var c=location.href.indexOf('tryit')!=-1;
var $a=window.$(Copy);
$('.BtnGroup').prepend($a);
}
document.onkeydown=(async function(e){
if(e.key=='c'){//submit
copyb.click();
}
});
copyf();


This post first appeared on SMARTMANOJ, please read the originial post: here

Share the post

Github Raw Copy Button - TM

×

Subscribe to Smartmanoj

Get updates delivered right to your inbox!

Thank you for your subscription

×