Skip to content

Instantly share code, notes, and snippets.

View phts's full-sized avatar
:octocat:
👾⛱🥁🏡🎧👓🌤🚼🛸🚗🕹🚂🌇🇵🇱🚭🇳🇱🇧🇾🔭🛠🖥🎹♠🥌

Phil Tsaryk phts

:octocat:
👾⛱🥁🏡🎧👓🌤🚼🛸🚗🕹🚂🌇🇵🇱🚭🇳🇱🇧🇾🔭🛠🖥🎹♠🥌
View GitHub Profile
// ==UserScript==
// @description Script provides browser notifications in Outlook Web App
// @grant none
// @include https://*/owa/*
// @exclude https://*/manifests/appCacheManifestHandler.ashx*
// @name OWA Notifications
// @namespace https://github.com/phts/
// @version 3.2.4
// ==/UserScript==
@phts
phts / fixed_playcount_sync.js
Last active April 12, 2020 22:43
Fixed playcount_sync script for foobar2000 + WSH Panel Mod (https://hydrogenaud.io/index.php/topic,76772.0.html)
// ==PREPROCESSOR==
// @import "%fb2k_profile_path%marc2003\common4.js"
// @import "%fb2k_profile_path%marc2003\tooltip_buttons.js"
// @name "Playcount Sync"
// @author "marc2003"
// @feature "v1.4"
// @feature "watch-metadb"
// ==/PREPROCESSOR==
var bw = 32;
@phts
phts / fix-web-skype-com.user.css
Last active July 20, 2018 17:24
Fix and improve Web Skype UI
/* ==UserStyle==
@name Fix and improve Web Skype UI
@namespace https://github.com/phts/
@version 1.0.1
==/UserStyle== */
@-moz-document domain("web.skype.com") {
/* Make message textarea show text with line feeds and extra white spaces correctly */
textarea[name="messageInput"] {
@phts
phts / close_teamviewer_sponsored_session_popup.vbs
Created January 3, 2016 19:23
Close TeamViewer's "Sponsored Session" popup
Set sh = CreateObject("WScript.Shell")
For counter = 1 To 10
activated = sh.AppActivate("Спонсируемый сеанс")
If activated = True Then
For t = 1 To 2
sh.SendKeys "{TAB}"
Next
sh.SendKeys " "
WScript.Quit
@phts
phts / onliner-usd-price.bookmarklet.js
Last active June 10, 2016 14:09
Bookmarklet to add USD prices to an item page on catalog.onliner.by
javascript:(function(){
"use strict";
var $a = $(".b-offers-desc__info-sub > a.b-offers-desc__info-price-value_secondary");
var byrPricesText = $a.text();
var byrPrices = byrPricesText.replace(/[^0-9–]/g, "").split("–");
var currencyText = $("#currency-informer > a > span").text().replace(/[^0-9]/g, "");
var currency = parseInt(currencyText);
@phts
phts / tut-by-youtube-links.bookmarklet.js
Created August 5, 2015 13:20
Bookmarklet for adding youtube video links under tut.by's players
@phts
phts / clean-baraholka-onliner-by.user.css
Last active July 20, 2018 17:29
Remove ads and other redundant stuff from baraholka.onliner.by
/* ==UserStyle==
@name Clean up baraholka.onliner.by
@description Remove ads and other redundant stuff from baraholka.onliner.by
@namespace https://github.com/phts/
@version 1.0.2
==/UserStyle== */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("baraholka.onliner.by") {
@phts
phts / clean-booking-com.user.css
Last active October 21, 2019 12:46
Remove ads and pther redundant stuff from booking.com
/* ==UserStyle==
@name Clean up booking.com
@description Remove ads and pther redundant stuff from booking.com
@namespace https://github.com/phts/
@version 1.0.2
==/UserStyle== */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("booking.com") {
@phts
phts / clean-aliexpress-com.user.css
Last active July 20, 2018 17:25
Remove ads and other redundant stuff from aliexpress.com
/* ==UserStyle==
@name Clean up aliexpress.com
@description Remove ads and other redundant stuff from aliexpress.com
@namespace https://github.com/phts/
@version 1.0.2
==/UserStyle== */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("aliexpress.com") {
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*