Proxer Remember

Schnellauswahl für das letzte Medium

Mint 2016.12.17.. Lásd a legutóbbi verzió

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Proxer Remember
// @namespace    https://greasyfork.org/de/users/83349-deimos
// @version      0.1
// @description  Schnellauswahl für das letzte Medium
// @author       Deimos
// @run-at       document-start
// @include      http://proxer.me/*
// @include      https://proxer.me/*
// @include      http://www.proxer.me/*
// @include      https://www.proxer.me/*        
// @require      https://greasyfork.org/scripts/12981-proxer-userscript-anker/code/Proxer-Userscript-Anker.js?version=108560
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        unsafeWindow
// ==/UserScript==

document.addEventListener('DOMContentLoaded', function(event) {
    open(false);
});

function action_change(change)
{
    if(change === true)
        open();
}

function open(open=true)
{
    if (window.XMLHttpRequest) // AJAX nutzen mit IE7+, Chrome, Firefox, Safari, Opera
        xmlhttp=new XMLHttpRequest();

    else // AJAX mit IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

    xmlhttp.onreadystatechange=function()
    {
        if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
            if(xmlhttp.responseText[0] == "<")
            {
                var doc = xmlhttp.responseText;
                var href="";

                href = doc.slice(doc.indexOf("Link")+30);
                href = href.slice(href.indexOf(">")+1);
                
                if(open===false)
                {
                    var name = href.slice(0,href.indexOf("<"));
                    //addAnkerMember(id, modulname, modus, changefunction, memoryName, memoryDefault, zusatz);
                    addAnkerMember("memory_Anker",name,0, action_change,"memory",1);
                    return;
                }
                href = href.slice(href.indexOf("<a")+9);
                href = href.slice(0,href.indexOf('"'));
                window.location.href = href;
            }    
        }   
    };
    xmlhttp.open("GET","http://proxer.me/ucp?s=history&p=1#top");
    xmlhttp.send();
}