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
/^(?:[a-z\d]+(?:[\-_][a-z\d]+)*\.)*[a-z\d]+(?:[\-_][a-z\d]+)*@(?:(?:xn--[a-z\d]+|[a-z\d]+(?:\-[a-z\d]+)*)\.)*(?:xn--[a-z\d]+|[a-z\d]+(?:\-[a-z\d]+)*)\.(?:xn--[a-z\d]+|[a-z]{2,4})$/i |
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
(function() { | |
if (location.host !== "watch.is") { | |
alert("Для начала надо зайти на Watch.is, например."); | |
return; | |
} | |
var errorHeading = "Что-то пошло не так."; | |
var apiTypes = [ | |
{ id: "video", name: "Просто видео" }, |
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
dd, dl, dt, form, li, p { | |
margin: 0; | |
padding: 0; | |
} | |
img, table { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} |
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
(function () { | |
if (location.host !== "kino.pub") { | |
alert("Для начала надо зайти на kino.pub, например."); | |
return; | |
} | |
var errorHeading = "Что-то пошло не так. \n"; | |
var windowId = "linksBookmarklet"; |
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
(function() { | |
function setStyle(node, style) { | |
Object.keys(style).forEach(function(key) { | |
node.style[key] = style[key]; | |
}); | |
} | |
if (location.host !== "m.vk.com") { | |
alert("Для начала надо зайти на m.vk.com, например."); |
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
//Play with it here: https://goo.gl/dH6DLj | |
class UnexpectedValueError { | |
public readonly stack: string | undefined; | |
public readonly message: string; | |
constructor(value: never) { | |
const error = new Error(`Unexpected value ${value}`); | |
this.stack = error.stack; | |
this.message = error.message; |