Skip to content

Instantly share code, notes, and snippets.

View masnormen's full-sized avatar

Nourman Hajar masnormen

View GitHub Profile
@masnormen
masnormen / block-shopee-affiliate-in-twitter.js
Last active June 20, 2023 06:18
Block Shopee Affiliate in Twitter (Arc Boost)
/**
* For Arc users: In the Boost editor, add this script into content.js
*/
let timeoutId;
function hideShopeeAffiliates() {
clearTimeout(timeoutId);
timeoutId = setTimeout(function() {
document.querySelectorAll("[data-testid='cellInnerDiv']").forEach(div => {
@masnormen
masnormen / survey-kesehatan-autofill.js
Created March 12, 2022 07:39
Survey Kesehatan Autofill Script
// © 2022 Nourman Hajar
// Menjawab survey kesehatan SIAM UB dengan jawaban sehat
// Note: Kalau sakit jangan pakai ini y
const result = document.evaluate("//tr[@class='text' and not(@id) and descendant::input[@type='radio']]", document, null, XPathResult.ANY_TYPE, null);
let node, nodes = []
while (node = result.iterateNext()) nodes.push(node);
for (let i = 0; i < nodes.length; i++) {
@masnormen
masnormen / siam-ub-autofill.js
Last active January 12, 2022 05:10
Kuesioner SIAM UB Autofill Script
// © 2022 Nourman Hajar
// Checkbox kuesioner akan dipilih secara acak antara nilai min dan max.
// Cara pakai:
// Buka halaman SIAM yang berisi pertanyaan kuesioner > Buka DevTools Chrome (atau pencet F12) > Copas kode ini di situ > Tekan Enter
// Masukkan nilai min dari pilihan
const min = 3
// Masukkan nilai max dari pilihan
const max = 5