// Makes every form on a webpage be method="GET" instead of post, so it's easy to make bookmarks from search forms. var f = document.getElementsByTagName('form'); for (var i=0; i<f.length; i++) { f[i].setAttribute('method', 'GET'); }