您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copy important link in text area
当前为
- // ==UserScript==
- // @name Copy Important links Directly
- // @namespace Sality
- // @description Copy important link in text area
- // @include *kat.cr/*
- // @version 0.5Beta
- // @grant none
- // ==/UserScript==
- try{
- var pathname = window.location.pathname;
- //Spam Testing script -----------------------------------------------------------------------------------------------------------------------------------------------
- if ((pathname.indexOf('\/user\/') != 0)&&(pathname.indexOf('\/community\/') != 0)&&(pathname.indexOf('\/messenger\/') != 0)){
- if ($('div.mainpart table.data').length) {
- $('div.mainpart table.data .torrentname ').each(function(){
- var link = pathname.protocol + '//' + pathname.host +$('a.cellMainLink',$(this)).attr('href');
- $(this).before('<i title="Copy Link" class="ka ka16 ka-arrow-right ka-red sality" style="float:right;"></i>');
- });
- addtextarea();
- }
- }
- function addtextarea(){
- if($('.mainpart [class="pages botmarg5px floatright"]').length){
- $('.mainpart [class="pages botmarg5px floatright"]').after('<textarea class="botmarg5px quicksubmit" name="content" rows="10" cols="" id="salityx"></textarea>');
- }
- else{
- $('#mainSearchTable table[style="width: 100%"]').after('<textarea class="botmarg5px quicksubmit" name="content" rows="10" cols="" id="salityx"></textarea>');
- }
- }
- function addLink(url){
- $('#salityx').val($('#salityx').val()+url+"\n");
- }
- //<textarea class="botmarg5px quicksubmit" name="content" rows="10" cols="" id="replytext"></textarea>
- //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- $('div.mainpart table.data .sality').click(function(){
- var $temp =$(this).parent();
- var url =window.location.protocol + '//' + window.location.host +$('.torrentname a.cellMainLink',$temp).attr('href');
- addLink(url);
- });
- }//try end
- catch(ex){
- console.log("imp link :Error IN script /Page . Inform Sality");
- }