Flickr2commons redirector

redirect flickr to flickr2commons

// ==UserScript==
// @name         Flickr2commons redirector
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  redirect flickr to flickr2commons
// @author       Anderson Green
// @include      /^https:(\/\/|\/\/www\.)flickr\.com\/photos\/.*$/
// @grant        none
// @run-at document-start
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    //alert("It works!");
    window.location = "https://flickr2commons.toolforge.org/#/photo/"+window.location.href.split("/")[5];
    // Your code here...
})();