Skip to content

Instantly share code, notes, and snippets.

View mdn522's full-sized avatar
๐ŸŒ

Md Abdullah mdn522

๐ŸŒ
View GitHub Profile
@mdn522
mdn522 / satsuitequestionbank.cb.qol.user.js
Created December 26, 2023 04:24
Enlarges question window. Hides answer until ctrl key is pressed to make it visible
// ==UserScript==
// @name SAT Suite Question Bank QoL Improvement
// @namespace mdn522
// @version 0.1
// @author Abdullah Mallik (@mdn522)
// @match https://satsuitequestionbank.collegeboard.org/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=collegeboard.org
// @grant none
// ==/UserScript==
@mdn522
mdn522 / inject.js
Last active December 11, 2018 13:35
document.head.innerHTML = '<meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=viewport content="width=1024,initial-scale=1"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Warface - Syndicate</title><link rel="shortcut icon" type=image/x-icon href=/static/wf.mail.ru/img/main/favicon.ico><link href=https://wf.my.com/minigames_static/modules/battlepass_v5/wf/dist/css/app.862c6be37544d92e1ddeccca07919b65.css rel=stylesheet>';
document.body.innerHTML = '<div id=app></div><div id=loader></div>';
var scripts = [
"https://wf.cdn.gmru.net/minigames_static/public/loader/wf/main_loader.js",
"https://wf.cdn.gmru.net/static/wf.mail.ru/js/promo/md5-min.js",
"https://wf.my.com/minigames_static/modules/battlepass_v5/wf/dist/js/manifest.3297e6785e2114786530.js",
"https://wf.my.com/minigames_static/modules/battlepass_v5/wf/dist/js/vendor.35c0cb6fa3d518f6ae25.js",
"https://wf.my.com/minigames_static/modules/battlepass_v5/wf/dist/js/app.e6426e2982cf60ff5d50.js"
@mdn522
mdn522 / wf-crate-opener.js
Last active January 7, 2019 19:02
K.I.W.I. Crate Opener Script
// Warface Mass Crate Opener
// How to use:
// Step 1: Goto Crates in Inventory
// Step 2: Right Click > Inspect Element
// Step 3: Goto Console Tab
// Step 4: Paste this code
// Step 6: Press enter
// Note: Run this code immediately after opening/refreshing Inventory page
//
// Donation goes here https://www.paypal.me/mdn522/
@mdn522
mdn522 / info.json
Last active August 23, 2018 20:54
Please move to https://github.com/mdn522/wf-kiwi-character-bot for latest version
{
"mission_file": "shark",
"task_name": "hammer",
"stars": 1,
"can_send": true,
"refill": true,
"refill_min_bp": 200,
"refill_min_energy": 2,
"refill_drain": true,
"refill_drain_map": [3, 1],
@mdn522
mdn522 / ello-image-scraper.js
Created May 28, 2018 17:47
Ello.co Image Scraper
# Ello.co Image Scraper
var urls = "";
$('.ImageAttachment').each(function(_, el) {
var $this = $(this);
var srcset = $this.attr('srcset');
if (srcset) {
urls += srcset.split(' ')[2] + "\n";
} else {
urls += $this.attr('src') + "\n";
var filter = {
difficulty: [
'universal',
'class',
'elite',
],
};
console.log("---------------------------------------");
$(app_info.userTasks).each(function(_, task) {
if (task.type == 'troops' && filter.difficulty.includes(task.difficulty)) {
SimpleXMLElement Object
(
[id] => 1
[id_address_delivery] => 4
[id_address_invoice] => 4
[id_cart] => 1
[id_currency] => 1
[id_lang] => 1
[id_customer] => 1
[id_carrier] => 2
@mdn522
mdn522 / char_list.php
Created July 4, 2016 05:09 — forked from ravanscafi/char_list.php
PHP: Return all unique characters present in an array of strings.
<?php
/**
* Return all unique characters present in an array of strings.
* It ignores spaces due to join().
* e.g.:
* ['abc', 'g', 'def', 'abcd'];
* > 'abcdefg'
*
* @param array $array
@mdn522
mdn522 / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>