Last active
July 16, 2021 15:37
-
-
Save n005/17ae7fa69703c8f7f6be235875529097 to your computer and use it in GitHub Desktop.
Multiup direct link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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