Last active
November 19, 2023 19:00
-
-
Save MarcoGorelli/775e77e7f5abe18631052cea77d61227 to your computer and use it in GitHub Desktop.
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 myshipit | |
// @author marcogorelli | |
// @match https://github.com/* | |
// adapted from https://github.com/chriskuehl/shipit/blob/master/shipit.user.js, | |
// but I removed a handful of gifs (like the pikachu one) which I didn't like | |
// ==/UserScript== | |
(function () { | |
var urls = [ | |
'https://i.fluffy.cc/3X84Bq2RR182XcPr0NTKKCp7wvNT8MhD.gif', | |
'https://i.fluffy.cc/7WXqprWzDtCpbfprBZG1Hngnp7H7pfQm.gif', | |
'https://i.fluffy.cc/XLT38p3r6PgBxFpMgcp72Cl2bvLRMrlt.gif', | |
'https://i.fluffy.cc/MKjDMmwXxZlqRTwnn070gVqZ8Rwh6d3p.gif', | |
'https://i.fluffy.cc/wGghKClKBFgsrPlJvwxlbd3WQJ7nRZSN.gif', | |
'https://i.fluffy.cc/b6wlBbdVkX83CHpLWxHZw74WJxHVQc9S.gif', | |
'https://i.fluffy.cc/Xr1jnB3r6dWrfwqPwNdrpnF9zW1lVp0F.gif', | |
'https://i.fluffy.cc/4pzS922wdxxZ5qdZCFwLRs2pqg46hPnc.gif', | |
'https://i.fluffy.cc/txmjpfs0Svcz29tn0vtDVvLR0KhWh82h.gif', | |
'https://i.fluffy.cc/TNRR0PklwSCMZlZHQkvpQPNl8h50SpgP.gif', | |
'https://i.fluffy.cc/qHzfcB6BZ9ZD7K3wFknqLsrHqsq56bPM.gif', | |
'https://i.fluffy.cc/6KVxTshxMsrtB8MjZ7MHvlvBCJjftgtP.gif', | |
'https://i.fluffy.cc/VKWgLLbr8ZGc8Gs0b6Hm8wb5xQGmlbwR.gif', | |
'https://i.fluffy.cc/2VN5sRNLH0hds4wglBHfnstJlJXC4mgJ.gif', | |
'https://i.fluffy.cc/g6TR0RVJMJ4f5nWrDR39tNrddc3gNSdm.gif', | |
'https://i.fluffy.cc/zVmg9csn3pdFq4S6hQKHKzdCl3B7cRvG.gif', | |
'https://i.fluffy.cc/hc8WTNRNffFv0fTPJDTdFFbsKMCQn5Rz.gif', | |
'https://i.fluffy.cc/qkNfpP0j2Ptdt9vDX2qq3NCXqdkcK6sS.gif', | |
'https://i.fluffy.cc/45zQ34w0KwWXsgh0KM4g5qZ4vjRj0xw2.gif', | |
'https://i.fluffy.cc/27MHQpGVHf8zsBqx96gxT5PB5mS1jtjD.gif', | |
'https://i.fluffy.cc/4HrdmGw7MHL3rcH3J0lCBBG7xhlxnWs7.gif', | |
'https://i.giphy.com/media/BLukR6iKyCoDDxUfk0/giphy.webp' | |
]; | |
document.documentElement.addEventListener('click', function (e) { | |
var msg; | |
if (urls.length && e.target.name === 'pull_request_review[event]' && e.target.value === 'approve') { | |
msg = document.querySelector('#pull_request_review_body') | |
msg.value = `${msg.value}\n\n * urls.length)]})`; | |
} | |
}); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment