Skip to content

Instantly share code, notes, and snippets.

View alvnfaiz's full-sized avatar
💭
Energic

Alvin Faiz alvnfaiz

💭
Energic
View GitHub Profile
@alvnfaiz
alvnfaiz / safevin.js
Last active December 26, 2016 07:46
Safelink
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+ this._keyStr.charAt(enc1)+ this._keyStr.charAt(enc2)+ this._keyStr.charAt(enc3)+ this._keyStr.charAt(enc4);}
return output;},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+
@alvnfaiz
alvnfaiz / safevin2.js
Last active December 26, 2016 07:59
Savelink2
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+ this._keyStr.charAt(enc1)+ this._keyStr.charAt(enc2)+ this._keyStr.charAt(enc3)+ this._keyStr.charAt(enc4);}
return output;},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+
/* =====
You are free to modify this file but you should really create a folder in your
themes directory called (exactly) multi-column-tag-map and then copy this file
to that folder. Make your edits to the copy. If you make your edits to the
file in the plugins folder, all your edits will be overwritten if you update.
===== */
/* ===== version 13.0.5 ===== */
/* =====
You are free to modify this file but you should really create a folder in your
themes directory called (exactly) multi-column-tag-map and then copy this file
to that folder. Make your edits to the copy. If you make your edits to the
file in the plugins folder, all your edits will be overwritten if you update.
===== */
/* ===== version 13.0.5 ===== */
/* =====
You are free to modify this file but you should really create a folder in your
themes directory called (exactly) multi-column-tag-map and then copy this file
to that folder. Make your edits to the copy. If you make your edits to the
file in the plugins folder, all your edits will be overwritten if you update.
===== */
/* ===== version 13.0.5 ===== */
/* =====
You are free to modify this file but you should really create a folder in your
themes directory called (exactly) multi-column-tag-map and then copy this file
to that folder. Make your edits to the copy. If you make your edits to the
file in the plugins folder, all your edits will be overwritten if you update.
===== */
/* ===== version 13.0.5 ===== */
function urlMatchesOneOfPatterns(url, patterns) {
for (var i = 0; i < patterns.length; i++) {
var pattern = patterns[i];
if (url.match(pattern)) {
return true;
}
}
return false;
}
function ASSetCookie(a,b,c){var d=new Date;d.setDate(d.getDate()+c);var e=escape(b)+(0==c?";path=/":"; expires="+d.toUTCString())+";path=/";document.cookie=a+"="+e}function ASGetCookie(a){var b,c,d,e=document.cookie.split(";");for(b=0;b<e.length;b++)if(c=e[b].substr(0,e[b].indexOf("=")),d=e[b].substr(e[b].indexOf("=")+1),c=c.replace(/^\s+|\s+$/g,""),c==a)return unescape(d)}function ASSetCookieAds(a,b){var c=ASGetCookie(a);void 0!=c&&""!=c?(ASTheCookieInt=parseInt(c)+1,ASSetCookie(a,ASTheCookieInt.toString(),0)):ASSetCookie(a,"1",b)}function ASMaxClick(a,b){var c=ASGetCookie(a);return void 0!=c&&parseInt(c)>=b?!0:!1}jQuery(document).ready(function(a){var b="adsShield",c=7,d=3,e=".adsShield",f=!1;ASMaxClick(b,d)&&a(e).hide("fast"),a(e).bind("mouseover",function(){f=!0}).bind("mouseout",function(){f=!1}),a(window).on("beforeunload",function(){f&&(ASMaxClick(b,d)?a(e).hide("fast"):ASSetCookieAds(b,c))})});
// ==UserScript==
// @name Nanime Grab
// @namespace http://devstudio.web.id
// @copyright 2019+, DevStudio
// @version 1.0
// @description Grab Server Mirror/Player From Nanime
// @author Alvin Faiz
// @include https://nanime.in/episode/*
// @include https://nanime.in/movie/*
// ==/UserScript==
// ==UserScript==
// @name AlfaPasser
// @namespace AlfaPasser - Cuma mau lewatin safelink
// @description Download di Fansub dan Fanshare besar tanpa melewati Iklan || By DevStudio
// @copyright 2019+, DevStudio
// @version 2.0.1
// @homepageURL https://devstudio.web.id/
// @icon https://cdn.myanimelist.net/images/characters/2/337013.jpg
// @grant GM_deleteValue
// @grant GM_getValue