您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows how many notifications you have on RageZone
// ==UserScript== // @name RageZone Notification Titlebar // @version 1.0.1 // @grant none // @include *.ragezone.com/* // @require https://code.jquery.com/jquery-2.2.4.min.js // @namespace https://greasyfork.org/users/177261 // @description Shows how many notifications you have on RageZone // ==/UserScript== let elem = document.getElementsByClassName('popupctrl')[0]; let oldTitle = document.title; if(elem.innerHTML != "Notifications") { let num = document.getElementsByClassName('notifications-number')[0].innerText; document.title = "\u2757 ("+num+") " + oldTitle; }else{ document.title = "(0) " + oldTitle; }