您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Insert a new column of writeup to table at archive page.
- // ==UserScript==
- // @name CTFtime writeup column
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Insert a new column of writeup to table at archive page.
- // @author Bu4275
- // @match https://ctftime.org/event/list/past
- // @grant none
- // ==/UserScript==
- /* jshint -W097 */
- 'use strict';
- // Your code here...
- var s = '';
- var div = document.getElementsByClassName('container')[1];
- var table = div.getElementsByClassName('table table-striped')[0];
- // Insert a column
- var cell1 = table.rows[0].insertCell(1);
- cell1.innerHTML = "<th>writeup</th>";
- var str ='';
- for(var i=1;i<table.rows.length;i++){
- var tr = table.rows[i];
- var td = tr.getElementsByTagName('td')[0]
- var url = td.getElementsByTagName('a')[0].getAttribute('href') + "/tasks/";
- // Insert a column
- var cell1 = table.rows[i].insertCell(1);
- cell1.innerHTML = "<a href=" +url + "> writeup </a>";
- //str = str + url + "\t" + td.innerText.toString()+'\n';
- }
- //console.log(str);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址