-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfusker.user.js
29 lines (26 loc) · 861 Bytes
/
fusker.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// ==UserScript==
// @id fusker
// @name fusker little helper
// @version 1.0
// @description Make a gallery with thumbs
// @include https://*.fusker.xxx/*
// @include http://*.fusker.xxx/*
// @grant GM_addStyle
// ==/UserScript==
(function fusker_extention()
{
GM_addStyle(
'p {display: inline-block;padding: 5px;}'+
'img {max-width: 250px;display: inline-block;}'+
'#ikonas {display: block;}'
);
document.querySelectorAll('p').forEach(function(entry) {
if(entry.childNodes[2] != undefined){
var a = document.createElement('a');
a.setAttribute('href', entry.childNodes[0].nodeValue);
a.appendChild(entry.childNodes[2]);
entry.innerHTML = '';
entry.appendChild(a)
}
});
})();