Permalink
Browse files

Added Mark Forum As Read and return to index for rllmuk

  • Loading branch information...
1 parent d5e3c63 commit 52a3cedf425a6dcb468c856171541290abda9549 @insin committed Feb 10, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 rllmukmarkasreadandreturntoindex.user.js
@@ -0,0 +1,9 @@
+// ==UserScript==
+// @name Mark Forum As Read and return to index
+// @namespace https://github.com/insin/greasemonkey
+// @description Returns you to the main index after marking a forum as read
+// @include http://www.rllmukforum.com/*
+// @include http://rllmukforum.com/*
+// ==/UserScript==
+var a = document.evaluate("//a[@title='Mark this forum as read']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE , null).singleNodeValue;
+if (a) a.href = a.href.split("&").slice(0, -1).join("&");

0 comments on commit 52a3ced

Please sign in to comment.