public marks

PUBLIC MARKS from decembre with tags greasemonkey & javascript


GREASYFORK - LIBRARY - checkForBadJavascripts

checkForBadJavascripts: This is a utility function, meant to be used inside a Greasemonkey script that has the "@run-at document-start" directive set. It Checks for and deletes or replaces specific "scrip" tags.


GM - greasemonkey - Changing Javascript on an HTML page out of my control - Stack Overflow

use Greasemonkey to modify the script or to insert another script just after it to override the function

GM - firefox - How to alter this javascript with Greasemonkey? - Stack Overflow

On Firefox Greasemonkey, you can do that with the stupefyingly brilliant (^_^) checkForBadJavascripts utility


javascript - Use Greasemonkey to replace links, to images, with images? - Stack Overflow

Replacing links to images is not too hard to do. However, I recommend that you keep the link but display the picture inside it. This is so you can click through if something goes wrong. For example, that sample page you gave has most of the linked images on a dead site. Other linked images only look like they point to images or might be blocked for "hot linking". To make the code robust and easy, we use jQuery and waitForKeyElements. Here is a complete working script that delinks the payload image-links on that sample site:


data: URI Generator - Convert Online Tool for Icon, image to import it in greasemonkey Script -

data: URI Generator The data: URI scheme allows you to build URLs that embed small data objects. data: URIs are supported by most modern browsers except for Internet Explorer. The lack of IE support is holding back widespread adoption of data: URIs, but they are still very useful in a couple of specific areas such as embedding graphics and other data items in Greasemonkey scripts. You can read more about data: URIs and see some examples of their use, or use the generator below to create your own. data: URIs are defined in RFC 2397.

unsafeWindow - Injecting JS functions into the page from a Greasemonkey script on Chrome - Stack Overflow

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 doing so far: First, I get a helper reference to the unsafeWindow for Firefox. This allows me to have the same code for FF and Opera (and Chrome, I thought).

Folders4Gmail - Greasemonkey for Gmail - Organize labels into subfolder like hierarchy.

You can organize labels into subfolder like hierarchy. Create a parent label like Home and then create sublabels like Home\Bills, Home\Receipts, etc. I thought I never needed folders but this makes using labels so easy to use with the new colors!

Greasefire - Automatically find Greasemonkey scripts on - when you visit a web site, how do you know if there are better ways to view it?

by 1 other
a Firefox add-on that will tell you if there are any user scripts for the page you're visiting. When you have Greasefire and Greasemonkey installed a little monkey will show up in the bottom right corner of your Firefox status bar. If there are scripts available for the site you're viewing, the monkey's background color will change to red. And when you right click on the icon you'll see the number of available scripts. Click on that number and a window will open telling you more about those scripts.

User Script Compiler - Easily convert Greasemonkey scripts into Firefox extensions

First, you'll need to track down your installed scripts. They're in your Firefox profile, under the "gm_scripts" sub-folder. Or, if you'd prefer, you can skip the search and download any script from the online script repository. Next, you need to change the file extension from .js (Javascript) to .txt (plain text). After you've changed the extension, double-click the file to view the code. Copy and paste the code into the User Script Compiler and hit "Generate." Voila! Your new Firefox extension (.xpi) is complete. To install in Firefox, simply drag the new extension onto the Firefox interface and follow the prompts.


Advanced Greasemonkeying — Yoan Blanc’s weblog

Jouant occasionnellement avec Greasemonkey, j’ai fait face a des problèmes récurrent liés à l’architecture de l’extention elle-même. * Comment réutiliser une bibliothèque déjà présente dans la page, * comment traiter un résultat XML * ou qu’est-ce qui fait que je n’arrive pas à mettre une Yahoo!/Google maps dynamiquement. Réutiliser une librairie(, fonction, variable) existante

UserScript Writing 101 – Manuel of Things to learn -

The Order of Things to Learn Look to the "Resources" section for places to learn about these. 1. HTML. Hypertext Markup Language. Not the same "language" as JavaScript. This is a markup language, meaning it's a bunch of text that is meant to represent some type of structure, in this case, a web page. 2. XML. Extensible Markup Language. In case you didn't realize, HTML itself is a type of "XML". Learning XML is important because many popular websites (YouTube, Facebook, use XML to interact with data. Since you already know HTML by this point, understanding XML should be cake. 3. CSS. Cascading Style Sheets. This is the way HTML (should be) stylized. You'll want to learn this. 4. JavaScript. Learn all the basics: data types, functions, JavaScript's native functions like prompt, alert, etc. 5. The Greasemonkey Extras. Like I said, Greasmonkey == JavaScript, with a lot of extras. A specific page listing the API's can be found here.

Curiosity is bliss: XMLHttpRequest - Security Bypass

While trying to help Dare make his MovieFinder page run in Firefox, I ran into an issue that can make developing AJAX applications a pain: when testing your pages, you need to host them in the same domain as your services. I explain the details of the problem and how the "XMLHttpRequest - Bypass Security" Greasemonkey user script solves it. Note: this script is meant for development only, as it gives the page access to a potentially dangerous API. The default @include is "file:///*", but feel free to restrict it even further to the path for the pages you're trying to tweak. You should never have to @include an http ur

Google Maps - Minimal -

A wonderful script. I have tried many google maps fullscreen script, but this one is the best ....move mouse to left side to show sidebar

Gmail-Greasemonkey - Google Code

by 3 others
Ce site répertorie différents scripts Greasemonkey permettant d’enrichier et améliorer l’interface de GMail. Ces scripts ne fonctionne que sous Firefox, et bien sur, nécessite l’installation de l’extension Greasemonkey.

Textarea Backup - sauvegarde le contenu des champs de saisie

Textarea Backup sauvegarde le contenu des champs de saisie pour les forums et autres sites où l'on écrit. Combien de fois avez-vous perdu le contenu de ce que vous tapiez, en fermant un onglet ou une fenêtre par erreur ? Trop ? Ce script sauvegarde tout seul la frappe au clavier. Il suffit de revenir à la page en question, même sur un forum, et le texte revient à sa place.

"CAPTCHA Breaker" or pwntcha - Recherche Google - John Resig - OCR and Neural Nets in JavaScript

John Resig - OCR and Neural Nets in JavaScript Just google for "CAPTCHA Breaker" or pwntcha and you'd have much more advanced captcha breakers capable of much more. But javascript won't be able to handle ...

Javascript CAPTCHA decoder - MAKE: Blog

It will break CAPTCHAs for Megaupload and automatically trigger a download. The code is designed specifically for this CAPTCHA style, but there's no reason why the getImageData trick combined with a alternate OCR implementation couldn't be used to solve for other systems. This is pretty fascinating stuff. Is there a better (more convenient, harder to cheat) way to prove humanness? What else could you make in Javascript using OCR, neural nets, or per-pixel image processing?

Megaupload Auto-Fill Captcha - Greasemonkey - OCR in Java

Auto-fills the megaupload/megarotic captcha and optionally auto-starts download: Rewritten to do OCR in javascript, auto-submit for captcha form. Warning: This runs methods from unsafeWindow, so don't use it if you don't trust since it's possible to use that to run javascript with more privileges. I might write a GIF decoder to avoid this soon.

Handling Keyboard Shortcuts in JavaScript

by 8 others
Despite the many JavaScript libraries that are available today, I cannot find one that makes it easy to add keyboard shortcuts(or accelerators) to your javascript app. This is because keyboard shortcuts where only used in JavaScript games - no serious web application used keyboard shortcuts to navigate around its interface. But Google apps like Google Reader and Gmail changed that. So, I have created a function to make adding shortcuts to your application much easier.


[Firefox] Personnaliser les pages web avec Greasemonkey - La solution

GreaseMonkey est une extension pour le navigateur Firefox qui permet de bidouiller à la volée les pages web que vous consultez. C'est à dire qu'il va modifier la page directement dans le navigateur. Cela vous permet de modifier à volonté toutes les pages de n'importe quel site selon vos désirs: supprimer des éléments qui vous énervent de certaines pages web, modifier le code HTML, ajouter du code HTML, modifier/ajouter/supprimer du javascript, changer les couleurs, ajouter des fonctionnalités, augmenter ou diminuer la taille de tableaux, formulaires...

Link highlighter script__Short tutorial to build a script

This short tutorial assumes that you have already downloaded and installed the Greasemonkey Firefox add-on. Below follows a very simple JavaScript program, which highlights links to your site, to get you started. I use this script a lot for SEO (Search Engine Optimization) purposes to find my site on a result page in Google, or to find a link to my site, which according to the access_log of my web site should be there.

Running scripts as soon as possible -

Running scripts as soon as possible Written on 2005-11-12Assuming the file name ends with .js (not .user.js), Opera will run User JavaScripts before the first script on the page is processed. This is done to allow you to set any user JavaScript events that you want, before any scripts are encountered. If the page has no scripts of its own, then user scripts are run immediately before the load event is about to fire. Note: if the page has no scripts of its own, then your script will always run after the page has loaded - there is nothing you can do about that.

Rapidshare Download Delay Bypass – (2008)

Rapidshare Download Delay Bypass Script for bypassing rapidshare countdown. Works with and without javascript. If you get Download-Ticket Not Ready, continue to "reload with POSTDATA" until you get a download dialog. v2.5 - Fixed auto-reload for "download ticket not ready" & removed extra characters in the inserted html. v2.4 - updated for Rapidshare site changes.