Greasy Fork is available in English.
crosspost to kbin
当前为
// ==UserScript==
// @name kbin-unsquash
// @namespace https://github.com/aclist/
// @description crosspost to kbin
// @author aclist
// @version 0.0.1
// @include https://kbin.social/m/*
// @license GNU-V3.0
// ==/UserScript==
const itemsSelector = 'figure a.thumb img';
function swapImg(item) {
var p = item.parentElement.href;
item.src = p;
item.style.cssText += 'max-width: 50%; max-height: 50%';
}
function checkItems(selector) {
const items = document.querySelectorAll(selector);
items.forEach((item) => {
swapImg(item);
});
}
checkItems(itemsSelector);