Created
December 29, 2020 02:38
-
-
Save xiangzhuyuan/345593dea44c68904c7f92da58fe0fb8 to your computer and use it in GitHub Desktop.
a monkey script to remove add popup when open swarm POS page
This file contains hidden or 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
// ==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