Greasy Fork is available in English.
p站历史记录白色部分改为跳转链接
当前为
// ==UserScript==
// @name pixiv历史记录
// @namespace http://tampermonkey.net/
// @version 0.1
// @description p站历史记录白色部分改为跳转链接
// @author 2222234
// @match https://www.pixiv.net/history.php
// @icon https://www.google.com/s2/favicons?sz=64&domain=pixiv.net
// @grant none
// @license 114514
// ==/UserScript==
(function() {
window.onload=function(){
var s = document.getElementsByClassName('_history-item trial');
var length = s.length;
for(var i = 0;i < length ;i++){
var a = document.createElement('a');
s[i].parentNode.appendChild(a);
var url = getComputedStyle(s[i], null)['background-image'];
var param1 = url.split('/')[13];
var param2 = param1.split('_')[0];
a.setAttribute('href', '/artworks/'+param2);
a.setAttribute('target', '_blank');
a.setAttribute('class', '_history-item show-detail list-item');
a.setAttribute('rel','noreferrer');
a.setAttribute('style', 'background-image:'+url);
var d = document.createElement('div');
a.appendChild(d);
d.setAttribute('class', 'status');
}
for(var i1 = 0;i1 < length ;i1++){
s[0].remove();
}
}
})();