好像还没把这个发出来过(其实也没有人需要)
既然是同一个主题(并不是)的友站,发点福利也是很自然的

提取方法:
安装tampermonkey或者同类产品
新建脚本,输入代码,保存
进入两个galgame站,顶栏会出现背景图的选项

for kkgal

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
30
// ==UserScript==
// @name showMygalgameBgs
// @namespace ns_14fac3ddf0ab598f65561574682aa8b7
// @description kkgal
// @include https://www.kkgal.com/*
// @version 0.0.0.0.0.0.0.1
// @grant none
// ==/UserScript==

var getBgs;
window.getBgs = getBgs = function getBgs() {
return [].slice.call(document.styleSheets[4].cssRules).map(function (_) {
return _.cssText.toString().match(/url\(\"(.*?)\"\)/)[1];
});
};

window.addEventListener("load", function (event) {
var a = document.createElement("a");
a.innerHTML = "<i class=\"fa fa-star\"></i>背景图";
a.contents = getBgs().map(function (_) {
return "<img src='" + _ + "' style='max-width:90vw' />";
});
a.href = "about:blank";
a.onclick = function(evt) { /*prompt("url", a.href); */let g = open(a.href); g.document.write(a.contents); evt.preventDefault(); evt.stopPropagation();};
a.target = "_blank";
var li = document.createElement("li");
li.className = "menu-item menu-item-type-post_type menu-item-object-page";
li.appendChild(a);
document.querySelector("ul#menu-caidan").appendChild(li);
});

for ercygame

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
30
// ==UserScript==
// @name showEcyBgs
// @namespace ns_14fac3ddf0ab598f65561574682aa8b7
// @description kkgal
// @include https://ercygame.com/*
// @version 0.0.0.0.0.0.0.1
// @grant none
// ==/UserScript==

var getBgs;
window.getBgs = getBgs = function getBgs() {
return [].slice.call(document.querySelectorAll(".cb-slideshow span")).map(function (_) {
return _.style.backgroundImage.toString().match(/url\(\"(.*?)\"\)/)[1];
});
};

window.addEventListener("load", function (event) {
var a = document.createElement("a");
a.innerHTML = "<i class=\"fa fa-star\"></i>背景图";
a.contents = getBgs().map(function (_) {
return "<img src='" + _ + "' style='max-width:90vw' />";
});
a.href = "about:blank";
a.onclick = function(evt) { /*prompt("url", a.href); */let g = open(a.href); g.document.write(a.contents); evt.preventDefault(); evt.stopPropagation();};
a.target = "_blank";
var li = document.createElement("li");
li.className = "menu-item menu-item-type-post_type menu-item-object-page";
li.appendChild(a);
document.querySelector("ul#menu-gal").appendChild(li);
});