Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name MC Face Detection Plugin
// @namespace https://example.com/
// @version 2024-04-24
// @description Mycos Face Detection Plugin demo
// @author You
// @match https://dj.mycostech.com/manage
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
@Etc3tera
Etc3tera / explain-single-thread.js
Created March 28, 2024 07:55
explain JS single thread
message = 'aha'
setTimeout(() => {
message = 'happy';
}, 1)
setTimeout(() => {
console.log('2nd setTimeout: ' + message)
}, 500)
console.log('start: ' + new Date().toISOString())
x = 0
for(let i = 0; i < 500; i++) {
@Etc3tera
Etc3tera / jira_focus_backlog.js
Last active November 23, 2021 07:20
Jira Backlog Focus
// ==UserScript==
// @name Jira Backlog Focus
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Etc3tera
// @match https://*.atlassian.net/**/backlog
// @icon https://www.google.com/s2/favicons?domain=microsoft.com
// @grant none
// ==/UserScript==
@Etc3tera
Etc3tera / css_quiz_1.html
Last active March 29, 2021 02:44
CSS Quiz - 1
<html>
<head>
<title>CSS Test</title>
<style>
html {
font-size: 16px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.box {
border: 1px;
@Etc3tera
Etc3tera / pinterest_anonymous.js
Last active March 7, 2020 11:33
pinterest_anonymous
// ==UserScript==
// @name Pinterest Anonymous
// @namespace http://tampermonkey.net/
// @version 0.1
// @author etc3tera
// @match https://www.pinterest.com/search/pins/*
// @match https://www.pinterest.com/pin/*
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @grant none
// ==/UserScript==
// ==UserScript==
// @name My Pantip
// @version 1.0
// @match https://pantip.com/topic/*
// ==/UserScript==
(function() {
'use strict';
$('body').css('background', '#d9effc');
$('head').append(`<style>
.samgee .altcolor05 .display-post-wrapper-inner { background: #b2d9ea; }
.samgee .display-post-wrapper-inner { background: #f0c5d5; }
.samgee .display-post-wrapper.main-post { background: #fed797 }
.samgee .display-post-title { color: #333; }
.samgee .main-post .display-post-story { color: #333; }
.samgee .display-post-story { color: #333; }
.samgee .altcolor05 .display-post-story { color: #333; }
.samgee .display-post-number { color: #333; }
.samgee .display-post-tag-wrapper .tag-item { background: #e69288; color: #333; }
.samgee .emotion-vote-list.alt02, .samgee .altcolor05 .display-post-wrapper-inner .emotion-vote-list { background: #e69288; color: #333; }
// ==UserScript==
// @name My Pantip
// @version 1.0
// @match https://pantip.com/topic/*
// ==/UserScript==
(function() {
'use strict';
$('body').css('background', '#fff')
})()
// ==UserScript==
// @name My Pantip
// @version 1.0
// @match https://pantip.com/
// ==/UserScript==
(function() {
'use strict';
alert('Hello, Pantip');
})()