mei 112014
 

Een workflow om een Rdio playlist over te zetten naar een Spotify playlist.
Ik vond ‘m by Last.fm op
~ How to move playlists between streaming services – Sites that scrobble to Last.fm Discussions – Last.fm

Convert a Rdio Playlist In a Spotify Playlist Found a way to do it in Chrome (although it should also work in Firefox):

  1. Go to this page on Github: https://gist.github.com/tbeseda/3977818
  2. Copy the javascript
  3. Create a bookmarklet (a new bookmark on the toolbar)
  4. Name it something like “Rdio to Spotify”
  5. Paste the Javascript as the URL
  6. Go to the playlist in Rdio and click on the bookmarklet and you’ll get a new tab with a list of the tracks (artist name – track name)
  7. Select this list (ctrl+a) and go to Ivyshare (http://www.ivyishere.org/), paste your clipboard in the correct section and let Ivy search for them (might take a while).
  8. Copy the list that Ivy has created and paste them into a new playlist in Spotify.
  9. enjoy

Het javascript dat genoemd wordt en momenteel werkt is als volgt:

javascript:(function() {
var bookmarklet = {
init: function() {
  this.parse();
},
parse: function() {
  page = "";
  $(".Track:visible")
    .children(".info")
    .each(function() {
      line = [];
      function buildLine() {
        line.push($(this).text());
      }

 $(this).children(".metadata").children("a:first").each(buildLine);
      $(this).children(".name").children("a").each(buildLine);
      page += line.join(" - ") + "rn";
  });
  window.open("data:text/plain;charset=utf-8," + encodeURIComponent(page), "");
}
};

if (!window.jQuery) {
load();
} else {
bookmarklet.init();
}

function load() {
var script = document.createElement("script");
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
script.async = true;
script.type = "text/javascript";
script.onload = function() { bookmarklet.init(); };
document.body.appendChild(script);
}
})();

N.B. Het is niet ondenkbaar dat dit script in de toekomst niet meet werkt omdat Rdio hetzij Spotify iets aan hun API verandert.

feb 272014
 

Met de volgende iOS bookmarklet schakel je van een in mobile Safari geopende url door naar de Chrome browser:

javascript:location.href=%22googlechrome%22+location.href.substring(4);    

Ook voor Safari op de Mac (OS X) is er een vergelijkbare bookmarklet. Die ziet er net iets anders uit:

javascript:var%20y=document.location.href;y=y.substring(y.indexOf(%27://%27));y=%27otherbrowser-chrome%27+y;window.location=y;  

Op mijn iOS devices noem ik de bookmarklet “➝iOS Chrome” en op de Mac “➝OS X Chrome”

dec 272013
 

Marker: Web selections to Markdown – BrettTerpstra.com

This is a variant of my Bullseye bookmarklet which takes a selection – including headlines, links, and images – and converts it to Markdown using Marky.

Weer zo’n slim hulpmiddel, in dit geval een Bookmarklet, van de hand van Brett Terpstra.

  1. Selecteer een stuk tekst op een webpagina
  2. Activeer de Bookmarklet

Resultaat: de selectie in Markdown opmaak.

 

 

sep 292013
 

Mooie verzameling bookmarklets voor mobile Safari[1]

Safari Bookmarklets for iPhone, iPad & iPod Touch

[begin quote]

The Safari browser of your iOS device (iPad, iPhone, iPod Touch) doesn’t support extensions (or add-ons) but you can still add extra functionality to the mobile browser with the help of bookmarklets.

Bookmarklets, if you are new, are like regular bookmarks but instead of opening new websites, bookmarklets are often used to perform actions. For instance, you can shorten long URLs, translate web pages, find word meanings, save pages and more with a single click.

[end quote]


  1. Mobile Safari is de internet browser op iPad, iPhone en iPod Touch  ↩
mrt 292013
 

Ik heb veel bookmarklets in mijn browser geïnstalleerd.
Er zijn legio bookmarklets te vinden. Gewoon Googlen.

Eentje die ik regelmatig gebruik is Print Friendly:

javascript:(function()%7Bif(window%5B'priFri'%5D)%7Bwindow.print()%7Delse%7Bvar%20pfurl='';pfstyle='nbk';pfBkVersion='1';if(window.location.href.match(/https/))%7Bpfurl='https://pf-cdn.printfriendly.com/ssl/main.js'%7Delse%7Bpfurl='http://cdn.printfriendly.com/printfriendly.js'%7D_pnicer_script=document.createElement('SCRIPT');_pnicer_script.type='text/javascript';_pnicer_script.src=pfurl%20+%20'?x='+(Math.random());document.getElementsByTagName('head')%5B0%5D.appendChild(_pnicer_script);%7D%7D)();

Ik vond ‘m op printfriendly.com