Hi I am a newbie in JavaScript.
I am trying to change the useragent string of my browser by using a Greasemonkey script.
So far I have done something like that:
But doesn't work. I'm "studying" this page for getting it work Maybe I need to do something with the Onload?
Can anyone help me make this working?
I am newbie so bare with me!
I am trying to change the useragent string of my browser by using a Greasemonkey script.
So far I have done something like that:
Code:
GM_xmlhttpRequest({
method: 'GET',
url: window.location.href,
headers: {
'User-Agent': 'Mozilla/4.0 (compatible) Greasemonkey',
'Accept': '*/*',
},
});
But doesn't work. I'm "studying" this page for getting it work Maybe I need to do something with the Onload?
Can anyone help me make this working?
I am newbie so bare with me!