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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Fox Running in Grass</title> | |
<style> | |
body { margin: 0; } | |
canvas { display: block; } | |
</style> |
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
{ | |
"ts": "3966195", | |
"updates": [ | |
{ | |
"group_id": 11111111, | |
"type": "message_new", | |
"event_id": "b028bfa0bba4a63461fdf5c7db4ccee14e03462b", | |
"v": "5.131", | |
"object": { | |
"message": { |
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
// ==UserScript== | |
// @name coub-fullscreen-key-f | |
// @version 0.1 | |
// @description Добавляет быструю клавишу F для переключения полноэкранного режима | |
// @author github.com/xeleoss | |
// @match *://coub.com* | |
// @match *://coub.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=coub.com | |
// @run-at document-end | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name safe-and-gel-booru-switching-pages-arrows | |
// @namespace https://gist.github.com/xeleoss/cca13f846081b883863606f2009f817e | |
// @version 0.1 | |
// @description script for (safe|gel)booru.org to switching pages with keyboard arrows | |
// @author github.com/xeleoss | |
// @match *://safebooru.org/index.php* | |
// @match *://gelbooru.com/index.php* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=safebooru.org | |
// @run-at document-end |
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
// ==UserScript== | |
// @name booru-load-original-images | |
// @namespace https://gist.github.com/xeleoss/07d9f38a6762e468d7abbf863e5f549e | |
// @version 0.2 | |
// @description script for (safe|gel|dan)booru.org to load the original size image instead of preview | |
// @author github.com/xeleoss | |
// @match *://safebooru.org/index.php* | |
// @match *://gelbooru.com/index.php* | |
// @match *://danbooru.donmai.us/posts* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=safebooru.org |
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
// ==UserScript== | |
// @name safebooru-open-image-right-click | |
// @version 0.1 | |
// @description script for safebooru.org to open the original image by right-clicking | |
// @author github.com/xeleoss | |
// @match *://safebooru.org/index.php* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=safebooru.org | |
// @run-at document-end | |
// @updateUrl https://gist.github.com/xeleoss/812b182d4f2543bff9a26b2fb512cba8 | |
// ==/UserScript== |
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
[dir] #pv_photo { | |
display: flex; | |
align-items: center; | |
} | |
[dir] #pv_photo img { | |
max-width: 100%; | |
max-height: 100%; | |
width: auto !important; | |
height: auto !important; | |
} |
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
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'VkNet.Model.VideoImage' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. | |
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. | |
Path 'image[4]', line 21, position 5. | |
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract(JsonReader reader, Type objectType, JsonContract contract) | |
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) | |
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using VkNet.Abstractions; | |
using VkNet.Exception; |
NewerOlder