firefox

Create a DRUPAL node with Firefox/Ubiquity

08.09.2008
 von Lukas Fischer
 | 0 Kommentare

Inspiriert von http://tinyurl.com/5db7ag habe ich gleich ein eigenes Ubiquity Script ausprobiert. Es kommt oft vor, dass ich Inhalte aus einem Mail oder aus einer Website in ein Drupal Formular kopiere z.B. um einen Blogeintrag zu posten. Ubiquity erlaubt ein fast automatisierter Vorgang.

Das Resultat:

<?php
CmdUtils
.CreateCommand({
  
name"blog",
  
execute: function() {
    var 
CmdUtils.getTextFromHtml(CmdUtils.getHtmlSelection());
    var 
encodeURIComponent;
    
url 'http://www.netnode.ch/node/add/blog?t=e(s) + '&b=' e(s);
    
Utils.openUrlInBrowser(url);?>
Inhalt abgleichen