public marks

PUBLIC MARKS from decembre with tags greasemonkey & code

2017

GREASEMONKEY (v.4 - webextention) - FIR 57 - Greasespot: Greasemonkey 4 For Script Authors

What? The Greasespot Wiki will be updated to explain Greasemonkey 4 in detail. Until then, here's a quick summary. First, there is only an embedded editor. Browser Extensions have no access to the file system, so you can no longer author user scripts in your familiar text editor. There is only one object provided to user scripts now, named GM. It has several properties. One of them is info – the equivalent of the old GM_info. There are also several methods of this object: getResourceUrl, deleteValue/getValue/listValues/setValue, xmlHttpRequest. To use these methods you still need @grant, and use the new name, e.g.: // @grant GM.setValue The new form has a dot, where the old form has an underscore. You may specify both @grants, if you'd like to be compatible with Greasemonkey 4 and other user script engines at the same time. As of today, there is no support for: GM_log (use console.log), GM_addStyle, GM_registerMenuCommand, nor GM_getResourceText.

USERSTYLES - Greasemonkey - Forum request 2006 - GreaseMonkey List - User scripts on userstyles.org

(via)
I'm the administrator of userstyles.org. I want to start offering my styles to Greasemonkey (and similar) users. For applicable styles on userstyles.org, just plunk "/style.user.js" at the end of the URL. (For example, http://userstyles.org/style/show/242/style.user.js ). Not all styles on the site can be converted into user scripts. For example, those affecting chrome wouldn't work. Those styles will return a 404 if you try to open their styles. I'd like some feedback on the format I'm using. Is the code the best it can be, are there problems with meta-data, etc. Thanks.

2015

2014

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.

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:

2010

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.

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).

2009

Regular Expressions - Popular Tools, Utilities and Programming Languages That Support Regular Expressions - Specialized Tools and Utilities for Working with Regular Expressions - TutorialTools & LanguagesExamplesBooks & Reference

These tools and utilities have regular expressions as the core of their functionality. grep - The utility from the UNIX world that first made regular expressions popular PowerGREP - Next generation grep for Microsoft Windows RegexBuddy - Learn, create, understand, test, use and save regular expressions. RegexBuddy makes working with regular expressions easier than ever before. General Applications with Notable Support for Regular Expressions There are a lot of applications these days that support regular expressions in one way or another, enhancing certain part of their functionality. But certain applications stand out from the crowd by implementing a full-featured Perl-style regular expression flavor and allowing regular expressions to be used instead of literal search terms throughout the application. EditPad Pro - Convenient text editor with a powerful regex-based search and replace feature, as well as regex-based customizable syntax coloring.

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.

2008

JavaScript DOM__tableau interactif des fonctions disponibles

by 7 others
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

Anthony Lieuallen's Greasemonkey Compiler___Better Flickr is a compilation of work done by several Greasemonkey scripters

Creates a full fledged Firefox XPI (extension) from a greasemonkey script._I modified the output of the compiler to include multiple scripts with the ability to enable and disable individual features.

Firebug : bonnes pratiques pour le développement XHTML, CSS, JavaScript et DOM - La Case de l'Oncle Tom

by 2 others
Pour le développement d’applications JavaScript et pour mieux comprendre les incohérences des CSS dans une page, entre autre.Domaines d’utilisation :

XPath Tutorial

by 2 others
XPath is a language for finding information in an XML document. XPath is used to navigate through elements and attributes in an XML document.

HTML::AutoPagerize - Utility to load AutoPagerize SITEINFO stuff - search.cpan.org

HTML::AutoPagerize is an utility module to load SITEINFO defined in AutoPagerize. AutoPagerize is an userscript to automatically figure out the "next link" of the current page, then fetch the content and insert the content by extracting the "page element"

ImageData__The data: URI kitchen_crer icône 16×16 encodée en Base64

by 10 others
ImageData Une icône 16×16 encodée en Base64 représentant le moteur de recherche. The data: URI kitchen (en) est un outil très pratique pour générer les données à placer ici

2007

Flickr Hacks Community Development - Discussing Flickr Hacks Community Development in Flickr Hacks

Everyone is doing its scripts alone in its corner, but there are sometimes patches, ideas and improvements that could be shared between everyone and we could start share development in a better way that just bits of codes in emails and flickr topics.

2005

Platypus_mozdev.org - :Faire des scripts Greasemonkey

by 22 others, 1 comment
Le compagnon idéal de greaseMonkey. Permet de modifier une page et de sauvegardez les modifications sous la forme d'un script greaseMonkey. Le script est automatiquement appliqué lorsque vous revisitez la page.