This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blockedRequestIds = new Set(); | |
browser.webRequest.onBeforeRequest.addListener( | |
function(details) { | |
if ( details.url.includes('favicon') === false ) { return; } | |
blockedRequestIds.add(details.requestId); | |
console.log('blocking tabId=' + details.tabId + ' requestId=' + details.requestId + ' url=' + details.url); | |
return { cancel: true }; | |
}, | |
{ urls: [ '<all_urls>' ] }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var addedNodesCount = 0; | |
var removedNodesCount = 0; | |
var observer = new MutationObserver(function(mutations) { | |
var i = mutations.length; | |
while ( i-- ) { | |
var mutation = mutations[i]; | |
addedNodesCount += mutation.addedNodes.length; | |
removedNodesCount += mutation.removedNodes.length; | |
} | |
console.log('addedNodesCount=' + addedNodesCount, 'removedNodesCount=' + removedNodesCount); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m.imgur.com##.GalleryHandler-postContainer ~ .GalleryHandler-postContainer | |
m.imgur.com##.getTheApp | |
m.imgur.com##.FloatingOIA-container | |
m.imgur.com##.GalleryInfiniteScroll > div > div[style^="width: 100%; height:"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Title: Disqus click-to-load | |
# Copy-paste the static filters below into your "My filters" pane in the | |
# dashboard. | |
# Purpose is to load Disqus comments on demand only, so that no connection | |
# to `disqus.com` occurs by default when you land on a site which uses | |
# Disqus comments widget. | |
# Not connecting to Disqus by default is a good thing for such a | |
# ubiquitous server as `disqus.com`, which can be used to build a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
||connectormwi.laterpay.net/*/app-de-de.js$script,domain=sport1.de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DEVICE=sdf | |
mkfs.vfat -n multipass01 /dev/$DEVICE1 | |
mount /dev/$DEVICE1 /mnt/ | |
grub-install --no-floppy --root-directory=/mnt /dev/$DEVICE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Bar chart experiment for WL_+D</title> | |
<script src="jquery.min.js"></script> | |
<script src="d3.v3.min.js"></script> | |
<style> | |
/* Nice, we can use CSS to configure appearance */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: https://github.com/gorhill | |
Source: https://gist.github.com/gorhill/5285193 | |
A Go function to render a number to a string based on | |
the following user-specified criteria: | |
* thousands separator | |
* decimal separator |