I have no idea how IR considers their library useful for their customers. -_- So, here is my attempt to fix it.
目前為
// ==UserScript==
// @name IndieRoyale: Show only owned bundles
// @namespace lainverse_indieroyale_show_only_owned_bundles
// @version 0.1
// @description I have no idea how IR considers their library useful for their customers. -_- So, here is my attempt to fix it.
// @author lainverse
// @match http://www.indieroyale.com/collection
// @match https://www.indieroyale.com/collection
// @grant none
// ==/UserScript==
var bdy = document.querySelector('.deal');
if (!bdy) return; bdy = bdy.parentNode;
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.body .deal {margin:0!important;} .body hr {height:12px;border:0;box-shadow:inset 0 12px 12px -12px rgba(0,0,0,0.5)}';
console.log(style);
bdy.insertBefore(style,bdy.querySelector(':first-child'));
bdy.appendChild(document.createElement('hr'));
[].forEach.call(document.querySelectorAll('.deal'),function(i){
if(i.querySelector('.wantbundle')) bdy.appendChild(i);
i.classList.remove('dealalt');
});