Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Always on focus
// @namespace https://minhquang.xyz/focustest
// @author moi, daijro
// @version 1.0.0
// @description Ngăn các trang web biết rằng bạn đã chuyển tab hoặc không ở trong trang web.
// @include *
// @run-at document-start
// ==/UserScript==
@minhqnd
minhqnd / ytadblock.user.js
Created October 22, 2023 17:53
Remove Youtube Adblock Warnings
// ==UserScript==
// @name Remove Youtube Adblock Warnings!
// @namespace http://tampermonkey.net/
// @version 0.2.2
// @description No more 'Ad blockers are not allowed on YouTube'
// @author coder369
// @license MIT
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
var getid = async function(sec_user_id, max_cursor) {
var res = await fetch("https://www.douyin.com/aweme/v1/web/aweme/post/?device_platform=webapp&aid=6383&channel=channel_pc_web&sec_user_id=" + sec_user_id + "&max_cursor=" + max_cursor, {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "vi",
"sec-ch-ua": "\"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"108\", \"Microsoft Edge\";v=\"108\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
@minhqnd
minhqnd / ok
Last active July 24, 2023 22:40
ok
okokok
123
@minhqnd
minhqnd / quangminhnd.txt
Last active July 24, 2023 23:10
FIX-quangminhnd add
{
"contact": "https://fb.com/therealstromez",
"templates": [
{
"name": "MIXIPLACE VIETNAM",
"sources": ["https://github.com/quangminhnd/MixiPlace/blob/main/MIXIFINAL-quangminhnd.png?raw=true"],
"x": 2375,
"y": 1442
},
{
import requests
import json
import time
# Disable SSL warnings
requests.packages.urllib3.disable_warnings()
url = "https://quangninh.tsdc.edu.vn/forward-api"
headers = {
'Content-Type': 'application/json;charset=utf-8',
@minhqnd
minhqnd / xulytudien.py
Created February 15, 2023 09:44
lọc từ điển https://raw.githubusercontent.com/undertheseanlp/dictionary/master/dictionary/words.txt ra các từ có 2 chữ để chơi nối từ, tạo bởi ChatGPT
import re
import os
# Đường dẫn đến file txt ban đầu
input_file_path = "words.txt"
# Đường dẫn đến file txt mới sẽ ghi ra
output_file_path = "tudien.txt"
# Đọc nội dung file txt ban đầu