By Thlayli
Has 20 other scripts.
// ==UserScript==
// @name StumbleUpon Edit Fix
// @namespace http://thlayli.detrave.net/su-editfix.html
// @description Puts you back on the correct blog page after an Edit.
// @include http://*.stumbleupon.com/edit/*
// @include http://*.stumbleupon.com/
// @version 1.1
// ==/UserScript==
var url=document.location.href.split("/");
if(url[3]=="edit"){
unsafeWindow.HTMLFormElement.prototype.submit = submitProxy;
unsafeWindow.addEventListener('submit', submitProxy, true);
} else {
var pageNum = GM_getValue("pageNum","");
if(pageNum!=""){
document.location.href = document.location.href + "archive/" + pageNum + "/";
GM_setValue("pageNum","");
}
}
function submitProxy(){
var pageNum = document.getElementById("numresults").textContent.split("-")[0]-1;
if(pageNum!=0) GM_setValue("pageNum",pageNum);
}