Created
February 5, 2021 20:17
-
-
Save srndpty/b407ad62d906f13fd4983f266ccddde4 to your computer and use it in GitHub Desktop.
get rid of unwanted jump.php thing at pixiv
This file contains 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
(function () { | |
$(document).ready(function(){ | |
$('a[href*="jump.php"]').each(function(){ | |
var oldUrl = $(this).attr("href"); // Get current url | |
var newUrl = oldUrl.replace("/jump.php?", ""); // Create new url | |
$(this).attr("href", decodeURIComponent(newUrl)); // Set herf value | |
}); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment