GOG.com - Updated Thread Count in Title

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

目前为 2014-08-11 提交的版本。查看 最新版本

// ==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
// @include     http://www.gog.com/forum
// @include     https://secure.gog.com/forum
// @require     http://cdnjs.cloudflare.com/ajax/libs/tinycon/0.5/tinycon.min.js

// @version     2
// @grant       none
// ==/UserScript==

var unviewed_faves = $(".topics .text:contains('My favourite topics')").parents('h2').next('.category').find('.item:not(.visited) .name a');

Tinycon.setOptions({
    width: 7,
    height: 9,
    font: '10px arial',
    colour: '#ffffff',
    background: '#9CC824',
    fallback: false
});
Tinycon.setBubble(unviewed_faves.length);
$('title').text($('title').text() + ' (' + unviewed_faves.length + ')');

setTimeout(function() { window.location.reload(true); }, 3600 * 1000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址