您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add ?originalview to all links on getcourse
// ==UserScript== // @name Добавляем originalview к каждой ссылке // @namespace http://tampermonkey.net/ // @version 1 // @description Add ?originalview to all links on getcourse // @author You // @license MIT // @include *://*/teach/control/* // @include *://*/pl/notifications/* // @include *://*/sales/control/* // @include *://*/pl/* // @include *://*/cms/* // @include *://*/user/my/* // @include *://*/sales/shop/* // @icon https://www.google.com/s2/favicons?sz=64&domain=getscript.ru // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; // Получите все элементы <a> на странице var links = document.getElementsByTagName("a"); // Пройдитесь по каждой ссылке и добавьте "?originalview" к ее href for (var i = 0; i < links.length; i++) { var href = links[i].getAttribute("href"); if (href) { links[i].setAttribute("href", href + "?originalview"); } } // Your code here... })();