I'm trying to make a userscript for a website to add custom emotes. However, I've been getting a lot of errors.   Here is the function:  function saveEmotes() {     removeLineBreaks();     EmoteNameLines = EmoteName.value.split("\n"...
I was facing an issue while developing this small userscript. When I wanted to block every XMLHttpRequest from the running website with my script, nothing was happening (at least with Chrome):  function main() {   // Override XHR.open with a custom...
I'm writing some javascript (a greasemonkey/userscript) that will insert some input fields into a form on a website.  The thing is, I don't want those input fields to affect the form in any way, I don't want them to be submitted when th...
I'm creating a UserScript extension for Firefox & Chrome and I'm trying to use some of the code in the website's JavaScript, e.g.:  function: myFunction(){     return  Grooveshark.playNextSong(); }   The problem is when I test this...
I would like to simulate a whole click not just   document.getElementsByClassName()[0].click();   How do I do that?  Search results all seem to be about handling such events, not triggering them....
I need to pass data between two autonomic user scripts - ideally without touching the unsafeWindow object - and I thought using custom events would be the way to go. I thought of something like this (let us disregard the MSIE model for the purpose...
Please see this related question for a background to this:  How can I load a shared web worker with a user-script?  With that question in mind, I want to explore the possibility (in context of a user-script) of modifying the Shared Worker constructor...
// the iframe of the div I need to access var iframe = document.getElementsByTagName("iframe")[2]; var innerDoc = iframe.contentDocument || iframe.contentWindow.document;  // resize 'player' in the iframe innerDoc.getElementById('...
First of all there is a question with the same title here on SO but its not what I'm looking for and it doesn't have a complete answer either.  So here's my question. Say I have this URL which directs to an image.  https://fbcdn-photos-a....
I want to change parts of the webpage display, is it possible to overwrite a function with a userscript?   Below is the function I would like overwritten (also found Here):  function StartDrawing() {     if ((typeof (systemsJSON) != "undefined...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.