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 / user.js
Created February 6, 2024 20:53
Load all comments
View user.js
// ==UserScript==
// @name Load all comments
// @match*
// @icon
// ==/UserScript==
(function() {
'use strict';
function start() {
View gist:1d6a2dd59c77ed153a81b334220b8a36
class BetterDetails extends HTMLElement {
constructor () {
//Inner details
const bdetails=this.querySelector("details");
let clonedDet = bdetails.cloneNode(true);
let sumEl = clonedDet.querySelector('summary');
View userscript.js
// ==UserScript==
// @name highlight new items
// @match
// @icon
// ==/UserScript==
(function() {
'use strict';
let hours = 12;
View userscript.js
// ==UserScript==
// @name highlight new items
// @match*/
// @icon
// ==/UserScript==
(function() {
'use strict';
let hours = 12;
View lorem.txt
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 / userstyle.css
Created April 7, 2023 14:53
Make reveal.js slides render without JavaScript
View userstyle.css
* {
box-sizing: border-box !important;
pointer-events: initial !important;
.slides {
position: static !important;
.slides section {
View scripting.txt
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.
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 / content_script.css
Created January 31, 2023 03:07
Facebook Container extension stylesheet
View content_script.css
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 / user.css
Created January 20, 2023 03:35, algo warning
View user.css
[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 / feed.xml
Created January 6, 2023 07:12
A List Apart RSS feed
View feed.xml
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="" xmlns:sy="" xmlns:admin="" xmlns:rdf="" xmlns:content="" version="2.0">
<![CDATA[A List Apart: The Full Feed]]> </title>
<link> </link>
<description>Articles for people who make web sites.</description>