Alliance SPQR - How to install scripts. Custom JavaScript and Greasemonkey What is a custom script

What are userscripts?

Briefly: userscript is a program written in language JavaScript, stored on the user’s computer and connected by the browser on certain pages. A userscript is a file with the extension .user.js(it is by the extension that browsers understand that the file is a user script), containing metadata and directly javascript-code.

Connecting user scripts:

To install the script, click on the Greacemonkey icon and select "Create script..."

After which a window for entering the script will open. All code in the window must be deleted and any script from the list of ready-made ones must be inserted, then click “save” and update the site page.

List of ready-made user scripts:

Disabling custom styles:

// ==UserScript== // @name Shiki User Style Remove // ​​@namespace http://site/ // @version 1.0 // @description Disabled Shiki User Styles // @updateURL https://openuserjs.org/ meta/kaur/Shiki_User_Style_Remove.meta..org/* // @grant none // ==/UserScript== var func = function() ( $("#custom_css").remove(); ); $(document).ready(func); $(document).on("page:load", func); $(document).on("turbolinks:load", func);

Real Shikimori rating (MAL rating shown by default):
318x181
Latest version and discussion in a separate topic
Author@Oniii-chan

Displaying dates in history:
1184x249
To display the date in Russian, replace en-GB with ru-RU.

1..org/* // @match http://site/* // @grant none // ==/UserScript== var func = function() ( "use strict"; $(".date"). text(function() ( return (new Date($(this).attr("datetime")).toLocaleDateString("en-GB", ( day: "numeric", month: "short", year: "numeric" , hour: "numeric", minute: "numeric" ))); $(document).ready(func); $(document).on("page:load", func); $(document).on("turbolinks:load", func); $(document).on("postloader:success", func);

Button for scrolling to the position of pressing the "up" button on the left side of the screen
The script adds a button on the left side of the screen, which is identical to the “up” button, but moves down to the position of pressing the “up” button, a similar mechanic is implemented in the VK feed

where it says 500 is the scrolling speed to the reverse position, I considered 500 sufficient
to change this element, like adding a hover effect, you need to use the .b-to-back class and write the corresponding rule in CSS


// ==UserScript== // @name Back to the last position:Shikimori // @namespace http://site/ // @version 1.0 // @description try to take over the world!.org/* // @grant none // ==/UserScript== var scroll_bottom = 0; $(".b-to-top").css("z-index", "10"); $(".b-to-top").click(function() ( scroll_bottom = $("body").scrollTop(); $("body").append("

"); $(".b-to-back").click(function() ( $("html, body").animate(( scrollTop: scroll_bottom ), 500); $(".b-to-back ").remove(); )); ));

Automatically hide menus when scrolling.
The menu disappears when you scroll down. Scrolling up, hovering at the top of the page and scrolling to the bottom of the page causes the menu to appear again. Installation via greasyfork.org:

Daily installs 904 Total installs 500,637 Ratings 90 10 51 Created 2019-04-27 Updated 2019-04-27
  • Krunker 1.9.6 Aimbot and Auto Aim Hack - We Have Been having issues with greasyfork so i moved the script to docs so link is https://docs.google.com/document/d/1Ir39KPGyIzRLe7YvvjQgolWh_R5LU36re1saQ3x4BJQ/edit?usp=sharing

    Author Zack Rowell Daily installs 699 Total installs 10,841 Ratings 3 1 1 Created 2020-01-09 Updated 2020-01-15
  • VIP Video tencent, iqiyi, mgtv, youku, Blibili, sohu, tudou (2020.01.23) - tencent, iqiyi, mgtv, youku, letv, Bilibili, sohu, tudou, 1905(Containing google ads)

    Author HOPETIME Daily installs 664 Total installs 15,092 Ratings 19 0 1 Created 2020-01-01 Updated 2020-01-23
  • MooMod |The Hack To MooMoo.io | Only Uptade!(AHT)(2020) - MooMod| Best Hack! 10,000 Install! All-Hack-in-One! Fealture"s:【MooMod About Menu】【MooMod Modife Menu】【AutoHeal 3X】【InstaKill R】【Hat-Hacking Deffence And Speed】【Acc-Hacking Speed ​​And Deffence】【MooMod-Map】【Hotkey" V-Spike F -Trap/BoostPad H-Turret N-Windmill】【Circle"s L-SpikeCircle O-TrapCircle I-WindmillCircle U-TUrretCircle】【Katana Key-< OR ,】【Musket Key- >OR .】【Hat-Macro Z-TankGear C-TurretGear B-SoldierHelmet】

    Author ¿BEXTİYAR ¿ Daily installs 530 Total installs 13,911 Ratings 4 3 1 Created 2019-11-27 Updated 2020-01-23
  • Krunker.io Hack - Krunker.io Hacks

    Author IAN Daily installs 449 Total installs 968 Ratings 0 0 1 Created 2020-01-21 Updated 2020-01-21
  • Local YouTube Downloader - Get youtube raw link without external service.

    Author 3142 maple Daily installs 491 Total installs 199,976 Ratings 662 8 8 Created 2018-06-10 Updated 2020-01-01
  • Remove web limits(modified) - Pass to kill most of the site, you can lift the restrictions prohibited to copy, cut, select the text, right-click menu.revised version

    Author qxin i Daily installs 324 Total installs 437,238 Ratings 1687 7 4 Created 2017-03-28 Updated 2018-07-02
  • Krunker.io (360,720,INSTANT NUKE, NEW GUN, AIMBOT, ESP, UNLIMITED AMMO, UNLIMITED HEALTH) - VERY USEFUL KRUNKER AIMBOT E.T.C HACK I HAVE BEEN WORKING ON FOR A WHILE

    Author TRAX Daily installs 246 Total installs 53,800 Ratings 5 1 10 Created 2019-11-04 Updated 2019-11-04
  • Krunker.io AIMBOT (UPDATED) Aimbot, ESP, TriggerBot, - UPDATED FREQUENTLY

    Author L.L.L. Daily installs 255 Total installs 150,712 Ratings 19 1 7 Created 2019-05-12 Updated 2019-05-12
  • MooMoo.io | 🐺LabyMod🐺 | 2020 - 【Hacks & Hackkeys】 ➜ 〖 AUTO HEAL - T 〗 〖 MOD - MENU - ESC 〗 〖 INSTAKILL - R 〗 〖 AUTOSPIKE - V 〗 〖 MORE FPS 〗 〖 AUTOCLAN - 2 OR ▼ 〗 〖 AUTOCHAT - 8 OR▲〗〖BOOST& SPIKE - G 〗 〖 AUTOWINDMILL - N 〗 〖 HATMACRO 〗 〖 PREMIUM MAP 〗 〖 INSTAWINDMILL´S - O 〗 〖 INSTATRAPS / BOOSTPADS - I 〗 〖 CX insta - SPACEBAR 〗 〖 INSTASPIKE´S - Ü 〗 〖 AIMCURSOR 〗 〖 BIG SHOP 〗

    Author Cookie_or_die Daily installs 352 Total installs 1,461 Ratings 1 1 0 Created 2020-01-13 Updated 2020-01-13
  • Skribbl.io AUTO GUESS - Skribblio Hacks - Best Skribbl Cheat 2019 - Skribblio Mods Features: Auto Guess, Draw Bot, Word Helper, Save Image, FPS, Adblock

    Author iomods.org Daily installs 255 Total installs 63,443 Ratings 5 1 0
  • Agar.io 2019 Bots AgarMinions.tk | Cheap Agar.io + Agario Clone Games 2019 Bots - Best Agar.io & Agario clones games bots + Big Bots For Sale!

    Author AgarMinions.tk 2019 Bots Daily installs 193 Total installs 79,557 Ratings 24 1 1 Created 2019-03-03 Updated 2019-03-03
  • Mod|God Juan…. - [G] For Spike + BoostPad, [N] For 1 Windmills, [O] For 5 Windmills, [H] For Turrets [F] For BoostPad, [V] For Spike [P] For 4 Walls, [M] for Active /Unactive Auto Hat and [M] For 4 Spikes, [T] for Active/Unactive AutoHeal

    Author HyPer~ Daily installs 186 Total installs 19,302 Ratings 9 1 1 Created 2019-11-14 Updated 2019-11-14
  • Greasyfork Search with Sleazyfork Results include - Merge adult results of sleazyfork into greasyfork when the script is no longer anonymously available, add rating score and version for scripts then

    Author hoothin Daily installs 184 Total installs 110,613 Ratings 1330 4 0 Created 2016-10-08 Updated 2019-08-02
  • Remove web limits - Pass to kill most of the site, you can lift the restrictions prohibited to copy, cut, select the text, right-click menu.

    Author Cat73 Daily installs 189 Total installs 497,105 Ratings 2250 4 0 Created 2015-11-23 Updated 2016-12-18
  • Diep.io AIMBOT - Diepio Hacks - Best Diep Cheat 2019 - Diepio Mods Features: Color Changer, Colorful Items, Aimbot, Fire Bot, Auto Respan, FPS, Adblock

    Author iomods.org Daily installs 180 Total installs 48,778 Ratings 10 0 11 Created 2019-04-12 Updated 2019-04-27
  • - Currently trusted by over 100,000 users!

    Author Sam-DevZ Daily installs 173 Total installs 403,943 Ratings 304 54 62 Created 2018-02-24 Updated 2019-07-01
  • 视频广告自动跳过 - auto skip video ads!

    Author wulududu Daily installs 175 Total installs 2,282 Ratings 16 0 0 Created 2020-01-05 Updated 2020-01-18
  • Surviv.io AIMBOT - Survivio Hacks - Best Surviv Cheat 2019 - Survivio Mods Features: scope mod, faster duo/squad, auto respawn, auto reload, aimbot, firebot, FPS, Adblock

    Author iomods.org Daily installs 201 Total installs 38,498 Ratings 4 0 4 Created 2019-04-12 Updated 2019-04-21
  • Krunker plus v3 - "I"m aware krunker hacks are back. We are gonna work on fixing them as much as we can! -Sidney_de_Vries"

    Author bobby013712345 Daily installs 1,043 Total installs 1,161 Ratings 0 0 0 Created 2020-01-22 Updated 2020-01-22
  • Kill Baidu AD - Just Kill Baidu AD

    Author hoothin Daily installs 152 Total installs 305,524 Ratings 964 2 3 Created 2016-10-21 Updated 2019-01-31
  • Userscript+ : Show Site All UserJS - Show current site all UserJS,The easier way to install UserJs for Tampermonkey.

    Author jaeger Daily installs 152 Total installs 179,475 Ratings 1871 3 2 Created 2016-11-02 Updated 2019-09-12
  • Pixiv Plus - Focus on immersive experience, 1. Block ads, directly access popular pictures 2. Use user to enter the way to search 3. Search pid and uid 4. Display original image and size, picture rename, download original image | gif map | Zip|multiple map zip 5. display artist id, artist background image 6. auto load comment 7. dynamic markup work type 8. remove redirection 9. single page sort 10. control panel select desired function github: https:///github.com/Ahaochan/Tampermonkey, welcome to star and fo

    Author Ahaochan Daily installs 152 Total installs 70,505 Ratings 504 4 1 Created 2017-10-14 Updated 2020-01-09
  • Shellshock.io AIMBOT - Shellshockio Hacks - Best Shellshockers Cheat 2019 - Shellshockio Mods Features: Aimbot, Firebot, Faster Speed, Auto Heal, FPS, Adblock

    Author iomods.org Daily installs 159 Total installs 28,814 Ratings 7 1 1 Created 2019-04-12 Updated 2019-04-21
  • Krunker Skid - bushfire-disaster-appeal - krunker.io modification

    Author Skid Lamer Daily installs 90 Total installs 3,478 Ratings 8 0 0 Created 2020-01-01 Updated 2020-01-10
  • Agar.io Split HACK - Agario Hacks - Best Agar Cheat 2019 - Agario Mods Features: Split Hack, Zoom Hack, Feed Hack, Free Skins, FPS, Adblock

    Author iomods.org Daily installs 109 Total installs 16,375 Ratings 3 0 1 Created 2019-05-31 Updated 2019-05-31
  • The best Youtube Downloader, download video MP4, AVI, MP3, HD, 1080P, 2K, 4k & 8K - Download any video and music (audio) from Youtube, Twitter, Vimeo, Facebook, Instagram, SoundCloud, Dailymotion, Liveleak, Break, Imgur, Mashable, Reddit, 1TV, 9gag, VK, TED, youku, bilibili, IMDb, ESPN, Flickr , Bandcamp, pornhub, 9gag, VK.com, ok.ru, tv.com and 10,000 more sites for free. Also support to download subtitles. Free, fast and easy to use. No need to install any annoying softwares. Supporting MP4, WEBM, AVI, 3GP, FLV, H64, ACC, FLA, MP3, M4A, 8K, 6K,4K, 2K, 1080, 720, 480, 360, etc.

    Author hello123 Daily installs 128 Total installs 192,763 Ratings 352 7 28 Created 2018-06-11 Updated 2020-01-01
  • UltraType - A nitrotype autotyper.

    Author SkittyDev Daily installs 120 Total installs 11,004 Ratings 2 1 1 Created 2019-10-02 Updated 2019-10-02
  • MooJax (Stick to Katana / Musket + Katana or Greater Ax / Stick + Spinning Spikes)(Insta. Pro!) - MooJax - On Axion

    Author Jack LAL Daily installs 116 Total installs 2,258 Ratings 2 1 0 Created 2020-01-03 Updated 2020-01-03
  • Slither.io Invincible HackBot (Best Slither Bot and working 2020) - Slither.io Invincible HackBot by CTHack and Fixed by Jaime Argila

    Author Jaime Argila Daily installs 115 Total installs 15,948 Ratings 5 1 0 Created 2019-08-25 Updated 2019-12-12
  • Zombs.io Gold Generator Hack - subscriptions xxxxDDDDD

    Author Oyun manyakları Daily installs 91 Total installs 13,893 Ratings 5 1 1 Created 2019-08-09 Updated 2019-08-09
  • Anti-Adblock Killer | Reek- Helps you keep your Ad-Blocker active, when you visit a website and it asks you to disable.

    Author reek Daily installs 111 Total installs 315,268 Ratings 1123 20 44 Created 2014-05-09 Updated 2016-11-17
  • Bilibili 港澳台 - Bilibili 港澳台, 解除区域限制

    Author Zealot Daily installs 121 Total installs 95,591 Ratings 224 5 2 Created 2018-12-23 Updated 2019-10-13
  • Nitro Type Car Hack (Dealership) - Get secret cars and skin teasers for dealership

    Author Zaven Lei2027-23 Daily installs 105 Total installs 24,552 Ratings 16 1 4 Created 2018-11-13 Updated 2018-11-13
  • Krunker 1.9.6 Hack - Hack for krunker.io 1.9.6

    Author 鬼滅の刃デース Daily installs 60 Total installs 3,152 Ratings 1 0 0 Created 2020-01-10 Updated 2020-01-10
  • I knew about this possibility for a long time. In general, I believe that you cannot be a doc in programming. Because there are too many subareas and nuances. You just need to imagine what is possible, what technologies exist and where to read about them if necessary. Everything else is a matter of technique.

    What are user scripts and why are they needed?

    I learned a long time ago that you can embed some JavaScript directly into the browser. You can tell him: my friend, please run this simple script when I go to this site and he will do it. This script is called custom because it is not stored on the server, but directly on the client’s computer. That is, this is your own script, which is available only to you.

    User scripts are implemented by some browsers at the native level, it seems. It seems like Opera can do this, for example. But Greasemonkey, a plugin for browsers that allows you to execute custom scripts, has gained popular love.

    It was all somehow unnecessary for me. Well, what can you do with toadscript? Usually it's all about change appearance and pages. Remove a column, change the size of something, show what is hidden or vice versa. So, I didn’t need all this. And now I have a blog about T-shirts, where I often post pictures from the printdirect service.

    The process of posting a picture looks like this:

    • I go to the product page
    • I click on the image
    • Click on the big picture right click, select "Copy link to image".
    • I go to the post editor on tshirt-fan.ru and paste a link to the image into the image insertion field of the visual editor.
    • I fill in the alt and title fields of the image in the same editor
    • I go to the "Position" tab and in the "Class" drop-down menu put fcenter (this is a CSS class for centering the image)
    • Then I go back to the product page, highlight the page address
    • I go to the editor, select the image, click on “set link”
    • In the "Address" field I enter the copied address of the product.
    • I replace http:// in this address with /go/ so that the link is internal and an affiliate code is added when moving.

    There are so many steps to take to insert ONE picture with a link. It's very, very tiring.

    So I decided to automate this process. Because I'm a lazy programmer.

    I started learning Greasemonkey. It turned out that everything is not simple, but very simple. Essentially, this is just JS code that is equipped with a couple of service directives.

    Greasemonkey script for tshirt-fan.ru

    Inspired, I immediately wanted to use jQuery. I'm too lazy to write in pure JavaScript, you see. Although the task is simple, to be honest. In short, I found how to connect jQuery to Greasemonkey and used this code. It downloads jQuery from Google hosting. I usually download from Yandex hosting, but what's the difference?

    Now all I had to do was write the script itself. Everything turned out to be simple.

    // All Greasemonkey code is below function letsJQuery() ( var full = $("#full_img_front").attr("src"); //grab the address of the big image if(full) ( //if it is there, we are on the right page var url = location.href; //take the page address url = url.replace("http://", "/go/"); //change it var text = $("h1.main").html( ); //take the product name //generate the code for display var code = "
    "; $("div.images").append(code); //show it ) )

    Now my product page looks like this.

    These pages are a work in progress, but are intended to help non-experienced users understand how to install and use custom scripts on their computers.

    What is a user script?

    User scripts (userscripts, User Scripts, User scripts, or .user.js)- These are licensed extensions for open source browsers that make changes to web pages when they are loaded. They allow users to force sites to do what they want, instead of what was originally intended. Typically this type of script is a file on your computer called the site it affects - the useful name you want to call it.user.js and always ends to .user.js .

    Useful tasks such as improving the layout, fixing bugs ( errors), automating basic tasks and adding new functions, all this can be done by user scripts. More complex user scripts can create a mishmash by combining information from different sites or introducing new data into a web page, such as adding reviews or price comparisons to online stores.

    What is a script library?

    Script library (libs, libraries or just .js) are reusable licensed pieces of code and open source that are open to general use in other user scripts. Typically this type of script is a file named a useful name that you want to call it.js and never doesn't end to .user.js .

    How can I use a custom script?

    To use it, you need to install an extension specifically for your browser. These extensions simplify management tasks such as installing, uninstalling, and updating custom scripts. The original manager for managing user scripts was Greasemonkey for Firefox browser, which is why you may often hear user scripts referred to as Greasemonkey scripts. To find out how to proceed, look at the options for your browser in the table below.

    What are the risks?

    You should be aware of privacy issues when using custom scripts and not install them from sources you do not trust. User scripts can perform actions on your behalf and can potentially access any information on the site that you have access to or that you enter into the site. They are often allowed to perform functions that scripts on regular sites cannot, such as storing information on your computer and exchanging it with the site. Poorly written user scripts can also potentially be used by malicious sites.

    To reduce security risks, most user script managers allow you to control which sites user scripts can access and whether they can run on secure sites. (https) websites or local files on your computer. At awesome.acestream.me source code Each user script can be checked so that other programmers can see if there is any malicious code either dangerous bugs or not.

    User script is a special JavaScript file that is stored by the user
    and can be automatically executed on certain pages. User scripts are used to
    modifications to the functionality or appearance of pages regardless of the site developers.

    For example, using a custom script you can make sure that after loading
    any page of the Google.ru search engine, the Google logo was replaced with the Yandex logo, and the button
    “Search” - to “Find” (fictitious example). Naturally, this replacement will be available only to those
    users who have this custom script installed.

    Essential advantage custom scripts before bookmarklets- This is what,
    that once installed they are executed automatically every time the page is loaded, while for every
    launching a bookmarklet requires user action (at least a click on the bookmarks bar). Flaw user scripts - the fact that they cannot be used in all browsers; and in those in which they work, additional configuration is required.

    IN Opera browser user scripts (UserJS) are supported out of the box: you only need to configure the folder in which the scripts will be stored.

    To do this, in the “Tools” menu, select “Settings...”; click on the “Advanced” tab; On the left, select the “Content” category and click “Customize JavaScript...”. In the window that opens, find the “Browse...” button under the inscription “Folder user files JavaScript", click on it and select any folder convenient for you. It is best if this is a separate empty folder, for example, “C:\Program Files\Opera\myUserJS”.

    IN Mozilla browser Firefox To work with custom scripts you need to install the “Greasemonkey” add-on ( Greasy monkey). To do this, open the “Greasemonkey” page on the website Firefox add-ons and click the green "Add to Firefox" button and you'll be prompted to be safe. Wait a few seconds and click the “Install Now” button.

    The add-on will be installed, after which you will need to close the browser (or rather, all its windows) and open it again.

    A small monkey face will appear in the lower right corner of the Firefox window, which you can left-click to quickly enable/disable all scripts at once, and right-click to disable individual scripts or to open the script management screen. From there you can see a list of all installed scripts, delete unnecessary ones, and so on. Script management is also available in the “Tools” menu, “Greasemonkey” item.

    Now, when you try to open a custom script file (for example, when you click on a link to a script from a club), a Greasemonkey window will open, in which you will be prompted to install the script (the “Start installation” button becomes active after three seconds of thinking about security issues):

    In the browser Google Chrome user scripts (UserJS) are supported out of the box: you only need to configure the folder in which the scripts will be stored and launch the browser itself with the necessary parameters.

    Firstly.
    Create a folder on your computer where the user scripts will be stored. For example, let this be the “E:\Nick\Scripts” folder.

    Secondly.
    Save in this folder any custom script you like that is compatible with Google Chrome (in our club it will be labeled “chrome”). To do this, open the script in the browser, press +[S] and specify the same folder with user scripts and click “Save”:

    Please note, the script file name must end with .user.js

    Thirdly.
    Launch Google Chrome with settings that allow user scripts to run. To do this, first close the browser, then right-click on the Google Chrome icon on your desktop, select “Properties” and in the window that opens, go to the “Shortcut” tab. You need to change the "Object" field. Typically it contains an entry like:
    "C:\Documents and Settings\%USERDIR%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe"
    Add the launch parameters to it after the closing quote: --enable-user-scripts --user-scripts-dir=E:\Nick\Scripts
    Don't forget to change the path E:\Nick\Scripts to the one you use to store scripts.

    Fourth.
    Launch Google Chrome! The scripts work!

    Security Issues. User scripts can be dangerous for the user. Use custom scripts only from trusted sources, and remember that best protection from any danger - it's your head.

  • Share