Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Stop Redirect
- // @namespace NFFpRgFl
- // @include http://reeksite.com/share/*
- // @match *://palimas.tv*
- // @run-at document-start
- // @require https://code.jquery.com/jquery-3.4.1.min.js
- // ==/UserScript==
- $(document).ready(function() {
- 'use strict';
- 'use esnext';
- console.log("Stopping redirects!");
- var imgs = $("img");
- for (var i = 0; i < imgs.length; i++) {
- if (!$(imgs[i]).parent().is("a")) {
- continue;
- }
- var full_link = $(imgs[i]).parent().attr("onclick");
- if (!full_link) {
- continue;
- }
- var link = full_link.slice(13, -3);
- $(imgs[i]).parent().attr("href", link);
- }
- function injectFunction(f){
- var script = document.createElement("script");
- script.appendChild(document.createTextNode(f));
- document.head.appendChild(script);
- }
- injectFunction('const BlockerBanner = 0;');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement