1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// ==UserScript==
// @name         自訂css:偷偷說公河、搜尋頁面
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.plurk.com/search*
// @match        https://www.plurk.com/anonymous
// @icon         https://www.google.com/s2/favicons?sz=64&domain=plurk.com
// @grant        none
// ==/UserScript==

(function() {
	let anonymous_css = `
		.list .highlight_owner .plurk_cnt { background: #FAA; }
		.list .highlight_owner .plurk_cnt:hover { background: #E66; }
    `;
	let search_css = `
		.response_box .plurk.highlight_owner { background: #FAA; }
		.response_box .plurk.highlight_owner:hover { background: #E66; }
    `;
    if($('body.anonymous').length) $('head').append('<style>' + anonymous_css + '</style>');
    if($('body.search').length) $('head').append('<style>' + search_css + '</style>');
})();