Code works in console/scratchpad but not in a Greasemonkey script? [duplicate]
This question already has an answer here: Code working in browser console but not in tampermonkey 1 answer I'm trying to write a script to make the map larger on Google Flights . I've got the jQuery working in the Firefox scratchpad. This script does exactly what I am trying to accomplish: $('div').filter(function(){ return $(this).css('width') == '648px' }).css({"width":"900px","height":"550px"}); but when I paste that into a Greasemonkey script, it doesn't work. If I add some console.logs to debug, I can verify that the script is running and the filter is working correctly, but it's not