Skip to content

Instantly share code, notes, and snippets.

View simevidas's full-sized avatar
🦊
sticking with Firefox till the end

Šime Vidas simevidas

🦊
sticking with Firefox till the end
View GitHub Profile
@simevidas
simevidas / user.js
Created February 6, 2024 20:53
Load all comments
// ==UserScript==
// @name Load all comments
// @match https://github.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// ==/UserScript==
(function() {
'use strict';
function start() {
class BetterDetails extends HTMLElement {
constructor () {
super();
//Inner details
const bdetails=this.querySelector("details");
let clonedDet = bdetails.cloneNode(true);
let sumEl = clonedDet.querySelector('summary');
// ==UserScript==
// @name highlight new items
// @match https://news.ycombinator.com/classic
// @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com
// ==/UserScript==
(function() {
'use strict';
let hours = 12;
// ==UserScript==
// @name highlight new items
// @match https://www.reddit.com/r/*/
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// ==/UserScript==
(function() {
'use strict';
let hours = 12;
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque ea enim porro dolore a, voluptas ab, similique eos autem quo aliquam, quibusdam exercitationem officia blanditiis pariatur laudantium amet hic neque.
@simevidas
simevidas / userstyle.css
Created April 7, 2023 14:53
Make reveal.js slides render without JavaScript
* {
box-sizing: border-box !important;
pointer-events: initial !important;
}
.slides {
position: static !important;
}
.slides section {
9.1. Scripting Support: the scripting feature
Name: scripting
For: @media
Value: none | initial-only | enabled
Type: discrete
The scripting media feature is used to query whether scripting languages, such as JavaScript, are supported on the current document.
enabled
Indicates that the user agent supports scripting of the page, and that scripting in the current document is enabled for the lifetime of the document.
@simevidas
simevidas / content_script.css
Created January 31, 2023 03:07
Facebook Container extension stylesheet
body {
--fbc-blue-60: #0060df;
--fbc-blue-70: #003eaa;
--fbc-gray-20: #ededf0;
--fbc-light-gray: #F0F0F4;
--fbc-white: #ffffff;
--fbc-transition: all .15s cubic-bezier(.07,.95,0,1);
--fbc-borders: 1px solid #ededf0;
--fbc-primary-text: #15141A;
--fbc-secondary-text: #5B5B66;
@simevidas
simevidas / user.css
Created January 20, 2023 03:35
twitter.com, algo warning
[data-testid="ScrollSnap-List"] > div:nth-child(2) > a[aria-selected=false] {
position: fixed !important;
left: 0 !important;
width: 100% !important;
background: crimson !important;
}
[data-testid="ScrollSnap-List"] > div:nth-child(2) > a[aria-selected=false] span {
color: white !important;
font-size: 2em !important;
@simevidas
simevidas / feed.xml
Created January 6, 2023 07:12
A List Apart RSS feed
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<title>
<![CDATA[A List Apart: The Full Feed]]> </title>
<link>
https://alistapart.com </link>
<description>Articles for people who make web sites.</description>