Skip to content

Instantly share code, notes, and snippets.

{"product":{"id":7127165698159,"title":"FREE Wig Cap","body_html":"","vendor":"BeautiMark","product_type":"Accessories","created_at":"2023-09-28T12:27:32-05:00","handle":"free-wig-cap","updated_at":"2023-11-30T19:12:06-06:00","published_at":null,"template_suffix":"","published_scope":"web","tags":"Exclude","status":"active","admin_graphql_api_id":"gid:\/\/shopify\/Product\/7127165698159","variants":[{"id":41110112829551,"product_id":7127165698159,"title":"Default Title","price":"0.00","sku":"BMWIGCAP_04","position":1,"inventory_policy":"deny","compare_at_price":null,"fulfillment_service":"manual","inventory_management":"shopify","option1":"Default Title","option2":null,"option3":null,"created_at":"2023-09-28T12:27:32-05:00","updated_at":"2023-11-30T19:07:06-06:00","taxable":true,"barcode":"716051968","grams":454,"image_id":null,"weight":16.0,"weight_unit":"oz","inventory_item_id":43209343008879,"inventory_quantity":20440,"old_inventory_quantity":20440,"tax_code":"","requires_shipping":true,"admin_graphql_api_
<script>
document.addEventListener('DOMContentLoaded', function() {
function modifyReturnOrderButtons() {
const email = document.querySelector('.frcp-nav__email').innerText;
const returnButtons = document.querySelectorAll('.frcp-order__return-btn:not([data-modified])');
returnButtons.forEach(originalButton => {
originalButton.dataset.modified = 'true';
const clonedButton = originalButton.cloneNode(true);
originalButton.parentNode.replaceChild(clonedButton, originalButton);
<script>
(function() {
const container = document.querySelector('.frcp-section__content');
function insertStyles() {
const styles = `
@media only screen and (min-width: 768px) {
.frcp-main-view .frcp-section__title-row {
padding-top: 0;
}
@kolbykskk
kolbykskk / gist:66afffc59f1699cd3d6e1cc393301c42
Last active November 21, 2023 23:28
wigs-customer-returns Shopify page script
<style>
#rt-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0 0 0 / 0.8);
z-index: 101;
let toDos = [];
function onReady() {
let id = 0;
const addToDoForm = document.getElementByid('addToDoForm');
const newToDoText = document.getElementByid('newToDoText');
const toDolist = document.getElementByid('toDoList');
function createNewToDo() {
if (!newTodotext.value) {return; }
@kolbykskk
kolbykskk / player-js-analysis.md
Created December 4, 2017 04:39 — forked from R-V-S/player-js-analysis.md
player.js analysis
  1. This file declares a class, Player, instantiates it, and assigns it to a global player variable.
  2. The Player class contains four methods:
    • constructor()
    • playPause()
    • skipTo()
    • setVolume()
  3. The constructor() method sets initial values for the currentlyPlaying, playState, volume, and soundObject properties.
    • currentlyPlaying is set to the first item in album.songs.
    • The initial playState is "stopped".
  • The volume is set to the number 80.