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.
Anyone?
Hi,
I've added a script to a group but it seems I can't remove it.
I mean when I'm editing the script info, in the right column there is the group name but there is no "x" icon before the group name.
That "x" is only visible (and clickable) right after entering a group name:
Am I missing something?
I've tried your script but it does not remove ads, it only removes the word "sponsored" when hovering the mouse on it.
Please give me more details: OS and browser used, any error/warning in your JS console?
And remember: this is the issue section, not an advertising showcase.
Anyway, I've tried your script but it does not remove ads, it only removes the word "sponsored" when hovering the mouse on it.
Of course you can do that with JS. You could study this great book: https://eloquentjavascript.net/
Also read the GreaseMonkey Wiki: https://wiki.greasespot.net/Main_Page
Good luck.
Hi,
thanks for your script but you could use MutationObserver instad of setInterval, it watches for new DOM nodes and executes your callback. https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
Cheers.
Hi,
when not in product page your script has an error, to fix it just add the following code
if (undefined == document.getElementsByName("ASIN")[0]) return;
just before this code:
var asin = document.getElementsByName("ASIN")[0].value.trim();
Fixed, I had to manually pass the cookies into
headers
variable like this:GM.xmlHttpRequest({ method: "GET", url: "https://mycoolsite.com/mypage.html", headers: { 'Cookie' : 'mycookiename:mycookievalue;anothercookiename:anothercookievalue' }, onload: function(response) { /* ... */ } });
Hope this can help anyone facing the same issue.
Hi there,
I'm using GM.xmlHttpRequest as follows:
GM.xmlHttpRequest({ method: "GET", url: "https://mycoolsite.com/mypage.html", onload: function(response) { /* ... */ } });
With Tampermonkey v4.8.41 in Chrome v75.0.3770.100 my code works like a charm. With Tampermonkey v4.9.5941 in Firefox 68.0 it seems that the ajax call does not retrieve the page set into "url" variable... Instead, it asks for the url of the current page where my userscript is running.
Any clue?
Hi,
I've just tried to download a video using your userscript, but the file is zero bytes. I'm using Greasemonkey 4.7, Firefox 66.0.2 and OSX 10.13.6
The link exposed by your userscript is:
https://r4---sn-5hnedn7s.googlevideo.com/videoplayback?lmt=1540481205610106&dur=421.976&ratebypass=yes&source=youtube&key=yt6&initcwndbps=350000&ipbits=0&clen=36448988&expire=1554045540&pl=24&mime=video%2Fmp4&ms=au%2Crdu&itag=18&ei=BIagXLrnCMfZ1gK8yI7IDg&mv=m&mt=1554023803&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&txp=5531432&mn=sn-5hnedn7s%2Csn-5hne6nlk&mm=31%2C29&id=o-AJfVk6vGnHEb9uXIT-BRry6MbIABmCm3tFZt17eTx0iq&c=WEB&fvip=5&gir=yes&requiressl=yes&ip=XXX.XXX.XXX.XXX
Please let me know if you need more info.
My two cents:
I think using
x.style.cssText = "max-height: 100vh; max-width: 100vw;/* and so on */";
is more solid thanx.style.property = 'something';
Also, do not set width and height as empty string, rather set them to
auto
orinitial
.Added multiple pages support, closing issue.
Hi,
didn't know of that GET var "limit", thanks. I will work to add multiple pages support.
Whops, thanks for reporting this :)
Re: @jerone:
Sorry for that but old namespace is not valid anymore. Got it, next time I will notify the community.
Re: @jerone:
(hopefully) fixed with
v2.42
Re: @jerone:
Hi thanks for reporting the issue. You're right, it is due to invalid JSON format. Will publish a new version as soon as possible.
Re: @TimidScript:
Thanks for feedback, removal of vote and not displayed negative votes are known issues, please see About Page. Will dig into it.
Re: @TimidScript:
LOL raise the hand who never borrowed something from another coder!
Re: @TimidScript:
Thanks for your screenshot, I've published a new version which shows total installs and ratings in table header.
Re: @cuzi:
k now I got you... Well, the use of
<sup>
it's nothing special imho :)Re: @TimidScript:
By the way what do you mean by "use of superscript"?
Oh, the right word isn't "steal", it's "inspire" :)
Imho that ain't a problem: if an user cleans cookies / localStorage, my userscript will show no statistics at all, as if it were just installed. Does this Make sense?
Hi,
thanks for your feedback, I've just published a new version which fixes both the issues you prompted me.
Regarding catching username, I do know mine was a weak routine so thanks again.
Let me know if you ever decide to build my code into oujs.org, I'm glad to contribute.
I already did the test you suggest (that's why that GM_deleteValue is written there): no errors.
Anyway I've just changed some things and published a new version.
By the way I'm using Date syntax as shown on MDN
Re: @cuzi: