Skip to content

Instantly share code, notes, and snippets.

View phts's full-sized avatar
:octocat:
๐Ÿ‘พโ›ฑ๐Ÿฅ๐Ÿก๐ŸŽง๐Ÿ‘“๐ŸŒค๐Ÿšผ๐Ÿ›ธ๐Ÿš—๐Ÿ•น๐Ÿš‚๐ŸŒ‡๐Ÿ‡ต๐Ÿ‡ฑ๐Ÿšญ๐Ÿ‡ณ๐Ÿ‡ฑ๐Ÿ‡ง๐Ÿ‡พ๐Ÿ”ญ๐Ÿ› ๐Ÿ–ฅ๐ŸŽนโ™ ๐ŸฅŒ

Phil Tsaryk phts

:octocat:
๐Ÿ‘พโ›ฑ๐Ÿฅ๐Ÿก๐ŸŽง๐Ÿ‘“๐ŸŒค๐Ÿšผ๐Ÿ›ธ๐Ÿš—๐Ÿ•น๐Ÿš‚๐ŸŒ‡๐Ÿ‡ต๐Ÿ‡ฑ๐Ÿšญ๐Ÿ‡ณ๐Ÿ‡ฑ๐Ÿ‡ง๐Ÿ‡พ๐Ÿ”ญ๐Ÿ› ๐Ÿ–ฅ๐ŸŽนโ™ ๐ŸฅŒ
View GitHub Profile
@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-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 / 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 / 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 / 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 / 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 / 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;
// ==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 / epam-quiz-solver.bookmarklet.js
Last active February 13, 2018 17:14
Quiz solver at Epam's Adaptation Portal
javascript:(function() {
var interval,
permutations = {
check: {
'3': [[false, false, true],
[false, true, false],
[true, false, false],
[false, true, true],
[true, true, false],
[true, true, true]],
javascript:(function() {
let bodycontent = document.querySelectorAll('.bodycontainer')[0];
bodycontent.childNodes[1].remove(); /* <hr> */
bodycontent.childNodes[0].remove(); /* <table> with logo */
let maincontent = document.querySelectorAll('.maincontent')[0];
let table = maincontent.childNodes[2];
maincontent.childNodes[1].remove(); /* <hr> */
maincontent.childNodes[0].remove(); /* <table> with email title */