Skip to content

Instantly share code, notes, and snippets.

View vyach-vasiliev's full-sized avatar

ฬะทçะรโลนร vyach-vasiliev

  • Milky Way galaxy, planet Earth
View GitHub Profile
@vyach-vasiliev
vyach-vasiliev / return_old_design_of_wv_spotify.md
Last active May 9, 2017 09:49
Return the old design of the web version of Spotify

Return the old design of the web version of Spotify

If you are working in an Chrome-like browser, then the extension of User-Agent Switcher (https://superuser.com/a/445873/589421) will help you.

Just add new "Custom-User Agent" and then new add the record to the "Permanent Spoof list":

User-Agent String:

Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2970.0 Safari/537.36

@vyach-vasiliev
vyach-vasiliev / get_crx_on_chrome_webstore.user.js
Last active August 15, 2023 17:49
Get of extension from Chrome-WebStore (User Script)
// ==UserScript==
// @name Get of extension from Chrome-WebStore [chrome.google.com]
// @version 0.4
// @description Add button for get .crx of extension or theme from Chrome-WebStore
// @description Bookmarklet version: http://bit.ly/get_crx_chrome_bookmarklet
// @author Vyacheslav Vasiliev
// @history 2022.09 Fix problem with bookmarklet in Chrome-like browsers. Add accept formats.
// @history 0.3 Fix problem with bookmarklet in Chrome-like browsers. Add independent style for the button download.
// @history 0.2 Add new method download
// @include *chrome.google.com/webstore/*
@vyach-vasiliev
vyach-vasiliev / get_crx_on_chrome_webstore.bookmarklet.js
Last active August 14, 2023 16:56
Get of extension from Chrome-WebStore (bookmarklet, v.2022.09)
javascript:!(function(){var k=document.querySelector('[role="dialog"] div[role="button"][aria-label]');if(k){var b=document.createElement("a");b.className="";b=k.parentNode.insertBefore(b,k);b.innerText="Get .crx file";b.id="get-crx-file";var i=a();var j=i[0];var g=i[1];var c=i[2];var d=i[3];b.setAttribute("download",g+".crx");b.setAttribute("href",c);console.log("install href\n%s",c);f();b.style.marginRight="2px";var h="#get-crx-file{margin-right:2px;user-select:none;padding:0 20px 0 20px;-webkit-border-radius:2px;border-radius:2px;border:1px solid;cursor:pointer;color:#fff;font-weight:bold;text-align:center;text-shadow:0 1px 1px rgba(0,0,0,0.1);text-transform:uppercase;-webkit-box-shadow:0 2px 0 0 rgba(255,255,255,.06) inset,0 2px 3px 0 rgba(0,0,0,.2);box-shadow:0 2px 0 0 rgba(255,255,255,.06) inset,0 2px 3px 0 rgba(0,0,0,.2);outline:0;vertical-align:top;height:28px;font-size:11px;line-height:28px;text-decoration:none;display:inline-block;border-color:#2d53af;background-color:#4d7bd6;background-image:-webki
@vyach-vasiliev
vyach-vasiliev / _ex_tool_panel_pocket.user.js
Last active May 23, 2017 23:15
Add button "Read in Pocket" to panel on site https://getpocket.com/. Why? Because by default Pocket opens original links to the page, if it exists. But sometimes you just want a text version open in Pocket. Enjoy! 😄
// ==UserScript==
// @name _Ex Add button Read in Pocket [getpocket.com]
// @version 0.2
// @namespace 132-421-129
// @description add button "Read in Pocket" to panel
// @author Vyacheslav Vasiliev
// @include http://getpocket.com/a/*
// @include https://getpocket.com/a/*
// @downloadURL https://gist.github.com/vyach-vasiliev/17cbbfd1f34020b78f4c4728dc453a56/raw/d8f25ff53d9c02b41fe397d066540a53e8ce221c/_ex_tool_panel_pocket.user.js
// @updateURL https://gist.github.com/vyach-vasiliev/17cbbfd1f34020b78f4c4728dc453a56/raw/d8f25ff53d9c02b41fe397d066540a53e8ce221c/_ex_tool_panel_pocket.user.js
@vyach-vasiliev
vyach-vasiliev / long_width_table.sourceforge.user.js
Created May 28, 2017 19:40
Long width table for project explorer [sourceforge.net] (UserScript)
// ==UserScript==
// @name Long width table for project explorer [sourceforge.net]
// @namespace 132-248-209
// @version 0.1
// @description try to take over the world!
// @author Vyacheslav Vasiliev
// @copyright © 2017, Vyacheslav Vasiliev (vyach.vasiliev\аt\gmail\dоt\com)
// @match https://sourceforge.net/projects/*
// @grant none
// @run-at document-end
@vyach-vasiliev
vyach-vasiliev / getBGImgURLsFromCSSs.js
Last active June 11, 2017 14:41 — forked from donut/getBGImgURLsFromCSSs.js
Builds a list of images found in the linked style sheets
/* Builds a list of images found in the linked style sheets
*
* Adapted from stackoverflow.com/questions/2430503/list-of-all-background-images-in-dom/2453880#2453880
*
* This method has the advantage of finding URLs for background images that no
* element in the DOM uses yet.
* Author: Donovan Mueller @donut (https://github.com/donut)
* Contributors: Vyacheslav Vasiliev @vyach-vasiliev (https://gist.github.com/vyach-vasiliev)
*
* @return {array}
@vyach-vasiliev
vyach-vasiliev / unlock_music.md
Last active June 17, 2017 21:35
Little tricks for your music for enjoying music

Unlock Pandora, Spotify, Netflix and other services outside U.S. (just paste it into host)

107.170.15.247 www.pandora.com
107.170.15.247 www.hbo.com
107.170.15.247 www.hulu.com

Thanks a lot guys! http://portaller.com/

Rule for uBlock (for skip ads when click to "Replay Tracks You Love" on Pandora)

@vyach-vasiliev
vyach-vasiliev / temp_solution_youtube_player_fix.md
Created June 19, 2017 10:43
Uncaught TypeError: Cannot read property 'prototype' of undefined (YouTube player)

ERROR: Uncaught TypeError: Cannot read property 'prototype' of undefined

If you have a tab with a lot of workload on the process with the built-in YouTube player, chances are you have errors in the console. I had it.

base.js:30 Uncaught TypeError: Cannot read property 'prototype' of undefined
    at Object.g.p (base.js:30)
    at remote.js:79
    at remote.js:162
g.p @ base.js:30
(anonymous) @ remote.js:79
@vyach-vasiliev
vyach-vasiliev / getHTMLCode.js
Last active July 8, 2017 21:02
Get a HTML code from WEB-page with Javascript
/**
* Created on 08/07/2017
* Contributors
* Rob W (https://stackoverflow.com/users/938089/)
* Vyacheslav Vasiliev ([vyach.vasiliev][dog][gmail][dot][com])
*/
function getHTMLCode(){
var node, head_and_body, html_start, html_end, result;
@vyach-vasiliev
vyach-vasiliev / collatz_conjecture.cpp
Last active July 13, 2017 11:33
Collatz conjecture with Cpp (C++)
#include <iostream>
#include <sstream>
using namespace std;
// Collatz conjecture alg
void collatz( unsigned long val ) {
cout << val << " => [";
while( true ) {
val = val & 1 ? 3 * val + 1 : val >> 1;
cout << val << ( val > 1 ? "," : "]\n" );