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 have a Greasemonkey script that works just fine in Firefox and Opera. I struggle with getting it to work in Chrome, however. The problem is injecting a function into the page that can be invoked by code from the page. Here's what I'm doin...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.