public marks

PUBLIC MARKS from decembre with tags dev & script

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.

JSON - What is JSON? An Introduction and Guide for Beginners

in this JSON tutorial and guide, I’m attempting to provide a fairly comprehensive discussion of JSON, its history, and its usefulness. I’ll close with a list of some practical JSON tools that might come in handy in future projects. JSON Defined JSON stands for JavaScript Object Notation and it’s a data format. That is, it’s a way to hold bits of information, similar to a database. Although JSON originated outside the ECMAScript specification, it is now closely related to JavaScript with the spec now including a JSON object and many developers incorporating it as a quasi-subset of the language.

BIB - greasemonkey - ILibX 2.0

(via)
General Questions/ Is LibX Free? How is LibX different from other library toolbars? Is there a version for my library? What version of Firefox does it work with? Does it work with Internet Explorer (IE)? Can I have two editions installed simultaneously? How can I get the Google Scholar search to work even if my institution has not registered with Google? How do I uninstall LibX?

2014

PIN - Pinterest - WordPress › jQuery Pin It Button For Images « WordPress Plugins

(via)
If you're looking for an easy way to pin images in your blog posts and pages, this plugin will help you with that. It highlights images and adds a "Pin it" button over them once the user hovers his mouse over an image. Once the user clicks the "Pin it" button, the plugin shows a pop-up window with the image and a description. Everything is ready for pinning, although the user can alter the description

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.

Greasemonkey exemple de test YUI (YUI 3) pour Greasemonkey

Ce script montre comment mettre en place YUI Test (YUI 3) pour une utilisation avec des scripts Greasemonkey. Il vous permet de tester n'importe quelle page, même ceux que vous ne possédez pas. Il a été créé pour que vous puissiez écrire des tests unitaires pour les scripts Greasemonkey. La majeure partie de ce script vient: http://wiki.greasespot.net/Code_snippets # YUI_Li ... Je n'ai fait que l'adapter pour une utilisation avec YUI test, et fournir des instructions pour la mise en place de vos scripts afin qu'ils puissent être testés. Le script comme il est prévu ici peut être utilisé pour tester n'importe quelle page Web dans le monde. Pour l'utiliser pour tester un script Greasemonkey spécifique, juste un changement est nécessaire (ajouter un @ Exigent tag); voir les instructions d'essai ci-dessous.

Use Greasemonkey Scripts In Google Chrome - But, there are some limitations as well (as with Opera — which also supports some greasemonkey scripts) - Chrome does not support @exclude, @require, @resource, unsafeWindow, or any of the special GM_* APIs.

Well, here is how to run userscripts in chrome : * Add this flag to Google Chrome launcher : --enable-user-scripts - Now, create a folder in your user data directory. Name it as User Scripts. - Save your all GM scripts in this folder. - If you want to import all userscripts from Firefox — you need to do it manually. We have shown you the way to backup your Greasemonkey scripts. Just navigate to your GM script folder in Firefox data directory as describe in this post. Now, you can copy and paste every script’s file manuallyAnd, you are done! Restart the chrome — and visit any related site. It is quite possible that your favorite GM Script will do the magic. - Important fact : Chrome supports “Early Injection” – the ability to run scripts very early in the page’s lifecycle. In Firefox, userscripts run after page load. But in chrome, you can set it to run before page load. For this, you need to add an extra line in scripts meta data section : // @run-at document-start

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

Greasemonkey comes to Chrome - get your userscripts ready!

Chrome has a secret weapon. His name is Aaron Boodman, and he created Greasemonkey. He now works on the Chrome Extensions team at Google. Even though Greasemonkey on Chrome isn't yet as mature as the Firefox version -- 15-25% of scripts might not work on Chrome yet -- it will definitely get there with Boodman's help. If you need some scripts to get you started, you can scope out Download Squad's 10 Greasemonkey Scripts You Shouldn't Browse Without, or peruse the large selection at userscripts.org.

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

Pieds de poulet... Ou ChickenFoot en anglais est une extension pour Firefox qui permet d'ajouter un environnement de programmation Javascript à Firefox. - KORBEN

C'est réservé aux bidouilleurs mais en gros le principe c'est d'utiliser javascript sur les sites que vous visitez afin de réaliser des choses sympathique comme automatiser certaines parties d'un site ou changer le comportement d'un script...etc C'est un peu comme GreaseMonkey mais en plus simple (pour peu que vous connaissiez Javascript) Mais là ou ça devient interressante, c'est que coupler à Firebug, qui est une extension Firefox pour débugger le javascript des sites web (avec point d'arrêt and co), il devient relativement simple de faire faire au site ce que vous voulez.

UserScript Writing 101 – Manuel of Things to learn - Userscripts.org

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, Last.fm) 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.

DOM events - Wikipedia, the free encyclopedia

by 1 other
DOM (Document Object Model) events allow event-driven programming languages like JavaScript, JScript, ECMAScript, VBScript and Java to register various event handlers/listeners on the element nodes inside a DOM tree, e.g. HTML, XHTML, XUL and SVG documents. Historically, like DOM, the event models used by various web browsers had some significant differences. This caused compatibility problems. To combat this, the event model was standardized by the W3C in DOM Level 2.

JavaScript Deobfuscator - Show you what JavaScript gets to run on a web page,

This add-on will show you what JavaScript gets to run on a web page, even if it is obfuscated and generated on the fly. Simply open JavaScript Deobfuscator from the Tools menu and watch the scripts being compiled/executed.

XUL greasemonkey - Recherche Google

manipuler données XUL avec greasemonkey.....est-ce possible? par exemple pour modifier l'extension officielle de delicious.

Phoenix :: Add-ons for Firefox

An editor with real time syntax highlighting which allows edit, run and test CSS, HTML and JavaScript code. Phoenix will tell you how many CSS and JS files are loaded into a page, how big these are,...

L'éditeur JavaScript - AJAX

by 17 others
L'éditeur JavaScript édite ses scripts suivant les paramètres que vous lui donnez ! Simple et rapide !

Forum iziSoftware: SOMMAIRE des Scripts

5 Juin 2009 à 11:51 Sommaire des Scripts 1-Affichage Centrage de pages autoresize http://forum.izisoftware.com/fr/forum_posts.asp?TID=10819 2-Défilement déroule change texte et image http://forum.izisoftware.com/fr/forum_posts.asp?TID=10821 3-Compteur visiteur date temps heure http://forum.izisoftware.com/fr/forum_posts.asp?TID=10823 4-Développer Créer bannière PopUp http://forum.izisoftware.com/fr/forum_posts.asp?TID=10824 5-Navigation ancre bouton page lien redirection http://forum.izisoftware.com/fr/forum_posts.asp?TID=10825 6-Livres d'or NewsLetter Météo statistiques http://forum.izisoftware.com/fr/forum_posts.asp?TID=10826 7-Cartographie Galeries Flash Multimédia Traduction http://forum.izisoftware.com/fr/forum_posts.asp?TID=10827

Forum iziSoftware: Comment insérer un script?

Qu'es ce qu'un script? Un script est un code, composé par vous même ou déjà prêt à l'emploi. Il utilise le plus souvent les langages Java et JavaScript, et permet ainsi l'apparition d'effets sur vos pages Web: compteurs de visites, sondages, frames, menus, anti-clic droit, effet de neige, date et heures, et pleins d'autres encore. Comment insérer un script? Sur vos pages Web: 1. Copiez le code de votre script 2. Placez votre curseur à l'endroit désiré, puis dans le cadre en bas de votre page (visible seulement en mode édition) 3. Cliquez sur "Appliquer"

jQuery.info - Spip Plugin

by 16 others
Découvrir et utiliser jQuery, la librairie javascript du XXIIème siècle.

e107Plugins.fr: News / Commentaires / La librairie javascript jQuery

Je n'ai jamais encore fais de news sur le javascript et je pense qu'il est temps de vous faire découvrir (pour ceux ou celles qui ne connaissent pas bien sur ) jQuery, une librairie javascript très riche avec laquelle on peux faire entre autres de l' Ajax et combiner les effets pour dynamiser le contenu de votre site web