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'm trying to set the background image of the body, but only where it uses the class banner_url.  The HTML is as follows:  <body id="app_body" class="banner_url desktopapp" data-backdrop-limit="1">   Basically, I w...
I want to load a shared worker with a user-script. The problem is the user-script is free, and has no business model for hosting a file - nor would I want to use a server, even a free one, to host one tiny file. Regardless, I tried it and I (of cou...
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...
I am writing a UserScript that will remove elements from a page that contain a certain string.  If I understand jQuery's contains() function correctly, it seems like the correct tool for the job.  Unfortunately, since the page I'll be running...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.