public marks

PUBLIC MARKS from decembre with tags greasemonkey & tutoriel

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.

GM - DEV - Greasemonkey Tutorial for Beginners

In Greasemonkey tutorial, I have covered how to write Greasemonkey user scripts. After this tutorial,you will be able to write user-scripts for Greasemonkey. Topics covered: GreaseMonkey Installation Hello World Example Adding a Button Reading/Modifying HTML content Loading External Scripts.

2010

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

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.

2009

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

Customize your Web browsing experience with Greasemonkey | Programming and Development | TechRepublic.com

You can accomplish all of this via JavaScript.Scripts include metadata that provide details about the script, including target sites and sites that should never apply. The following metadata elements may be used: * Name: The name assigned to the script. It is displayed when the script is installed, as well as within the Manage Scripts window. * Namespace: The namespace used to distinguish scripts when more than one has the same name. (This is the same approach as used in programming languages like Java and C#.) * Description: A brief description of the script’s purpose. * Include: A list of URLs associated with the script (i.e., the URLs for running the script). The URLs may include wildcard characters (*). Multiple URLs appear on their own line. * Exclude: A list of URLs for which the scripts will never run. Multiple entries appear on their own line.

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.

PopTip - Greasemonkey Customisable - Add pop-up preview to any site - Flickr

Script Summary: Add pop-up preview to any site.(Script homepage).....Rules for popup action must be written in "SITEINFO" in proper format. Properties of SITEINFO url (required)(RegExp) : URL to which the rule is applied. targetElement (required)(XPath) : XPath which select "A" elements. When "mouseover" action occurs on them, linked pages (values of "href" attributes) will be fetched. popupElement (required) (XPath) : XPath which select elements in fetched pages. These elements will be appear in tooltips. disabled (optional) : If you want to disable a rule temporally, set "false". style (optional) : CSS attributes of tooltips. Please be careful to write in CamelCase! (border-width -> borderWidth) stripe (optional) : If you set "true", small icons will be appended to elements on which the action will occur.

Tutorial : Greasemonkey Recipe Book for Greasemonkey

Example Greasemonkey script below. The only things that need to be changed are bolded italic. In short, the XPath that identifies the top-level DIV, the XPath that identifies the DIV containing the content you want to display, and a list of XPath's that you want to remove.

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.

2008

GM Script: Flickr Buddy Icon Reply v4.0 on Flickr - Photo Sharing!

I have updated the script to use image button links. I know that the images are not everyone's cup of tea and you can choose v3.2. Just testing someone's suggestion. All feedbacks and different image button designs welcome!!! to install or update this script, click on this link, GM Script: Flickr Buddy Icon Reply

Flickr Group Promotion Tool – Userscripts.org

Adds a select box with pre written comments, inviting the photo owner and viewers to join your groups.

Flickr: Inline text editor - for photo comments, groups + help forum – Userscripts.org

Lets you easily re-edit or delete your flickr group, help forum and photo comments without leaving the current page you are on. Features Inline Edit : When you click the edit button of a comment under a photo, in a group or in the help forum a textarea is inserted where your post was, containing your post, enabling you to quickly edit and resubmit it without leaving the page you are on. Particularly useful for group admins. Search and Replace : Lets you search and replace text in your post. Inline Delete : The script changes the delete link below group or forum posts and photo comments, so that it deletes the post without leaving the current page, especially useful for group adminstrators. Updates 19th March 2008 : updated to work with latest version of GM 23rd May 2008 : updated to work with all international versions of the site :) 5th June 2008 : updated to work on photo comments

Flickr: Discussing Flickr linked @reply (GM script) in Flickr Hacks

Adds a little (reply) button beneath the buddy icon of the author of every post/comment in a Flickr photo/photoset/group/forum discussion. Clicking (reply) inserts into your reply HTML-code that displays the commenter's username and links back to the comment being replied to. The script works in group discussions, help fora, and in photo and photoset comments i.e. everywhere :) — it even works when the reply-box is on another page! The @reply template may be customized via the script-commands menu (Tools ▶ Greasemonkey ▶ Script Commands)… so whether the scripts inserts @user, user, user:, @user, @user, or possibly even @user, is up to you. The template may even contain HTML code, e.g. to style the username in italics. Inside the reply-box, the formatted @reply is inserted at the cursor’s position. However, if any text inside the reply-box is selected, the template is ignored, and instead, clicking on (reply) makes that selected text link to the post/comment you’re replying to.

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 - UserJS.org

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.

GREASEMONKEY - Flickr Commented On – Userscripts.org

This adds and small icon over any picture that shows you if you have already commented it, just like the favorite icon works. Very useful when you do lots of comments ;)

GM Script: Flickr Backlink Comment Reply - Discussing GM Script: Flickr Backlink Comment Reply in Flickr Hacks

Greasemonkey script that inserts those (reply) links under every buddy icon in the comments list to do exactly what is explained in the screenshot. Works in photo as well as in group discussions.

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.

2007

FLICKR - OLD - USERSCRIPT - Flickr Backlink Comment Reply

Greasemonkey script that inserts those (reply) links under every buddy icon in the comments list to do exactly what is explained in the screenshot. Works in photo as well as in group discussions.

Hack Attack: Become a Gmail master - Lifehacker

by 1 other
Today I've got a rundown of the methods and add-ons I use to make Gmail more powerful. By the time you're done with this article you'll be a bona fide Gmail power user, too. Quick look at what to expect

FlickrCommentTools________Flickr: Flickr Hacks

comment tools script with smilies to it. FlickrCommentTools.user.js