Skip to content

Instantly share code, notes, and snippets.

@n005
Last active July 16, 2021 15:37
Show Gist options
  • Save n005/17ae7fa69703c8f7f6be235875529097 to your computer and use it in GitHub Desktop.
Save n005/17ae7fa69703c8f7f6be235875529097 to your computer and use it in GitHub Desktop.
Multiup direct link
// ==UserScript==
// @name Multiup direct link
// @version 1.1
// @description Get links without ads
// @author N005
// @match *://multiup.org/*/mirror/*/*
// @grant none
// @updateURL https://gist.githubusercontent.com/n005/17ae7fa69703c8f7f6be235875529097/raw/
// @namespace https://gist.github.com/n005/17ae7fa69703c8f7f6be235875529097
// ==/UserScript==
(function(){
function getFormElelemets(){
var list = [];
var forms = document.forms
for (k=0; k<forms.length; k++){
var elements = document.forms[k].elements;
var link = document.forms[k].elements[0].getAttribute("value");
list.push(link);
document.forms[k].setAttribute('action',link);
}
return list;
}
getFormElelemets()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment