Meidokon Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Useful(?) links

  • furinkan's stuff

  • Postfix snippets


  • SystemInfo

  • This sidebar

Navigation

  • FrontPage
  • RecentChanges
  • FindPage
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

MeidokonWiki:
  • furinkan
  • greasemonkey
  • facebook_download_links

// ==UserScript==
// @name        Facebook viewable download links
// @namespace   http://userscripts.org/users/0000
// @description Turn Facebook photo download links into plain non-push links
// @include     https://www.facebook.com/*
// @version     1
// @grant       GM_log
// ==/UserScript==

function changeLinks(){

        // Rewrite links
        links = document.getElementsByTagName("a");

        for (j = 0; j<links.length; j++){

                link = links[j];
                href = link.getAttribute("href");
                regExp = /\?dl=1$/;
                found = regExp.exec(href);

                if(found){
                        GM_log("Found URL: " + href);
                        link.setAttribute( "href", href.replace("?dl=1", "") );
                }
        }


        // Change "Download" to "Fullsize"
        spans = document.getElementsByTagName("span");
        for(k=0; k < spans.length; k++) {
                if (spans[k].innerHTML == "Download") {
                        spans[k].innerHTML = "Fullsize";
                }
        }
}

setInterval(function(){changeLinks();}, 2000);
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01
MoinMoin Release 1.9.11 [Revision release], Copyright by Juergen Hermann et al.