掘友等级
获得徽章 0
据说有公司正式实行:2122,即上2休1,再上2休2, 有人在这家神仙公司么
来个前端的把下面的油猴脚本改成css样式,能够导入Stylus插件(浏览器插件)
代码效果(效果图最下面):
修改页面为: 衬线字体和纸墨模式
以下是代码:
(function() {
var s = (document.getElementsByTagName('head')[0] || document.body).appendChild(document.createElement('style'));
var t = document.createTextNode('p, div, font, blockquote { font-family: "PT Serif", Georgia, serif !important; }');
s.appendChild(t);
})();
(function() {
function getRGBColor(node, prop) {
var rgb = getComputedStyle(node, null).getPropertyValue(prop);
var r, g, b;
if (/rgb\((\d+),\s(\d+),\s(\d+)\)/.exec(rgb)) {
r = parseInt(RegExp.$1, 10);
g = parseInt(RegExp.$2, 10);
b = parseInt(RegExp.$3, 10);
return [r / 255, g / 255, b / 255];
}
return rgb;
}
R(document.documentElement);
第二部分见回复
下一页