一个很小的油猴脚本,把你洛谷上AC的标志变为AP的标志。不过AP的标志颜色有点浅了,建议加个暗化插件(如DarkReading)配合食用。
脚本:
// ==UserScript==
// @name ϕ!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 我AC了这题,啊不,我AP了这题!
// @author GWBailang
// @match *://www.luogu.com.cn/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelectorAll('AC').forEach(function(element) {//更改所有字符颜色
element.style.color = '#e0e0e0';
});
document.querySelectorAll('path[data-v-1b44b3e6][d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]').forEach(function(path) {
path.setAttribute('d', 'M 8 20.4 L 8 0.4 L 15 0.4 L 15 10.4 L 1 10.4 L 4.5 0.4');
path.setAttribute('stroke','rgb(250,254,78)');
path.setAttribute('fill','none');
path.setAttribute('stroke-width','2.5');
});
document.querySelectorAll('svg[data-v-0640126c][data-v-beeebc6e][data-icon="check"]').forEach(function(path) {
path.setAttribute('viewBox', '0');
path.setAttribute('style','');
});
})();
tql