Created
August 25, 2020 16:05
-
-
Save caliburn1994/82b00517584de8a97b2b95afefa08a41 to your computer and use it in GitHub Desktop.
修改Google搜索引擎的链接颜色
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match *www.google.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// if (window.location.href.indexOf("google") > -1) { | |
//add jquery library | |
var script = document.createElement('script'); | |
script.src = 'https://code.jquery.com/jquery-3.4.1.min.js'; | |
script.type = 'text/javascript'; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
setTimeout(function () { | |
$('head').append('<style type="text/css">a:visited {color: red;}</style>'); | |
}, 1000); | |
// } | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment