Advertisement
dimaslanjaka

MyUserScript

Oct 9th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Add Html
  3. // @namespace    Custom HTML
  4. // @version      1.0.6.4
  5. // @description  Add Custom HTML
  6. // @author       Dimas Lanjaka
  7. // @include      http://*.*
  8. // @include      https://*.*
  9. // @exclude      http://blog.akarmas.com
  10. // @exclude      https://blog.akarmas.com
  11. // @updateURL    https://pastebin.com/raw/wVWD2eth
  12. // @exclude      https://dimaslanjaka.github.io
  13. // @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js
  14. // @grant        none
  15. // @run-at       document-start
  16. // ==/UserScript==
  17.  
  18. function TAMPER_ID(length) {
  19.     var result = '';
  20.     var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  21.     var charactersLength = characters.length;
  22.     for (var i = 0; i < length; i++) {
  23.         result += characters.charAt(Math.floor(Math.random() * charactersLength));
  24.     }
  25.     return result;
  26. }
  27.  
  28. (function() {
  29.     'use strict'
  30.  
  31.     var TAMPER_URL = ['https://blog.akarmas.com/2018/04/php-regex-extract-proxy-from-string.html', 'https://blog.akarmas.com/2019/10/hotspot-shield-vpn-business-846-full.html', 'https://blog.akarmas.com/2019/09/advanced-systemcare-pro-81-full-version.html'];
  32.     var TAMPER_EXCLUDE = ['blog.akarmas.com', 'dimaslanjaka.github.io'];
  33.     var TAMPER_UID = TAMPER_URL[Math.floor(Math.random() * TAMPER_URL.length)] + '?UID=' + TAMPER_ID(5);
  34.     var TAMPER_HTML = '<div style="position:fixed;bottom:0;border:1px"><a href="' + TAMPER_UID + '" target="_top" rel="follow" class="btn btn-primary">Home</a></div>';
  35.  
  36.     if (typeof window.Query !== 'undefined') {
  37.       var $ = unsafeWindow.jQuery;
  38.         $('body').append(TAMPER_HTML);
  39.     } else {
  40.         document.body.innerHTML += TAMPER_HTML;
  41.     }
  42. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement