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

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

当前为 2018-04-14 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name	Apollo.RIP & Redacted.CH :: Last PM Inbox Link
// @description	Will make you go automatically to the last Private Message of the conversation
// @include     http*://*redacted.ch/inbox.php*
// @include     http*://*apollo.rip/inbox.php*
// @version	1.2.7
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @icon        https://redacted.ch/favicon.ico
// @grant       GM_xmlhttpRequest

// @namespace https://greasyfork.org/users/2290
// ==/UserScript==

$("#messageform").find("td").find("a").each(function() { // Inbox form -> Table TD -> Links found
    
    $this = $(this);

    var url_en_cours = $this.attr("href"); // Getting the URL data
    
    // Old URL + Anchor Link
    $this.attr("href", url_en_cours+"#messageform");

});

// Focus to the reply if possible
$("#quickpost").focus();