Skip to content

Instantly share code, notes, and snippets.

@xiangzhuyuan
Created December 29, 2020 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiangzhuyuan/345593dea44c68904c7f92da58fe0fb8 to your computer and use it in GitHub Desktop.
Save xiangzhuyuan/345593dea44c68904c7f92da58fe0fb8 to your computer and use it in GitHub Desktop.
a monkey script to remove add popup when open swarm POS page
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://ja.swarmapp.com/xiangzhuyuan/checkin/5b8ae76295a722002cc568d9
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
let jstDt = new Date(document.querySelector("#swarmCheckinDetails > div.details > div.info.block > div.venue.push > div > span.timestamp > span:nth-child(2) > span").getAttribute("data-created-at")*1000);
let dt = document.querySelector("#swarmCheckinDetails > div.details > div.info.block > div.venue.push > div > span.timestamp > span:nth-child(2) > span");
dt.textContent = jstDt;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment