public marks

PUBLIC MARKS from decembre with tags greasemonkey & script

This year

USERSCRIPT - NEW Version for Firefox 57 will break scripts - Greasemonkey 4 For Users

Greasemonkey 4 is changing how it runs user scripts. Many user scripts will continue to run as expected, but this will break some scripts. If you rely on such scripts, you might want to install Violentmonkey or Tampermonkey, both of which provide compatibility for existing scripts. If you'd prefer to stick with Greasemonkey, you'll need to wait for the script to be updated to be compatible. Find the original author of your script, and ask them to update for Greasemonkey 4 compatibility. Referencing this post may help.

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.


BOKMARKLET - jQuery UI dialog in Bookmarklet and GreaseMonkey - Stack Overflow

Thanks to some awesome answers in other threads, I learned how to: load jQuery and jQuery-UI in a bookmarklet load a CSS into a bookmarklet using jQuery create a DIV in a bookmarklet using jQuery create jQuery UI dialog (external link) and I could manage to combine all four things into a single script which works both as a BookMarklet and as a GreaseMonkey script, which is absolutely awesome.

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

USERSCRIPT - @document-start Example: hijack page scripts for Greasemonkey

The implement of @run-at document-start greatly extent what userscript capable range. This snippet is one of the example show how to interfere the original script before they run, instead of stay away until the DOM is ready ( DOMContentloaded event fired ).

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

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


GM - MPIV (Mouseuver Popup Image Viewer) : Host Rules How-To

You can make MPIV work with more sites by adding your own host rules. You don't need to edit the source code for this. Instead, you paste the rule into MPIV's settings dialog which is accessible from your script manager's toolbar icon menu, e g. "User Script Commands" → "Set up Mouseover Popup Image Viewer" for Greasemonkey users.

GM COOKIE - Cookie Injection Using Greasemonkey | Views From The Hill

To use with Wireshark. The CookieInjector userscript simplifies this process, by allowing the user to copy-paste the cookie portion of the dump and have the cookies from the dump automatically created on the currently viewed web page. Updated Cookie Injector Script available on

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:

GOOGLE - GUIDE - How-to for Google Greasemonkey/Userstyles authors.... | Everything Else

by 1 other
Google , que vous pouvez ou ne pouvez pas savoir , tourne trois modèles de page de cette écriture . Les deux premiers héritent beaucoup de code de l'autre , mais encore besoin de règles CSS séparées pour cibler la barre de navigation et d'autres éléments de la page , la dernière (troisième) conception exige un ciblage tout à fait différent .


Greasemonkey : Arte TV Get RTMP Stream

Detects the address of RTMP Stream used in the new interface of Arte TV and allows to copy it to the clipboard (works only with Greasemonkey or Tampermonkey). Can be used in conjunction with RTMP Dump.

Firefox 17 breaks a Greasemonkey script that relies on E4X (New : Firefox 21 delete totally its support)

For lower versions than 21, i used Before i use this "about:config" thing (toggling javascript.options.xml.content to true): 1 - Open about:config 2 - find: javascript.options.xml.content - Set its the value to : "true" (Solution only usable for Firefox smaller than 21.00) Now with Firefox 21 , the E4X support is totally deleted... No solution to renable it by a tweaks in about config, like before?


EXTENSION - Ginatrapani Greasemonkey Multi-script-compiler - GitHub

Compiles multiple Greasemonkey user scripts into a standalone Firefox extension, based heavily on Anthony Lieuallen's (single) script compiler.


BIB - Greasemonkey Script) - Exemple de liens entre Un service de liste de lecture - GoodReads) et le catalogue en ligne d'une Bibliothèque - Toronto Public Libary status from Goodreads book details for Greasemonkey

Inserts link on Goodreads book pages to check status at Toronto Public Library in a popup. Based on the page so it may break. When you visit a book's details page on goodreads, it searches the Toronto public library's holdings via the book's isbn13 number in advanced search. If there's a hit, it allows you to pull up listings via a clickable link for a popup.

BIB - Greasemonkey Script - Exemple - weRead Amazon Exporter for Greasemonkey - Inspects the weRead book shelf (Facebook) page on for Amazon products and displays a list of ISBN or ASIN.

I wanted to try Google's Books library which supports importing a list of comma-separated ISBNs. Since weRead doesn't support exporting your book shelf I wrote this script to show me ISBNs or ASINs parsed from the Amazon thumbnails. Instructions * From Facebook: Visit and use the Connect button to log in via Facebook Connect. * Navigate to * To export just your "Read It" list, first click the link next to "Show All Books" * To export all your books, click "100" to view as many books as possible * You'll need to export each page since this script can only see one page at a time * Use the Export command from Greasemonkey's command list

BIB - Greasemonkey Script - Exemple - (Videotheque) - Recherche de Films sur IMDB reliée à Une Bibliothèque - (Lycoming County Library System Search 1.0)

Un exemple de possibilité de liens ajoutés pour une recheche de films sur "Internet Movie Data Base" qui donne accés au catalogue en ligne d'une bibliothèque... A étudier Pendant la consultation d'un titre sur IMDB, il place un lien vers une recherche pour ledit titre dans la bibliothèque du comté de Lycoming System (Pennsylvanie). While viewing a title on IMDB, it will place a link to a search for said title in the Lycoming County Library System (Pennsylvania).

BIB - Greasemonkey, solution pour un sudoc 2.0 « Bibliothèques [reloaded]

Si le catalogue web du sudoc répond dans sa version actuelle aux besoin principaux de recherche documentaire, certaines options lui font défaut. L’idée de ce billet n’est pas de déplorer ces manques (que l’on retrouve dans nombre de nos outils locaux) mais de proposer une solution de contournement, et en profiter pour ajouter certaines fonctionnalités qui n’auraient pas forcément leur place dans l’interface standard. Les fonctionnalités que la solution va ajouter sont : * des flux RSS (qui devrait intégrer bientôt la version standard du sudoc) * les suggestions orthographiques en l’absence de résultat * des permaliens sur les notices * l’affichage de la disponibilité dans une sélection de bibliothèques prédéfinies dès la notice détaillée * la géolocalisation des exemplaires sur une carte * les enrichissements de notice type 2.0 : couvertures d’Amazon, suggestions de documents similaires & autres éditions d’un ouvrage depuis Librarything.

BIB - : Google/Amazon : Dissémination de ses collections (et seulement des siennes) avec script Greasemonkey

Mais une bibliothèque n’aurait-elle pas tout à gagner à oublier cet aspect-là, pour se concentrer sur la dissémination de ses collections (et seulement des siennes) ? Un service en 2 étapes Voici comment je vois les choses : * L’internaute cherche avant tout des ouvrages en cherchant sur Google. Donc il tombe sur Amazon. * Une fois sur Amazon, il faut lui fournir une information sur la disponibilité du titre dans sa (et non ses) bibliothèque. Hypothèse : vous êtes bibliothécaire et vous voulez mettre en avant ce service pour votre bibliothèque : 1. Après avoir installé Firefox et l’extension GreaseMonkey, vous allez sur 2. Vous sélectionnez votre bibliothèque (et pas une autre, et pas plusieurs) et vous modifiez le script.....

JSMin (Online Javascript version of this Tool) - A filter which removes comments and unnecessary whitespace from JavaScript files

by 1 other
JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation.You can automate this process with a minimizing application which you can find here and an on-line javascript version here ______ You should note that while comments are useful for maintaining the code, they are a liability itself in Javascript since they will be transmitted along with the code to each and every page load, which can create substantial bandwidth penalties and increase the load time of your page for users. This doesn't mean you shouldn't comment your code, just that once your code is "finished" you should make a backup copy with the comments, then strip out all the comments in the file which is actually sent to the user.

Flickr markdown code for Greasemonkey

Adds a markdown code choice on flickr photo download page. [Update] Modifies the image source url so that it can be accessed from C*H*I*N*A

Video Search Engine (Work with Greasemonkey Videoembed) - Google Recherche Spécialisée

Marche trés bien avec : Videoembed, an userscript done to enhance pages by embedding videos after links, if any of the links are to videos on popular video sites : (glumbert, metacafe, google, yahoo, photobucket, youtube, myspace...(and many others) You will need Firefox and Greasemonkey to be able to use Videoembed. _________ Détails sur le moteur de recherche recherche sur les sites, notamment :, http://*, http://**,, http://*