Are you sure you want to go to an external site to donate a monetary value?
WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
I won't be posting the lib here on OUJS as I won't be supporting it beyond where I left it off as (and I am fine with any changes, given the attribution remains). I would prefer it to be something along these lines:
// @author Ryan Chatham (https://github.com/cletusc/), reposted by Sonny Razzano // @license CC-NC-SA; http://creativecommons.org/licenses/by-nc-sa/3.0/
Any additional stuff (MIT, etc) is fine by me, I just want to make sure both the name and license are somewhere on there.
Although I haven't rehosted this since USO went down, I have authored the majority of this code. See http://userscripts-mirror.org/scripts/review/98574.html and http://userscripts-mirror.org/scripts/review/87345.html for the mirrored sources, both of which are included in this source but aren't attributing me as the original author.
@Marti, do you have any suggestions on how to handle this? Original scripts were CC-NC-SA.
Re: @Quackmaster:
cloneInto
would work here.var privilegedFunctions = { myCallback: function (event, xhr, settings) { console.log('myCallback works as expected!'); myScope(); } }; function myScope() { console.log('myScope works as expected!'); } privilegedFunctions = cloneInto(privilegedFunctions, unsafeWindow, {cloneFunctions: true}); $(document).ajaxComplete(privilegedFunctions.myCallback);
Re: @Quackmaster:
The biggest question would be: what
GM_*
API methods do you actually use?Re: @Marti:
Thanks Marti. I've pushed it to dev, so it'll update next time I merge to master.