Ads.id Marketplace Link

Add marketplace link to ads.id site

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Ads.id Marketplace Link
// @namespace    http://www.inetkita.com/
// @version      0.2
// @description  Add marketplace link to ads.id site 
// @author       Dedi Suryadi
// @match        *://ads.id/*
// @grant        none

// ==/UserScript==
/*


   Hello my name is Dedi Suryadi, if you happen to read this message please keep going.
   I am a self taught programmer, I can cobble together some javascript, Go, PHP, HTML5 and CSS3 
   If you have some interesting project and need a coder please contact me on dedisyd at ymail dot com   
   Thank you and here is a cute cat for you, cheers.
   
   
                      \,`~"~` /
      .-=-.           /    . .\
     / .-. \          {  ==  _ }==
    (_/   \ \          \      / 
           \ \        _/`'`'`b
            \ `.__.-'`        \-._
             |            '.__ `'-;_
             |            _.' `'-.__)
              \    ;_..--'/     //  \
              |   /  /   |     //    |
              \  \ \__)   \   //    /
               \__)        './/   .'
                             `'-'`   
                             
*/

/* jshint -W097 */
'use strict'; 
(function(){  
    if (document.getElementById('navtabs') !== null && document.getElementById('marketplace') === null) {
        var m = document.createElement("li");
        var p = document.querySelector('#pagetitle > p.description');
        m.innerHTML = '<a href="http://ads.id/forums/search.php?do=getnew&contenttype=vBForum_Post&exclude=88,78,114,66,157,158,159,138,150,155,116,117,152,153,154,113,93,90,115,119,73,75,79,137,118,85,112,81,135,82,161,136,98,80,109,148,139,89,97,94,86,84,77,91,104,100,101,102,111,110,103" class="navtab" id="marketplace" title="Marketplace ads.id">Marketplace</a>';
        if (p !== null && p.textContent.length > 760) {
            document.querySelector('li.selected').className = '';
            m.setAttribute('class', 'selected');
        }
        document.getElementById('navtabs').appendChild(m);
    }
}());