{"id":154,"date":"2008-06-11T02:01:38","date_gmt":"2008-06-11T07:01:38","guid":{"rendered":"http:\/\/www.jasonmorrison.net\/content\/?p=154"},"modified":"2008-06-11T02:01:38","modified_gmt":"2008-06-11T07:01:38","slug":"an-interesting-use-of-greasemonkey-troubleshooting-other-peoples-sites","status":"publish","type":"post","link":"http:\/\/www.jasonmorrison.net\/content\/2008\/an-interesting-use-of-greasemonkey-troubleshooting-other-peoples-sites\/","title":{"rendered":"An interesting use of Greasemonkey &#8211; Troubleshooting other people&#8217;s sites"},"content":{"rendered":"<p><a class=\"tt-flickr tt-flickr-Small\" href=\"http:\/\/www.jasonmorrison.net\/content\/photos\/photo\/2052988706\/Detriot-Superior-and-Center-Street-Bridge.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" style=\"border: 0pt none; float: right;\" src=\"http:\/\/farm3.static.flickr.com\/2275\/2052988706_886b644aae_m.jpg\" border=\"0\" alt=\"Detriot-Superior and Center Street Bridge\" width=\"240\" height=\"180\" \/><\/a> I&#8217;ve played around with <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/748\">Firefox&#8217;s Greasemonkey add-on<\/a> here and there but never really delved into it until recently.\u00a0 I found most of the common uses for it to be either too specific to someone else&#8217;s use habits or already covered by other extensions.\u00a0 For example, there are probably a million ad blocking scripts out there, but I already have <a href=\"http:\/\/www.unsoughtinput.com\/index.php\/2007\/08\/16\/is-firefox-with-adblock-illegal-unethical-or-just-plan-communism\/\">Adblock<\/a>.<\/p>\n<p>I&#8217;ve grown to appreciate Greasemonkey a lot more since I learned that you can make AJAX calls in scripts &#8211; now we can do some real damage.\u00a0 But this post is not about that, it&#8217;s about a totally different use case that I hadn&#8217;t thought of before.<\/p>\n<p>If you&#8217;re a web developer with any friends or family you&#8217;ve probably heard this one before:<\/p>\n<blockquote><p>&#8220;Something&#8217;s wrong with my web site, can you take a look?&#8221;<\/p><\/blockquote>\n<p>Often, though, you won&#8217;t have access to a dev server, database, or even a copy of the server-side code.\u00a0 All you can see is the HTML and Javascript source and the HTTP transactions going back and forth.<\/p>\n<p>Greasemonkey can&#8217;t rewrite PHP code on someone else&#8217;s server but it does make it really, really easy for you to alter forms, delete and change cookie values, and patch and debug Javascript on the site you&#8217;re looking at, without changing any other variables.<\/p>\n<p>This can be really, really useful in some situations.\u00a0 So now it&#8217;s officially added to my volunteer\/web-developer\/brother-in-law toolbelt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve played around with Firefox&#8217;s Greasemonkey add-on here and there but never really delved into it until recently.\u00a0 I found most of the common uses for it to be either too specific to someone else&#8217;s use habits or already covered by other extensions.\u00a0 For example, there are probably a million ad blocking scripts out there, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[273,262,272,20,270,271,260,231,46],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-blog","tag-adblock","tag-ajax","tag-debugging","tag-firefox","tag-greasemonkey","tag-html","tag-javascript","tag-troubleshooting","tag-web-development"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":0,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}