最近Gmail进行了升级,界面看起来酷了不少,尤其是联系人管理可用性提高了不少,但是美中不足的是以前巨方便的快速选择框不见,现在我要想将已读邮件Archive必须得从下拉框中选择,很是不方便,上网搜索了一下,找到了这个GreaseMonkey Script.该脚本可能在找回丢失的上方快速选择栏,不过没有我最希望的下方快速选择栏,没办法只好自已修改了一下,现在两个快速选择栏都有了,赞一下. 有兴趣的可以安装一下.

Code
// ==UserScript==
//
@name Gmail - Add "Unread" Selector Link
//
@namespace http://userscripts.org/users/86416
//
@include https://mail.google.com/mail/*
//
==/UserScript==
function insertAfter(el,ref) {
var container, ns;
if ( (container=ref.parentNode) && (ns=ref.nextSibling) ) {
container.insertBefore(el,ns);
}
else if (container) {
container.appendChild(el);
}
}
var checkCount = 0
function addUnreadLink() {
if (document.getElementById('messageselector')!=null) {
return;
}
var anchors = document.querySelectorAll('input[type="checkbox"]');
if (anchors && anchors.length>0) {
var anchorTop = null;
var anchorBottom = null;
for (var i=0; i<anchors.length; i++) {
var pn = anchors[i].parentNode;
if (pn.getAttribute('role')=="button" && pn.getAttribute('aria-haspopup')=="true" && pn.id == ":q6") {
anchorTop
= pn;
}

if (pn.getAttribute('role')=="button" && pn.getAttribute('aria-haspopup')=="true" && pn.id == ":q2") {
anchorBottom
= pn;
}
}

if (anchorTop || anchorBottom) {

var containerTop = anchorTop.parentNode.parentNode.parentNode.parentNode.parentNode;
var containerBottom = anchorBottom.parentNode.parentNode.parentNode.parentNode.parentNode;
var divTop = document.createElement('div');
divTop.innerHTML
= ''+
' <div >);

 

恢复GMail选择栏(All None Read Unread….)的油猴(GreaseMonkey)脚本

相关文章:

  • 2021-06-09
  • 2021-12-02
  • 2021-12-19
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-08-19
  • 2022-12-23
  • 2021-06-03
相关资源
相似解决方案