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.IO; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using VkNet.Abstractions; | |
using VkNet.Exception; | |
using VkNet.Model;using VkNet.Model.RequestParams; | |
namespace ProjectName |
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.IO; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using VkNet.Abstractions; | |
using VkNet.Exception; | |
using VkNet.Model; | |
using VkNet.Model.GroupUpdate; |
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
const b = document.getElementsByClassName("nim-dialog--close _im_dialog_close"); | |
for(let _b of b) { | |
_b.click() | |
} | |
const fTemp = document.getElementsByClassName("flat_button"); | |
const f = []; | |
for(_f of fTemp) { | |
if(_f.innerHTML !="Удалить" && _f.innerHTML !="Выйти из беседы") { | |
console.log(_f) | |
} else { |
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; |
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
[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
// ==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
// ==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 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 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== |
OlderNewer