16 Browsers/Internet
16.1 Google
This section contains google-related code that I have googled more than once
16.2 Javascript Bookmarklets
A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser. (Source: Wikipedia)
16.2.3 Google Translate
Description: Autodetect language and translate into English
javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=’‘){location.href=’http://translate.google.com/translate_t?text=’ t ‘&hl=en&langpair=auto|en&tbb=1&ie=’ e;}else{location.href=‘http://translate.google.com/translate?u=’ escape(location.href) ‘&hl=en&langpair=auto|en&tbb=1&ie=’ e;};
Source: Online Techtips
16.2.4 Not Otherwise Specified
16.2.4.1 Waybackmachine
Description: “If the webpage you’re wanting to read is no longer available, is throwing an error, or the website as a whole has been taken down, you might still have luck finding it on Wayback Machine.”
javascript:location.href='https://web.archive.org/web/*/'+location.href
Source: Online Techtips
16.3 Userscripts
What are user scripts?
User scripts put you in control of your browsing experience. Once installed, they automatically make the sites you visit better by adding features, making them easier to use, or taking out the annoying bits. The user scripts on Greasy Fork were written by other users and posted to share with the world. They’re free to install and easy to use.
(Source: GreasyFork)