// ==UserScript==
// @name Amulyam All
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://www.amulyam.in/*
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) {
return;
}
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css.replace(/;/g, ' !important;');
head.appendChild(style);
}
window.addEventListener('load', function() {
if (!sessionStorage) {
document.querySelector('.mfp-bg.mfp-ready').remove()
document.querySelector('[class="mfp-wrap mfp-close-btn-in mfp-auto-cursor mfp-ready"]').remove()
}
var a = document.getElementsByClassName('jquery-adi light');
if (a.length) a[0].remove();
sessionStorage.a++;
addGlobalStyle('.jquery-adi light {display:none; }');
console.log('ADI Removed');
var a = document.getElementsByClassName('jquery-adi light');
if (a.length) a[0].remove();
sessionStorage.a++;
}, false);
function eventFire(el, etype) {
if (el.fireEvent) {
el.fireEvent('on' + etype);
} else {
var evObj = document.createEvent('Events');
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}
(function() {
'use strict';
var a = window.location.href;
var aa = window.location.href.split('?')[0];
var _;
_ = document.getElementById('dialog');
if (_) _.outerHTML = '';
_ = document.getElementById('mask');
if (_) _.outerHTML = '';
$(".trivia_ans_options").show()
var sel = false;
var adi = document.getElementsByClassName('jquery-adi light')[0];
if (adi) adi.remove();
if (sel) a = aa = '';
console.log(a,aa);
if (aa == 'http://www.amulyam.in/daily-login-credits.do') {;
} else if (aa == 'http://www.amulyam.in/vocabulary.do' ||
aa == 'http://www.amulyam.in/playTrivia.do' ||
aa == 'http://www.amulyam.in/checkTriviaLinkCaptcha.do' ||
aa == 'http://www.amulyam.in/checkVocabularyLinkCaptcha.do') {
console.log('Else');
_ = document.querySelector('.question_div p');
if (_ || 1) {
localStorage.a = _.innerText;
document.forms[0].submit();
}
} else if (aa == 'http://www.amulyam.in/checkTriviaCaptcha.do' || aa == 'http://www.amulyam.in/checkVocabularyCaptcha.do') {} else if (a == 'http://www.amulyam.in/enterLWord.do') {
console.log('Else 2');
document.querySelector('#submit-word').value = localStorage.a;
document.forms[0].submit();
} else if (a == 'http://www.amulyam.in/showLWord.do' || a == 'http://www.amulyam.in/checkTrivia.do') {
console.log('Else 3');
if (document.forms[0]) {
document.forms[0].word.value=localStorage.a;
document.forms[0].submit();
} else {
document.querySelector('.amu_trivia_content_part').scrollIntoView();
// document.getElementsByClassName('trivia_ans_options')[0].children[0].click();
}
}
else{
console.log('FallBack');
}
// Your code here...
})();
Sunday, 10 June 2018
Auto Amulyam - TM
Amulyam
Labels:
TM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment