Html CSS或Greasemonkey到<;中的目标标题元素;a>;要素
我一直在使用Greasemonkey成功地打开访问的链接 以下是成功的:Html CSS或Greasemonkey到<;中的目标标题元素;a>;要素,html,css,greasemonkey,Html,Css,Greasemonkey,我一直在使用Greasemonkey成功地打开访问的链接 以下是成功的: // @match http*://www.udemy.com/* // @run-at document-start // @grant GM_addStyle // ==/UserScript== GM_addStyle ( " a:visited, .fl:visited { color: #CC0000 !important ;} " ); 但是Udemy更改
// @match http*://www.udemy.com/*
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle ( " a:visited, .fl:visited { color: #CC0000 !important ;} " );
但是Udemy更改了页面,现在我想在访问后变为红色的标题如下所示:
<div class="card__head">
<a class="card__title" ng-href="/essential-cooking-skills/" ng-click="track('course-title')" href="/essential-cooking-skills/">
<h1 ng-bind-html="::course.title">Essential Cooking Skills</h1>
</a>
我尝试使用
a.card\uu title来定位a标记中的h1。h1:visted
,但这似乎不起作用。有什么想法吗?a.card\uu title:访问了h1
谢谢@wOxxOm,效果非常好。