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
{"lastUpload":"2021-11-21T19:58:02.114Z","extensionVersion":"v3.4.3"} |
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 BuiltinModule = require('module'); | |
const path = require('path'); | |
// Guard against poorly mocked module constructors | |
const Module = module.constructor.length > 1 ? module.constructor : BuiltinModule; | |
const realResolveFilename = Module._resolveFilename; | |
Module._resolveFilename = (request, ...args) => { | |
if (request[0] !== '@') { | |
return realResolveFilename.call(this, request, ...args); |
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
// ctrl + click to video: downloads | |
// ctrl + click image: opens image in new tab. So the image can be right clicked and downloaded. | |
// Tested only feed | |
document.body.onclick = function (event){ | |
if (window.event.ctrlKey) { | |
if(event.target.ariaLabel !== null) | |
window.open(event.target.previousElementSibling.previousElementSibling.children[0].children[0].children[0].currentSrc) | |
else | |
window.open(event.target.previousElementSibling.children[0].currentSrc) |
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
async function render() { | |
const loaders = document.querySelectorAll("[xLoad]"); | |
if (loaders.length === 0) | |
return | |
for (let i = 0; i < loaders.length; i++) { | |
const element = loaders[i]; | |
const from = element.getAttribute("xLoad"); | |
const res = await fetch(from); |
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 list = rawStr.match(/\\u..../g) || [] | |
for (const code of list) | |
rawStr = rawStr.replace(code, decodeURIComponent(Buffer.from(code.slice(-2), 'hex'))) |