QupZilla / qupzilla

Cross-platform Qt web browser
http://www.qupzilla.com
GNU General Public License v3.0
1.12k stars 348 forks source link

Preference to set site specific colors #1509

Open ghost opened 10 years ago

ghost commented 10 years ago

Go to http://www.botanische-spaziergaenge.at/, watch some picture threads and try to find out which ones you have already seen. Its not possible, every link looks the same, the colors do not change for visited links. Very annoying as i always click some threads twice ore more because of that. The site owner says it's a php software issue in the faq: http://www.botanische-spaziergaenge.at/faq.php#f10r1. Could you please add a preference to set site specific preferences for visited link colors?

nowrep commented 10 years ago

You can change it with user stylesheet (but it will affect all sites). If you want to change it only on specific site, you can use GreaseMonkey.

ghost commented 10 years ago

Just marks every visited link in violet color:

// ==UserScript== // @name Visited Link Color // @description Highlights visited links // @include http:// // @include https:// // ==/UserScript== (function () { GM_addStyle("a:visited { color: #800080 }"); })();

nowrep commented 10 years ago

To only apply it to your site (see @include)

// ==UserScript==
// @name Visited Link Color
// @description Highlights visited links
// @include http://www.botanische-spaziergaenge.at/*
// @include https://www.botanische-spaziergaenge.at/*
// ==/UserScript==

GM_addStyle("a:visited { color: #800080 }");
ghost commented 10 years ago

// @include http://www.botanische-spaziergaenge.at/ (without trailing "/" not working)

The function thing is not necessary for correct code?

nowrep commented 10 years ago

No, it is not necessary. All scripts are automatically wrapped in anonymous function.