您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Display a count of updated threads in the GOG forum list page title and icon and reload once an hour so a pinned tab can be used as an update notifier
当前为
// ==UserScript== // @name GOG.com - Updated Thread Count in Title // @namespace ssokolow.com // @description Display a count of updated threads in the GOG forum list page title and icon and reload once an hour so a pinned tab can be used as an update notifier // @contributionURL http://tinyurl.com/kfgayrh // @match *://www.gog.com/forum // @require http://cdnjs.cloudflare.com/ajax/libs/tinycon/0.5/tinycon.min.js // @version 4 // @grant none // ==/UserScript== var category = $(".topics .text:contains('My favourite topics')").parents('h2').next('.category'); var faves_count = category.find('.item:not(.message)').length; var unviewed_count = category.find('.item:not(.visited) .name a').length; var bubble_bg = '#9CC824'; if (faves_count == 0) { var bubble_bg = '#ff0000'; unviewed_count = 'X'; } Tinycon.setOptions({ width: 7, height: 9, font: '10px arial', colour: '#ffffff', background: bubble_bg, fallback: false }); Tinycon.setBubble(unviewed_count); $('title').text($('title').text() + ' (' + unviewed_count + ')'); setTimeout(function() { window.location.reload(true); }, 3600 * 1000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址