Skip to content

Instantly share code, notes, and snippets.

View agamvrinos's full-sized avatar
👾
Just chillin' codin'

Aggelos Gamvrinos agamvrinos

👾
Just chillin' codin'
View GitHub Profile
@agamvrinos
agamvrinos / selectable.js
Last active November 8, 2020 19:04
Make website content selectable in case they've blocked it by default
(function() {
'use strict';
let style = document.createElement('style');
style.innerHTML = '*{ user-select: auto !important; }';
document.body.appendChild(style);
})();
@agamvrinos
agamvrinos / get-image-urls.js
Last active November 8, 2020 14:16 — forked from tobek/get-image-urls.js
Save images/audio from chrome inspector/dev tools network tab
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/