Skip to content

Instantly share code, notes, and snippets.

View Saoneth's full-sized avatar

Rafał Stańczyk Saoneth

View GitHub Profile
// ==UserScript==
// @name Bato.to Preload
// @namespace http://saoneth.pl/
// @version 0.1
// @description All pages on one site
// @author Saoneth
// @match http://bato.to/reader
// @grant none
// ==/UserScript==
/* jshint -W097 */
@Saoneth
Saoneth / mal.js
Last active August 29, 2015 14:23
var s = document.createElement('style');
s.innerHTML = '@import url(https://googledrive.com/host/0BxjwQr0BBXs-aDYxM2JlaFM2bnM);';
s.innerHTML += '#contentWrapper table tr { background-position: center; display: block; padding-bottom: 10px; color: white; float: left; position: relative; width: 220px; height: 300px; margin: 11px; border-radius: 13px; box-shadow: 0px 0px 11px 2px rgb(13, 13, 13) inset; }'
s.innerHTML += '#content table a { position: absolute; left: 0; top: 0; width: 100%; height: 100% }';
s.innerHTML += '#content table a span { position: absolute; left: 0; bottom: 30px; width: 100%; padding: 10px 0; text-align: center; color: white; background-color: rgba(0, 0, 0, 0.66) }';
s.innerHTML += '#content table a.button_add { top: 20px; left: initial; bottom: initial; right: 20px; width: initial; height: initial; padding: 5px 10px; border-radius: 8px }';
s.innerHTML += '#contentWrapper table tr:not([id^="more"]) { display: none }';
s.innerHTML += '#content table tr td:nth-child(2) span { position: abs