Set properties
const locked = set(body.style, 'overflow', 'hidden')
('background-color', '#eee')
('user-select', 'none');Reset original values
| /* | |
| READ CURATOR LIST | |
| */ | |
| ((list) => { | |
| const readApps = () => { | |
| document | |
| .querySelectorAll('.recommendation') | |
| .forEach((node) => { | |
| const item = { | |
| appId: node.querySelector('a[data-ds-appid]').dataset.dsAppid, |
| source.js |
| /* | |
| 1. go to your inventory and open developers panel, networking tab | |
| 2. use one item | |
| 3. replace <USER_ID> with your ID and <SESSION_ID> with sessionid from "ajaxactivateconsumable" request | |
| 4. run this script from console | |
| I don't have all classid's but you may search for them in inventoy data response | |
| */ | |
| fetch('https://steamcommunity.com/inventory/<USER_ID>/753/6?l=english&count=2000') | |
| .then((response) => response.json()) |
| const getUrlDomainPart = (url) => { | |
| const [part] = url.match(/^https?:\/\/[^\/]+\//) || []; | |
| return part; | |
| }; | |
| export const getCurrentUrl = () => { | |
| const url = window.location.href; |
Factory functions to create a value storage hidden in a closure
Listens for jQuery events to re-dispatch them from DOM element as CustomEvent. To redispatch Bootstrap 4 modal events from modal DOM element
import translateJQueryEventsToDOM from '@actualwave/jquery-events-to-dom';
translateJQueryEventsToDOM()(
'show.bs.modal',
'shown.bs.modal',Simple function wrapper over Object.getPrototypeOf().
Additionally provides functions to getClassName() and getParentClass().