Notes
![]() ![]() Notes - notes.io |
// @grant GM_xmlhttpRequest
// @name SAM learning hack 1.0
// @namespace
// @description Adds an extra button called "I'm lazy" to SAM learning exercises, clicking it will complete the exercise 100%
// @include *platform.samlearning.com/*
// @license MIT
// @version 1.0
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @updateURL
// @connect https://platform.samlearning.com
// @author Tina
// ==/UserScript==
waitForKeyElements (
"#node-1",
Tina1
);
waitForKeyElements (
"#accordionContent",
Tina2
);
function Tina1 (jNode) {
// jNode.css ("color", "white");
var patt=new RegExp("[0-9]{2,15}$");
var id = patt.exec(document.URL);
if (id === null) {
var directlink = document.getElementsByClassName("ui-dialog-titlebar-directlink")[0].getAttribute("data-directlink");
id = patt.exec(directlink);
}
var cont = "activityId=" + id + "&score=100";
var x = document.getElementsByClassName("bottomPrev");
x[0].outerHTML = '<div class="bottomPrev" id="btnSendReq"><a class="step">I'm lazy</a></div>';
var btnEl = document.getElementById('btnSendReq');
x = document.getElementsByClassName("bottomNext")[0];
x.addEventListener('click', Tina1);
btnEl.addEventListener('click', function sendRequest () {
GM_xmlhttpRequest ({method: "POST",
url: "https://platform.samlearning.com/content/html-revise/ajax-score",
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"Accept": "application/json, text/javascript, */*; q=0.01",
"X-Requested-With": "XMLHttpRequest"
},
data: cont,
});
var elmDeleted = document.getElementById("exercisePopup");
elmDeleted.parentNode.removeChild(elmDeleted);
elmDeleted = document.getElementsByClassName("full-overlay")[0];
elmDeleted.outerHTML = '';
}, false);
x = document.getElementsByClassName("rightPanelTop")[0];
x.outerHTML = '<div class="rightPanelTop" id="come pay me a visit at https://discord.gg/2t5uYwQ --- le poisson <3"><img src="https://image.ibb.co/mS48E6/let_s_get_goin.jpg" ></div>';
x = document.getElementById('come pay me a visit at https://discord.gg/2t5uYwQ --- le poisson <3');
x.style.border = 'none';
x.style.borderRadius = 'none';
x.style.background = 'none';
x = document.getElementsByClassName("screenPreview")[0];
x.style.border = 'none';
x.style.backgroundColor = 'transparent';
x = document.getElementsByClassName("actContainer")[0];
x.style.backgroundImage = 'url( "https://preview.ibb.co/dLEtz6/fucking_retard_who_uploaded_this.jpg" )';
x = document.getElementsByClassName("BackGroundComponent")[0];
if (x !== undefined) {
x.parentNode.removeChild(x);
}
// xoxo <3 ;)
console.log("I'm glad you came looking here, maybe you should check the source code out a lil bit <3 -- fisken");
// Thank you <3 -- den gale fisken
}
function Tina2 (jNode) {
console.log("http://bit.ly/2bew50A"); //<------- click
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team