Skip to content

Instantly share code, notes, and snippets.

View iniznet's full-sized avatar
🎯
Rebuilding some sites

Yusuf Fauzan iniznet

🎯
Rebuilding some sites
View GitHub Profile
@iniznet
iniznet / mycred-sell-content.js
Created October 1, 2022 06:13
MyCRED sell content vanilla version
(function($) {
var buying = false;
$( '.mycred-sell-this-wrapper' ).on( 'click', '.mycred-buy-this-content-button', function(){
if ( buying === true ) return false;
buying = true;
@iniznet
iniznet / requireActivations.php
Created July 27, 2022 10:06
WordPress: Automatically copied requirements folder to mu-plugin on theme activation
add_action('after_switch_theme', function() {
$basePath = dirname(__DIR__, 3);
$muPluginpath = dirname(__DIR__, 2) . '/mu-plugins';
$requirementsPath = __DIR__ . '/requirements';
require_once( $basePath . "/wp-admin/includes/plugin.php");
if (wp_mkdir_p($muPluginpath)) {
$di = new RecursiveDirectoryIterator($muPluginpath, FilesystemIterator::SKIP_DOTS);
$ri = new RecursiveIteratorIterator($di, RecursiveIteratorIterator::CHILD_FIRST);
@iniznet
iniznet / zippyshare.js
Created December 5, 2021 23:35
Zippyshare Auto Download
// ==UserScript==
// @name Zippyshare Auto Download
// @namespace https://github.com/iniznet/
// @version 1.0.0
// @description Automatically starts downloads hosted by Zippyshare
// @author niznet
// @match *zippyshare.com/*
// @icon https://www.google.com/s2/favicons?domain=zippyshare.com
// @grant none
// ==/UserScript==
@iniznet
iniznet / hxfile.js
Created December 5, 2021 23:31
HXFile Downloader Click
// ==UserScript==
// @name HXFile Downloader Click
// @namespace https://github.com/iniznet/
// @version 1.0.0
// @description Automatically click the download button
// @author niznet
// @match https://hxfile.co/*
// @icon https://www.google.com/s2/favicons?domain=hxfile.co
// @grant none
// ==/UserScript==
@iniznet
iniznet / mangaowl-helper.js
Created December 5, 2021 23:27
MangaOwl Ad & Image Gap Remover
// ==UserScript==
// @name MangaOwl Ad & Image Gap Remover
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description Remove ads & gap between images
// @author niznet
// @match https://mostraveller.com/*
// @match https://i.mangaowls.com/reader/*
// @icon https://www.google.com/s2/favicons?domain=mangaowls.com
// @grant none
@iniznet
iniznet / global.css
Created November 7, 2021 07:14
global.css result
/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
@iniznet
iniznet / Gomunime popup Ads.user.js
Last active June 27, 2021 09:51
Gomunime Auto Popup Close & Auto 720p Player
// ==UserScript==
// @name Gomunime Auto Popup Close & Auto 720p Player
// @namespace https://niznet.my.id/
// @version 1.0.1
// @description Tutup 5 detik pop up / float ads & auto 720p Player
// @author niznet
// @match https://gomunime.online/*
// @icon https://www.google.com/s2/favicons?domain=gomunime.online
// @grant none
// ==/UserScript==
<?php
/**
* Split string and wrap text with preserving html
*
*/
function html_wrap( string $string, bool $output_array = true, int $width = 30, string $break = " \r\n" , bool $cut_long_words = false ) {
if ( empty( $string ) ) {
return false;
}