Skip to content

Instantly share code, notes, and snippets.

gwarser

  • Poland
View GitHub Profile
View DDG-Tracker-Radar.txt
This file has been truncated, but you can view the full file.
! Title: DDG Tracker Radar
||01net.com/13/call$third-party
||01net.com/h/nshow$third-party
||01net.com/h/aip$third-party
||01net.com/setuid$third-party
||01net.com//13/call$third-party
||0ps.us/assets-50da3f0fec3/vendor/jplayer/dist/jplayer/jquery.jplayer.js$third-party
||1000ps.net/1000ps.ch/Content/Redesign/img/heart-grey.svg$third-party
||1000ps.net/1000ps.ch/Content/Redesign/img/spy.svg$third-party
@gwarser
gwarser / disable-pageview-api.js
Created Mar 24, 2020
"Disable Page Visibility API" scriptlet for uBO
View disable-pageview-api.js
/// disable-pageview-api.js
// Based on: https://addons.mozilla.org/firefox/addon/disable-page-visibility/
// License: http://www.opensource.org/licenses/bsd-license.php
(function(){
// visibilitychange events are captured and stopped
document.addEventListener("visibilitychange", function(e) {
e.stopImmediatePropagation();
}, true);
// document.visibilityState always returns false
Object.defineProperty(Document.prototype, "hidden", {
View update-all-repos.sh
#!/bin/bash
# Finds all git repos inside directories specified in command line or current
# directory if no path specified and updates them all.
# Uses fetch + ff merge.
# Failed updates are marked by 'FAILED-git-update.txt' file left in git dir
# and dirs specified in command line or current dir if not specified.
# Can be run as cron job, example (includes sleep to randomize startup time):
# 0 */3 * * * $USER /bin/sleep $(shuf -i 0-300 -n 1) && /bin/bash $HOME/git/update-all-repos.sh $HOME/git/
@gwarser
gwarser / badfilter-rss.txt
Last active Nov 19, 2019
Badfilter RSS filters from Fanboy's Annoyance list
View badfilter-rss.txt
[uBlock Origin]
! Title: Badfilter RSS
! Expires: 30 days
! Description: Badfilter RSS filters from Fanboy's Annoyance list
! Homepage: https://github.com/gwarser/filter-lists
! ———
!
-blog-rss.$badfilter
-blue-rss.$badfilter
-btn-rss-$badfilter
View test1.html
<div class="a">a
<div class="b">b
<div class="target">target
<div class="x">x
<div class="y">y
</div></div></div></div></div>
View autosave.lua
-- autosave.lua
--
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
--
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60
View ublock_perf_thread_answer.md

Answer to comments on uBlock Origin thread: https://github.com/gorhill/uBlock/commit/5733439f629da948cfc3cae74afa519f6cff7b7f as it seems I do not have permission to comment.

Hi,

First of all I'd like to personnaly thank you for all the work you do on uBlock Origin and other extensions, the source code of which have been an inspiration to me personally many times in the past.

I am also really excited that there are multiple people pushing for more accurate measurements of the efficiency of content-blockers and I think sharing methodologies, data and results is a great start!

It is interesting that the results you obtained diverge from the study published yesterday. If I understand correctly you got similar timings for uBlock Origin itself, but the numbers for Adblock Plus do not seem to match (45µs instead of ~19µs). I'd really like to understand where this difference could come from.

View uBO-Extra_helper.txt
! Title: uBO-Extra helper moved https://github.com/gwarser/filter-lists/blob/master/uBO-Extra-notifier.txt
! Expires: 30 days
! Description: Displays mesage on pages where uBO-Extra is usefull
!
101greatgoals.com,4chan.org,afterellen.com,allthetests.com,americanphotomag.com,atvrider.com,baggersmag.com,baltimoresun.com,biology-online.org,boatingmag.com,boston.com,cafemom.com,calgaryherald.com,calgarysun.com,capitalgazette.com,carrollcountytimes.com,cattime.com,cbssports.com,chicagotribune.com,chowhound.com,chron.com,chroniclelive.co.uk,citypaper.com,cnet.com,comingsoon.net,computershopper.com,courant.com,craveonline.com,cruisingworld.com,csgoutpost.com,ctnow.com,cycleworld.com,dailydot.com,dailypress.com,dayzdb.com,deathandtaxesmag.com,delmartimes.net,destinationweddingmag.com,destructoid.com,dirtrider.com,diversitybestpractices.com,dogtime.com,dotaoutpost.com,download.cnet.com,edmontonjournal.com,edmontonsun.com,edmunds.com,emedicinehealth.com,esohead.com,eurweb.com,everquest.allakhazam.com,everydayhealth.com
@gwarser
gwarser / _napraw lyricsy.py
Last active Aug 29, 2015
Czyści pliki z tekstami piosenek (lyrics *.lrc, unsynced lyrics *.txt) ze śmieci
View _napraw lyricsy.py
#! python3
# -*- coding: UTF-8 -*-
#
# Skrypt do poprawiania napisów
#
# Sposób użycia:
# Upuścić plik z napisami na ikonkę skryptu lub
# odpalić skrypt w folderze z napisami
#
You can’t perform that action at this time.