Apollo.RIP & Redacted.CH :: Last PM Inbox Link

Will make you go automatically to the last Private Message of the conversation

当前为 2017-12-08 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Apollo.RIP & Redacted.CH :: Last PM Inbox Link
  3. // @description Will make you go automatically to the last Private Message of the conversation
  4. // @include http*://*redacted.ch/inbox.php*
  5. // @include http*://*apollo.rip/inbox.php*
  6. // @version 1.2.6
  7. // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
  8. // @icon https://redacted.ch/favicon.ico
  9. // @grant none
  10.  
  11. // @namespace https://greasyfork.org/users/2290
  12. // ==/UserScript==
  13.  
  14. $("#messageform").find("td").find("a").each(function() { // Inbox form -> Table TD -> Links found
  15. $this = $(this);
  16.  
  17. var url_en_cours = $this.attr("href"); // Getting the URL data
  18. // Old URL + Anchor Link
  19. $this.attr("href", url_en_cours+"#messageform");
  20.  
  21. });
  22.  
  23. // Focus to the reply if possible
  24. $("#quickpost").focus();